Sharing Knowledge | System Admin Articles

Extending a VxFS Filesystem (Online JFS)

  1. Verify that there is enough space in the volume group
    • Check the volume group for enough space
      • vgdisplay <VG Name>
    • Check the logical volume to determine if mirroring or striping is in effect
      • lvdisplay /dev/vg_name/lv_name
    • If there is not enough space then the volume group must be extended - see procedure below.
  2. First lvextend the logical volume - 2 Options for lvextend:
    1. lvextend -L <New Size in MB> /dev/VG_NAME/LV_NAME
    2. lvextend -l <NEW Size in # of LEs> /dev/VG_NAME/LV_NAME
  3. fsadm -F vxfs  -b <new size of filesystem in K> <MOUNT POINT>
    • NOTE:  extendfs will NOT work with Online JFS, you must use fsadm
    • NOTE:  new size of the filesystem = <# of LEs> * <LE Size in MB> * 1024
    • NOTE:  If lvextend -L was used simply multipy size in MB by 1024
    • NOTE:  If this FAILS with errno 28, then the filesystem is 100% full and must be reduced to less than 100%.
    • NOTE:  If this FAILS with "write failure at block XXXXXXXX : No such device or address" then the new size may be too big, use a smaller number

Labels: HP-UX

My Profile PhotoAbout the Author

I'm Madesh, An UNIX System Admin by Profession. I'm having Expertise in HP-UX and Linux Administration. I have done lot of work on the infrastructure Mgmt side in UNIX system administration, Hardware, Storage (EMC/ HP EVA). I'm blogging since 2010.
Follow Me On Twitter or On Facebook

1 Comments for "Extending a VxFS Filesystem (Online JFS)"

could be better

What do you think about this Article? Add your Opinion..!

Back To Top