Creating a new filesystem from scratch

  1. Check available disks using: ioscan -fnCdisk

  2. Size can be checked using: diskinfo -v /dev/rdsk/device

  3. pvcreate -f /dev/rdsk/device

  4. mkdir /dev/vg_name

  5. cd /dev/vg_name ; mknod group c 64 0x0n0000 (where is the next number avaiable incrementaly. i.e. for vg00 n is 0 so for vg01 n would be 1)

  6. vgcreate /dev/vg_name /dev/dsk/device /dev/dsk/device2 etc …

  7. lvcreate -L size -n name /dev/vg_name

  8. newfs -F vxfs /dev/vg_name/rname (or -F hfs for hfs type filesystem)

  9. mkdir /mount_point

  10. edit /etc/fstab to include new filesystem

  11. mount -a to mount filesystem

Note:For swap, do not run newfs command. Option -C y and -r n should be used with the lvcreate command.