1. view the current File System
[Root @ hp173/] # bdf
Filesystem kbytes used avail % used Mounted on
/Dev/vg00/lvol3 204800 154080 50384 75%/
/Dev/vg00/lvol1 298928 83696 185336 31%/stand
/Dev/vg00/lvol8 2613248 1010056 1592040 39%/var
/Dev/vg00/lvol7 2359296 1629616 724040 69%/usr
/Dev/vg00/lvol4 2048000 3480 2029640 0%/tmp
/Dev/vg00/lvol6 4399104 2890728 1496672 66%/opt
/Dev/vg00/lvol5 24576 2344 22136 10%/home
192.168.8.161:/soft
10485760 2526384 7711288 25%/soft
/Dev/vg00/lv_u01 8388608 3172 8123400 0%/u01
2. Uninstall the File System
[Root @ hp173/] # umount/u01
3. Delete LV
[Root @ hp173/] # lvremove/dev/vg00/lv_u01
4. Create a mount point
[Root @ hp173/] # mkdir/u01
5. Create an LV
[Root @ hp173/] # lvcreate-L 8192 m-n lv_u01 vg00
6. Create a file system on LV
[Root @ hp173/] # newfs-F vxfs/dev/vg00/lv_u01
7. mount a File System
[Root @ hp173/] # mount/dev/vg00/lv_u01/u01
8. view the mounting result
[Root @ hp173/] # bdf
Filesystem kbytes used avail % used Mounted on
/Dev/vg00/lvol3 204800 154080 50384 75%/
/Dev/vg00/lvol1 298928 83696 185336 31%/stand
/Dev/vg00/lvol8 2613248 1010064 1592032 39%/var
/Dev/vg00/lvol7 2359296 1629616 724040 69%/usr
/Dev/vg00/lvol4 2048000 3480 2029640 0%/tmp
/Dev/vg00/lvol6 4399104 2890728 1496672 66%/opt
/Dev/vg00/lvol5 24576 2344 22136 10%/home
192.168.8.161:/soft
10485760 2526384 7711288 25%/soft
/Dev/vg00/lv_u01 8388608 3172 8123400 0%/u01
9. Modify/etc/fstab to enable the file system to be automatically mounted at the next startup.
[Root @ hp173/] # vi etc/fstab
/Dev/vg00/lvol3/vxfs delaylog 0 1
/Dev/vg00/lvol1/stand hfs defaults 0 1
/Dev/vg00/lvol4/tmp vxfs delaylog 0 2
/Dev/vg00/lvol5/home vxfs delaylog 0 2
/Dev/vg00/lvol6/opt vxfs delaylog 0 2
/Dev/vg00/lvol7/usr vxfs delaylog 0 2
/Dev/vg00/lvol8/var vxfs delaylog 0 2
#/Dev/vg01/u01/u01 vxfs delaylog 0 2
#/Dev/vg00/u01test/u01 vxfs delaylog 0 2
#/Dev/vg00/cuugtest/database vxfs delaylog 0 2
/Dev/vg00/lv_u01/u01 vxfs delaylog 0 2