Skip to content

Instantly share code, notes, and snippets.

@leifg
Created November 14, 2012 13:52
Show Gist options
  • Save leifg/4072213 to your computer and use it in GitHub Desktop.
Save leifg/4072213 to your computer and use it in GitHub Desktop.
Resize logical volume in virtual machine
export VGNAME=ubuntu-10-04-i386
export SIZE=50G
sudo vgdisplay
sudo vgextend $VGNAME /dev/sdb
sudo lvresize -L +$SIZE /dev/$VGNAME/root
sudo resize2fs -p /dev/$VGNAME/root
df -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment