This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). | |
# There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager (LVM) in Ubuntu, | |
# so the process isn't too bad. | |
# After you make the additional space available in VMWare/Xen/Hyper-V, first reboot your Ubuntu server so it can | |
# see the new free space (commenter Michal notes that you can avoid this restart by asking the kernel to rescan the | |
# disk with 'echo 1 > /sys/class/block/sda/device/rescan'). | |
sudo growpart /dev/sda 3 | |
pvdisplay | |
lvdisplay |