Skip to content

Instantly share code, notes, and snippets.

@stefan2904
Created December 8, 2015 14:28
Show Gist options
  • Save stefan2904/6197b4835be83296fbbb to your computer and use it in GitHub Desktop.
Save stefan2904/6197b4835be83296fbbb to your computer and use it in GitHub Desktop.
I love LVM
thinkbook# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/thinkbook-home 148G 127G 15G 90% /home
thinkbook# lvextend -L+50G /dev/thinkbook/home
Size of logical volume thinkbook/home changed from 150.00 GiB (38400 extents) to 200.00 GiB (51200 extents).
Logical volume home successfully resized
thinkbook# resize2fs /dev/thinkbook/home
resize2fs 1.42.12 (29-Aug-2014)
Filesystem at /dev/thinkbook/home is mounted on /home; on-line resizing required
old_desc_blocks = 10, new_desc_blocks = 13
The filesystem on /dev/thinkbook/home is now 52428800 (4k) blocks long.
thinkbook# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/thinkbook-home 197G 128G 61G 68% /home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment