25 October 2011

LVM + ReiserFS for the win

LVM + ReiserFS for the win!

It's so easy to add more space
root@atom:~
# lvextend -L +100G /dev/vg2/local
Extending logical volume local to 200.00 GiB
Logical volume local successfully resized
root@atom:~
# resize_reiserfs /dev/vg2/local
resize_reiserfs 3.6.21 (2009 www.namesys.com)

resize_reiserfs: On-line resizing finished successfully.
root@atom:~
# df -h /dev/mapper/vg2-local
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg2-local
200G 18G 183G 9% /media/local
root@atom:~

4 comments:

Andy Brook said...

Ooo very nice. How long did it take to resize?

Tim Abell said...

About ten seconds in all. kerpow.

Tim Abell said...

Did I mention that the filesystem was on-line all the time? :D

Important if you want to resize your root partition which you can't unmount.

Tim Abell said...

root@atom:~
# time lvextend -L +30G /dev/vg1/home
Extending logical volume home to 130.00 GiB
Logical volume home successfully resized

real 0m0.736s
user 0m0.004s
sys 0m0.064s
root@atom:~
# time resize_reiserfs /dev/vg1/home
resize_reiserfs 3.6.21 (2009 www.namesys.com)



resize_reiserfs: On-line resizing finished successfully.


real 0m5.557s
user 0m0.000s
sys 0m0.088s