- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- create a file in a specific disk
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2003 02:07 AM
10-22-2003 02:07 AM
mkfile 200m /dev/dsk/c6t6d0/sawp_200m
How can I accomplish this in hpux 11.00
TIA,:-)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2003 02:12 AM
10-22-2003 02:12 AM
Re: create a file in a specific disk
You can use the prealloc command.
# prealloc file 10000000 ( size 10 mb )
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2003 02:13 AM
10-22-2003 02:13 AM
Re: create a file in a specific disk
May be the follwoing is equivalent.
#prealloc
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2003 02:18 AM
10-22-2003 02:18 AM
Re: create a file in a specific disk
You can just create a file in a directory.
# prealloc /dir/file 10000
or
# cd /dir
# prealloc file 10000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2003 02:20 AM
10-22-2003 02:20 AM
Re: create a file in a specific disk
prealloc
Even If I do a cd/dir, there are 4 disks on the directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2003 05:52 AM
10-22-2003 05:52 AM
SolutionTo guarantee a particular disk is used, you must create a volume group (in LVM) or disk group (in VxVM) containing only that disk, then create one or more volumes in that group. Then create a file system in that volume, and mount it.
Only root can do this.
Or just use a raw disk device, but that is not a file, so not really what you want.