[SOLVED] Resize Ubuntu VM disk

Thanks for your reply , my problem solved here's how :



1st step: increase/resize disque from GUI console
2nd step : Extend physical drive partition
check free space : $sudo fdisk -l
$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 )



[U]3rd step: Extend Logical volume [/U]
$ 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
$ fdisk -l (# Confirm results)
Thank you. This helped me resolve my issue.
 
Last edited:
Thanks for your reply , my problem solved here's how :



1st step: increase/resize disque from GUI console
2nd step : Extend physical drive partition
check free space : $sudo fdisk -l
$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 )



[U]3rd step: Extend Logical volume [/U]
$ 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
$ fdisk -l (# Confirm results)

https://github.com/tradersquareoff/ubuntu-disk-resize-proxmox
 
Thanks for your reply , my problem solved here's how :



1st step: increase/resize disque from GUI console
2nd step : Extend physical drive partition
check free space : $sudo fdisk -l
$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 )



[U]3rd step: Extend Logical volume [/U]
$ 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
$ fdisk -l (# Confirm results)
This works without a flaw. Thank you so much.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!