Proxmox Increase the virtual Disk size of a VM

I just want you to know how to increase the disksize of a Nethserver running under Proxmox.

For example we have a Nethserver with the Proxmox VM-ID of 106 and we want to grow the size from 500GB to 1000GB…

On the Proxmox CLI:
qm resize 106 virtio0 +500G

On the Nethserver CLI:
parted /dev/sda
resizepart 2 100%
quit
pvresize /dev/sda2
lvextend --resizefs -l +100%FREE /dev/mapper/VolGroup-lv_root

3 Likes

@fausp

Hi

It’s also in here, slightly different:

https://wiki.nethserver.org/doku.php?id=userguide:nethserver_and_proxmox#nethserver_in_proxmoxenlarging_your_nethserver_disk

:slight_smile:

6 Likes

I was looking for it but… :smile: :grin: :laughing:

3 Likes

Hi @Andy_Wismer
your instructions have already provided me with valuable guidance in the past.
Now I have to increase the disk size for the Debian based NS8 machine under Proxmox 8.1. Do you have any experience with this?
Could you perhaps kindly create a guide for this?

The df is really confusing, but I think /dev/sda1 is the relevant.

# df
Dateisystem    1K-Blöcke  Benutzt Verfügbar Verw% Eingehängt auf
udev             7133424        0   7133424    0% /dev
tmpfs            1431264      864   1430400    1% /run
/dev/sda1       31861548 28866364   1351152   96% /
tmpfs            7156312      588   7155724    1% /dev/shm
tmpfs               5120        0      5120    0% /run/lock
tmpfs            1431260       72   1431188    1% /run/user/1003
tmpfs            1431260       72   1431188    1% /run/user/1001
tmpfs            1431260      176   1431084    1% /run/user/1007
tmpfs            1431260      176   1431084    1% /run/user/1002
tmpfs            1431260       64   1431196    1% /run/user/1004
tmpfs            1431260        0   1431260    0% /run/user/1009
tmpfs            1431260        0   1431260    0% /run/user/1008
tmpfs            1431260       76   1431184    1% /run/user/1006
shm                64000        0     64000    0% /var/lib/containers/storage/overlay-containers/9497b86d31bad514e0495c444827aac2d768d46636dd57321f1edc8e7e3f3f51/userdata/shm
overlay         31861548 28866364   1351152   96% /var/lib/containers/storage/overlay/b9ed7d3e60b29e84cb3586d29fc636a4866650c5ec104bf5ad0f04f36620fc9d/merged
shm                64000        0     64000    0% /var/lib/containers/storage/overlay-containers/a3f75f1247609712c89ff2b2585e4a588e1b5c09bcc9f36917c13c38582fdc5e/userdata/shm
overlay         31861548 28866364   1351152   96% /var/lib/containers/storage/overlay/79495d001b778dfe17c230367039a6032798fec61a072bd4374aecffce10ad71/merged
shm                64000        0     64000    0% /var/lib/containers/storage/overlay-containers/f15a3e5bb2219767c392924fa99be73ad5b86869ce61252a3a751ac16f879309/userdata/shm
overlay         31861548 28866364   1351152   96% /var/lib/containers/storage/overlay/65e71bd6aca463372a5c9422a2f245c55769081cf2aae809242f8610f48f6983/merged
shm                64000        0     64000    0% /var/lib/containers/storage/overlay-containers/2074b30eb797f6d1cf20bdc3199db8775f62083bb2c2719d4761ce19474a932f/userdata/shm
overlay         31861548 28866364   1351152   96% /var/lib/containers/storage/overlay/eb70aed1501a003b496b8fbd071f5b979afbc7802a53249db92b5c37862b6818/merged
tmpfs            1431260        0   1431260    0% /run/user/0

But what about the overlay disks?
Sincerely, Marko

Hi Marko

I would need to check my instructions compared to NS8. Basically it works, but the detail might have some issues.

I will provide feedback.

Andy

1 Like

Hi @capote

I just sent you a PR with a link.

It is working for sure as I did it a few days ago.

Michel-André

2 Likes