Aug 06 2007

Resizing mounted EXT3 filesystems

Published by Brian at 12:52 pm under Computers, Linux

In case you were not aware, RedHat (and I’m assuming most other Linuxes) can resize and extend EXT3 filesystems while they’re mounted and being used. You need to be using LVM to do this (and if you aren’t, why not?)

Behold:
[root@tlfvm ~]# lvextend -L8G /dev/vg00/lvusr
Extending logical volume lvusr to 8.00 GB
Logical volume lvusr successfully resized

[root@tlfvm ~]# resize2fs -p /dev/vg00/lvusr
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/vg00/lvusr is mounted on /usr; on-line resizing required
Performing an on-line resize of /dev/vg00/lvusr to 2097152 (4k) blocks.
The filesystem on /dev/vg00/lvusr is now 2097152 blocks long.

Try that on your NTFS partition, Windows fanboy!

4 Responses to “Resizing mounted EXT3 filesystems”

  1. PiperChristianon 06 Aug 2007 at 5:48 pm

    It’s funny that you should post a message about resizing when the code you’ve posted doesn’t format correctly on the page. Instead it overruns the margin and interferes with the items listed on the left of the page. Hahahaha… thanks for the laugh. :)
    P.S. Happy birthday (again) Phaedrah!!

  2. Brianon 06 Aug 2007 at 6:10 pm

    Yea, that was weird wasn’t it? I fixed it I think!

  3. AtomicInterneton 07 Aug 2007 at 3:16 am

    Hate to burst your bubble, but Vista does on-they-fly resize as well. I used it when I did my XP/Vista dual-boot thingamajig. Sorry dude, can’t hate on this one. http://www.winmatrix.com/forums/index.php?showtopic=12188

  4. Brianon 07 Aug 2007 at 5:06 am

    What’s this “Vista” you speak of? Never heard of it.

    On a serious note, that is nice. Still don’t quite understand the alphabet soup mentality, though.

Trackback URI | Comments RSS

Leave a Reply