Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Blueblazer172/0a8f9890ab68d6e28c43f9a19f5351ef to your computer and use it in GitHub Desktop.
Save Blueblazer172/0a8f9890ab68d6e28c43f9a19f5351ef to your computer and use it in GitHub Desktop.
Proxmox increase disk and resize existing filesystem
1st step: increase/resize VM disk from Proxmox GUI console
2nd step: Extend physical drive partition
sudo fdisk -l (check free space)
growpart /dev/sda 3 (Extend physical drive partition )
pvdisplay (See phisical drive)
sudo pvresize /dev/sda3 (Instruct LVM that disk size has changed)
pvdisplay (check physical drive if has changed)
3rd step: Extend Logical volume
lvdisplay (View starting LV)
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv (Resize LV)
lvdisplay (View changed LV)
4th step: Resize Filesystem
resize2fs /dev/ubuntu-vg/ubuntu-lv (Resize FS)
fdisk -l (Confirm results)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment