Unix/Linux Go Back    

HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Steps to Create a FileSystem HP-UX


Thread Tools Search this Thread Display Modes
Old Unix and Linux 07-18-2008   -   Original Discussion by granador
granador granador is offline
Registered User
Join Date: Feb 2007
Last Activity: 1 January 2011, 2:45 PM EST
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Steps to Create a FileSystem HP-UX

Steps to create FileSystem, and later to modify size in HP-UX. Please
Sponsored Links
Old Unix and Linux 07-21-2008   -   Original Discussion by granador
veer veer is offline
Registered User
Join Date: Nov 2007
Last Activity: 22 July 2008, 1:23 AM EDT
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
In HPUX the default disk manager is LVM. So steps as per LVM would be:
1) #vgdisplay VOLGRPNAME
for e.g. vgdisplay /dev/vg01
This should be done to check whether u have enough extents free to create a file system of the required size. Also just make sure the the Physical volumes or Hard disks are mirrored or not. Bcos If mirrored then the Free PEs available should be divided by 2 for 2 no. of hard disks.

2) #lvcreate -L SizeM (-n lvname) /dev/vg01
-n is optional u can give any name u like or the filesystem name being created. for .e.g lvcreate -L 100M -n mytmp /dev/vg01
This will create LV of size 100MB /dev/vg01/mytmp and /dev/vg01/rmytmp or else without -n would create /dev/vg01/lvol6 and /dev/vg01/rlvol6, if lvol5 already exists.

3) Now time to create FIlesystem.
Remember the default File system is mentioned on most UNIX systems and so on HPUX system in /etc/default/fs. The default mentioned is VXFS if u have BASE JFS product atleast installed or else will be HFS.
#newfs /dev/vg01/rmytmp
The above will create a new VXFS filesystem with NOLARGEFILES and NOQUOTA arrangement. If u want to enable them then u will need to modify the cmd line like
#newfs -o largefiles,quota /dev/vg01/rmytmp
This is appropriate for files being created above 2GB in size and u can put quota system for users too.
NOTE: the lv name should be starting with 'r' like 'rmytmp'.
4) To make the filesystem available after reboot make the entry in /etc/fstab file.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to create a filesystem with the correct computation of PP cwiggler AIX 3 02-28-2011 12:15 PM
how to create a Filesystem lauelmar Red Hat 2 11-10-2010 10:56 AM
what command was used to create a filesystem Pouchie1 Solaris 2 08-02-2009 06:40 PM
create filesystem on file user5 SCO 0 12-13-2007 10:34 AM
How to create a 2 TB UFS filesystem? narrok Solaris 5 07-19-2007 01:57 PM

All times are GMT -4. The time now is 09:38 AM.