Help request- Adding increased hard disk space to Ubuntu server vm

thelonghop

Member
May 6, 2021
15
0
6
54
I'm using Proxmox 7.2-7, and have a Ubuntu server vm. I tried to upgrade the server but got a not enough space warning, so I increased the hard disk size in the hardware tab and it now has 48GB. However, I still get the not enough space warning, so I'm not sure how to attach the extra storage.

ubuntu@jellyfin:/$ sudo fdisk -l Disk /dev/sda: 48 GiB, 51539607552 bytes, 100663296 sectors Disk model: QEMU HARDDISK Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: F5615C89-DD37-46E0-82E7-A8DFA00AEDE4 Device Start End Sectors Size Type /dev/sda1 2048 4095 2048 1M BIOS boot /dev/sda2 4096 2101247 2097152 1G Linux filesystem /dev/sda3 2101248 25163775 23062528 11G Linux filesystem Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 11 GiB, 11806965760 bytes, 23060480 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes

ubuntu@jellyfin:/$ df -h Filesystem Size Used Avail Use% Mounted on tmpfs 383M 1.1M 382M 1% /run /dev/mapper/ubuntu--vg-ubuntu--lv 11G 8.9G 1.3G 88% / tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sda2 976M 165M 745M 19% /boot 10.10.0.73:/volume1/storage 13T 5.6T 7.0T 45% /mnt/storage tmpfs 383M 4.0K 383M 1% /run/user/1000
 
Isn't that easy. You just increased the size of the virtual disk, so you now got 12GB of partitioned space and 36GB of unallocated space. You now would have to:
1.) increase the size of your sda3 partition with the partitioning tool of your choice
2.) extend the size of the PV, VG and LV (for example lvextend command)
3.) extend your filesystem of the ubuntu LV (for example resize2fs command)

This is not really a Proxmox problem. All PVE can do is increasing the size of the virtual disk. All other things have to be done from inside the guest. This is not different like with a bare metal Ubuntu install, so there should be lots of tutorials out there.
 

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!