Trouble resizing VM disk

droidus

Member
Apr 5, 2020
107
2
23
34
I am trying to resize my root VM disk. It doesn't seem like it is working though:

1654182382337.png
 
Code:
[root@new-confluence ~]# lsblk
NAME                        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                           8:0    0  132G  0 disk
├─sda1                        8:1    0    1G  0 part /boot
└─sda2                        8:2    0   31G  0 part
  ├─rl_new--confluence-root 253:0    0 27.8G  0 lvm  /
  └─rl_new--confluence-swap 253:1    0  3.2G  0 lvm  [SWAP]
sr0                          11:0    1  1.9G  0 rom
[root@new-confluence ~]# pvs
  PV         VG                Fmt  Attr PSize   PFree
  /dev/sda2  rl_new-confluence lvm2 a--  <31.00g    0
[root@new-confluence ~]# vgs
  VG                #PV #LV #SN Attr   VSize   VFree
  rl_new-confluence   1   2   0 wz--n- <31.00g    0
[root@new-confluence ~]# lvs
  LV   VG                Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root rl_new-confluence -wi-ao---- 27.79g
  swap rl_new-confluence -wi-ao----  3.20g
[root@new-confluence ~]#
 
As you can see from the output your Logical Volume lives in Volume Group, that lives in Physical Group, that lives on top of partition. That partition is 32GiB and there is no free space available to expand the Logical Volume.
You need to expand every layer from bottom up.

Google suggests: https://carleton.ca/scs/2019/extend-lvm-disk-space/


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:

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!