Online ext3 FS Resizing?
Hello all,
Quick question. I have a FS that needs to be increased by 1GB. I was able to increase the LV that it sits upon via an lvextend command without trouble. However, what is the best way to increase the FS to use the, now available, space. I know in HP-UX I can do this with an fsadm command, in AIX I can do an extendfs, just don't see a way to do it online via Linux. I noticed resize2fs, but this is ext3. Thanks! Tom |
resize2fs is for both ext2 and ext3. But as you stated, it doesn't work when the LV is mounted.
|
Thanks for the assistance. I discovered as well that resize2fs can be used on ext3 FS's as well. Someone needs to rename that! ;-) ... and you are correct, looks like I needed to unmount the FS before extending it. The below steps work fine:
lvextend -L 1536 /dev/rootvg/lvtest umount /test e2fsck -y -f /dev/rootvg/lvtest resize2fs -p /dev/rootvg/lvtest e2fsck -y -f /dev/rootvg/lvtest mount /test df -m /test Found the steps via google, works fine. Hope they help. Thanks, Tom |
All times are GMT -5. The time now is 12:54 AM. |