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.
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.
|Thread Tools||Search this Thread|
|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|