One of my PVE nodes has been installed some years ago and even though it has always upgraded it to the newest PVE version (currently 8.4.3), one thing has been bothering me for a while.
When the node was installed, it was done by using ext4 & mdstat, ending in a partition layout like this:
sda1 and sdb1 are part of md0, which is mounted at /boot. As you can see, it has only got 190MiB reserved for that partition.
Whenever a new kernel arrives, it is impossible to just apt-get update it, because the old and the new kernel don't fit into those 190MiB at the same time. The update ends with "no space left on the device". What I need to do is to manually delete (rm ...) any non running kernel including initrd etc. from /boot and also even remove the running kernels initrd.img. Only then can I install a new kernel.
So, long story short: how can I increase the size of the /boot partition? If that is too cumbersome, I am also inclined to just move the VMs to another node and simply reinstall that node, but if there is a somewhat easy way, I'd like to resize the partition.
Any ideas appreciated ... thanks in advance!
When the node was installed, it was done by using ext4 & mdstat, ending in a partition layout like this:
Code:
$ gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.9
[...]
Number Start (sector) End (sector) Size Code Name
1 2048 391167 190.0 MiB FD00 Linux RAID
2 391168 16015359 7.5 GiB 8200 Linux swap
3 16015360 113672191 46.6 GiB FD00 Linux RAID
5 113674240 1953525167 877.3 GiB FD00 Linux RAID
sda1 and sdb1 are part of md0, which is mounted at /boot. As you can see, it has only got 190MiB reserved for that partition.
Whenever a new kernel arrives, it is impossible to just apt-get update it, because the old and the new kernel don't fit into those 190MiB at the same time. The update ends with "no space left on the device". What I need to do is to manually delete (rm ...) any non running kernel including initrd etc. from /boot and also even remove the running kernels initrd.img. Only then can I install a new kernel.
So, long story short: how can I increase the size of the /boot partition? If that is too cumbersome, I am also inclined to just move the VMs to another node and simply reinstall that node, but if there is a somewhat easy way, I'd like to resize the partition.
Any ideas appreciated ... thanks in advance!
Last edited: