Help - Search - Members - Calendar
Full Version: I just love lvm2
MandrivaUsers.org > Advanced Topics > Command Line, Kernel and Programming
jlc
I've installing quite a bit of software into /usr lately and just noticed i was running out of space.

justin@neo justin $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 2.1G 213M 1.8G 11% /
/dev/vg/usr 10G 9.6G 467M 96% /usr
/dev/vg/home 35G 27G 8.8G 76% /home
/dev/vg/opt 5.0G 2.2G 2.9G 43% /opt
/dev/vg/var 5.0G 304M 4.7G 6% /var
/dev/vg/tmp 2.0G 356K 2.0G 1% /tmp
none 378M 0 378M 0% /dev/shm
/dev/sda2 14G 5.3G 8.7G 39% /mnt/ipod


oops.gif

Never fear, lvm2 w/ xfs to the rescue.
CODE
# lvextend -L15G /dev/vg/usr

# xfs_growfs /usr


justin@neo justin $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 2.1G 213M 1.8G 11% /
/dev/vg/usr 15G 9.6G 5.5G 64% /usr
/dev/vg/home 35G 27G 8.8G 76% /home
/dev/vg/opt 5.0G 2.2G 2.9G 43% /opt
/dev/vg/var 5.0G 304M 4.7G 6% /var
/dev/vg/tmp 2.0G 336K 2.0G 1% /tmp
none 378M 0 378M 0% /dev/shm
/dev/sda2 14G 5.3G 8.7G 39% /mnt/ipod


All while she was mounted and emergeing stuff! wink.gif



No point to this post other than lvm is just good stuff.


cool.gif


Edit: moved from Everything Linux by spinynorman
Michel
Nice to ehar about this. I want to try it out myself, but I'll need to have ome time and search how to set it up.
jdion81
OK but where did the extra 5 gig come from?
jlc
I have a 200 gb drive, 100 of it is slated for lvm and the rest just sits there and i can pull it into lvm or use it for regular partions or other distros.

One of my other systems has 4 36gb scis drives and I currently have two of them under lvm and the others aren't used, but I can bring them into my volume group if i want to add dir or expand the ones i have.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.