Last active
May 28, 2024 11:25
-
-
Save Blueblazer172/0a8f9890ab68d6e28c43f9a19f5351ef to your computer and use it in GitHub Desktop.
Proxmox increase disk and resize existing filesystem
This file contains 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
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