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

Share this

Related Posts

Previous
Next Post »

1 comments:

Write comments
Anonymous
June 20, 2011 at 3:28 PM delete

could be better

Reply
avatar

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