Steps to Create a FileSystem HP-UX

Steps to create FileSystem, and later to modify size in HP-UX. Please

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.