Thanks for your reply , my problem solved here's how :These are the keywords for google: "lvm size increase"
An example suitable search result: https://www.redhat.com/sysadmin/resize-lvm-simple
Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
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)
Helped me ALOT, thank you. Could not finde the right thing through googling ...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)
I don't see a way to do step 1. In the Proxmox gui for the VM there is no place to increase the size that I can find.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)
Click on your VM --> Hardware --> Choose "HardDisk" from the list --> Click on "DiskAction" at the top --> ResizeI don't see a way to do step 1. In the Proxmox gui for the VM there is no place to increase the size that I can find.
Helped me ALOT, thank you. Could not finde the right thing through googling ... (2)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 is very helpful. Thanks!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)
I really have to say that this response was so RTFM/STFU to the OP that I'm having a hard time seeing how you have a "Famous Member" title. I literally had to create an account to respond to this because it's so monumentally unhelpful. I mean, the second link on Google today was EXACTLY the same procedure that OP ended up using. Hell, even a proxmox forum post from May 2020 had better info: https://forum.proxmox.com/threads/resize-disk-of-ubuntu-19-10-vm-on-proxmox.70352/These are the keywords for google: "lvm size increase"
An example suitable search result: https://www.redhat.com/sysadmin/resize-lvm-simple
Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
I've done this countless times on disks that are full with no issues. That said it's still a risk to resizefs, however since the tool should only function against the blank part of the disk you should be fine. Just go slow and check your work as you go. You'll be just fine.Hi there,
@Kapsville This procedure will affect my data? Is it ok if my disk is almost full ?
You are correct, the VM structure is Raw Disk>Partition>Filesystem.As you can see in the screenshot the VM machine does not manage disks with LVM
not online. There is probably no benefit for you do it either.Is it possible to convert the raw disk to LVM (without loasing data )?
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)
rrofsh !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)