Extending a VxFS Filesystem (Online JFS)
- Verify that there is enough space in the volume group
- Check the volume group for enough space
- 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.
- First lvextend the logical volume - 2 Options for lvextend:
- lvextend -L <New Size in MB> /dev/VG_NAME/LV_NAME
- lvextend -l <NEW Size in # of LEs> /dev/VG_NAME/LV_NAME
- 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
1 Comments
Thanks for sharing this important information. You may also refer http://www.s4techno.com/blog/2016/06/17/extend-vxvm-filesystem/
ReplyDelete