Confused about 'full' drive

AndyInNYC

New Member
May 26, 2024
11
0
1
I have installed my PBX into a proxmox VM.
The VM is 32GB (off of a 2TB SSD).

lsblk shows:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 91.9M 1 loop /snap/lxd/24061
loop1 7:1 0 91.9M 1 loop /snap/lxd/32662
loop2 7:2 0 49.9M 1 loop /snap/snapd/18357
loop3 7:3 0 63.3M 1 loop /snap/core20/1828
loop4 7:4 0 50.9M 1 loop /snap/snapd/24718
loop5 7:5 0 63.8M 1 loop /snap/core20/2599
sda 8:0 0 32G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 2G 0 part /boot
└─sda3 8:3 0 30G 0 part
└─ubuntu--vg-ubuntu--lv 253:0 0 15G 0 lvm /
sr0

so sda3 is 30GB and the "ubuntu..." portion is 15GB.
df -lh shows that the 15GB portion has 284M free.

How do I (or should I) expand the "ubuntu..." portion? Or am I creating a problem where there isn't one?


Help?


Andrew

Andrew
 
Hi Andrew,

284M is on a "tight" side of free space for a root file system. Personally, I'd want to have more there. On the other hand, if you have good confidence in space utilization by the OS/Application, perhaps you are ok.

The expansion is simple. You already have 15GB free in the LVM group inside the VM (unless you have not shown the entire output). You can simply follow one of the many guides of LV/FS expansion for Ubuntu/Linux.

If you wanted to expand beyond that, then you need to resize the disk in PVE (highlight the disk in Hardware panel and select Resize). Then complete the resize inside the VM, probably by using the one of the same guides as above.

Here is one of many similar discussions about this request: https://forum.proxmox.com/threads/resize-ubuntu-vm-disk.117810

Cheers,



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