Skip to content

Adding space to LVM logical volumes

2010/06/19

http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html

By example:
sudo lvextend -L+10G /dev/[volume group name]/[logical volume name]
eg
sudo lvextend -L+10G /dev/vg0/home
The preceding command would add 10GB to the logical volume ‘home’ on the volume group ‘vg0’ and the logical volume would now be ready to resize the filesystem. This can be accomplished using the resize2fs command.
sudo resize2fs /dev/[volume group name]/[logical volume name]
eg
sudo resize2fs /dev/vg0/home
The logical volume is now resized, we can confirm with
df -h /dev/mapper/[volume group name]-[logical volume name]/
eg
df -h /dev/mapper/vg0-home

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: