[SOLVED] Update-initramfs: no space left on device

hieronymus

Member
Feb 27, 2021
6
3
8
38
Hallo zusammen,

ich würde gerne den Kernel meiner Proxmox Installation updaten. Nur leider bekomme ich immer wieder die Fehlermeldung "no space left on device".
Da ich nicht so bewandert mit Proxmox bin, und ich gerne eine Neuinstallation des Servers vermeiden würde, würde es mich sehr freuen, wenn mir eventuell jemand weiterhelfen könnte.

Was bisher passierte...

Ich habe ein Systemupdate laufen lassen, während der Installation lief bei dem Befehl 'update-initramfs' irgendwas schief. (Den Output habe ich nicht mehr)
Also habe ich versucht dies manuel zu wiederholen:

Code:
update-initramfs -u -v
Code:
...
Building cpio /boot/initrd.img-5.4.140-1-pve.new initramfs
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/08D5-02C6
        Copying kernel and creating boot-entry for 5.4.119-1-pve
        Copying kernel and creating boot-entry for 5.4.140-1-pve
mkdir: cannot create directory ‘/var/tmp/espmounts/08D5-02C6/EFI/proxmox/5.4.140-1-pve’: No space left on device
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 1

Ok, dann habe ich mit Recherche versucht herauszufinden, was es sein könnte...

Erstmal checken, was das Filesystem sagt:

Code:
df -h
Code:
Filesystem                         Size  Used Avail Use% Mounted on
udev                                24G     0   24G   0% /dev
tmpfs                              4.7G  9.9M  4.7G   1% /run
rpool/ROOT/pve-1                   234G  3.0G  231G   2% /
tmpfs                               24G   43M   24G   1% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                               24G     0   24G   0% /sys/fs/cgroup
/dev/sdh1                          113G   42G   66G  39% /mnt/pve/ISOs
/dev/sdg1                          220G   61M  208G   1% /mnt/pve/Backup
local-zfs-ssd01                    107G  128K  107G   1% /local-zfs-ssd01
local-zfs-ssd01/subvol-601-disk-0   16G  1.7G   15G  11% /local-zfs-ssd01/subvol-601-disk-0
rpool                              231G  128K  231G   1% /rpool_mount
local-zfs-sas01                    167G  128K  167G   1% /local-zfs-sas01
rpool/ROOT                         231G  128K  231G   1% /rpool_mount/ROOT
rpool/data                         231G  128K  231G   1% /rpool_mount/data
local-zfs-sas01/subvol-602-disk-0   32G  643M   32G   2% /local-zfs-sas01/subvol-602-disk-0
/dev/fuse                           30M   24K   30M   1% /etc/pve
tmpfs                              4.7G     0  4.7G   0% /run/user/0

Sehe nur irgendwie nicht, wo es mir an Disk-Space fehlen sollte...

Dann habe ich versucht schonmal einen alten Kernel, der nicht in Benutzung ist, manuel zu entfernen:

Code:
uname -r
Code:
5.4.119-1-pve

Code:
dpkg -l | grep pve-kernel
Code:
ii  pve-firmware                         3.3-1                         all          Binary firmware code for the pve-kernel
iU  pve-kernel-5.4                       6.4-6                         all          Latest Proxmox VE Kernel Image
ii  pve-kernel-5.4.119-1-pve             5.4.119-1                     amd64        The Proxmox PVE Kernel Image
rH  pve-kernel-5.4.124-1-pve             5.4.124-2                     amd64        The Proxmox PVE Kernel Image
rH  pve-kernel-5.4.128-1-pve             5.4.128-2                     amd64        The Proxmox PVE Kernel Image
iF  pve-kernel-5.4.140-1-pve             5.4.140-1                     amd64        The Proxmox PVE Kernel Image
rH  pve-kernel-5.4.73-1-pve              5.4.73-1                      amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-helper                    6.4-6                         all          Function for various kernel maintenance tasks.
Code:
dpkg --remove pve-kernel-5.4.124-1-pve
Code:
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 5.4.124-1-pve /boot/vmlinuz-5.4.124-1-pve
update-initramfs: Deleting /boot/initrd.img-5.4.124-1-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 5.4.124-1-pve /boot/vmlinuz-5.4.124-1-pve
run-parts: executing /etc/kernel/postrm.d/zz-proxmox-boot 5.4.124-1-pve /boot/vmlinuz-5.4.124-1-pve
Re-executing '/etc/kernel/postrm.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/08D5-02C6
        Copying kernel and creating boot-entry for 5.4.119-1-pve
        Copying kernel and creating boot-entry for 5.4.140-1-pve
mkdir: cannot create directory ‘/var/tmp/espmounts/08D5-02C6/EFI/proxmox/5.4.140-1-pve’: No space left on device
run-parts: /etc/kernel/postrm.d/zz-proxmox-boot exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/pve-kernel-5.4.124-1-pve.postrm line 14.
dpkg: error processing package pve-kernel-5.4.124-1-pve (--remove):
 installed pve-kernel-5.4.124-1-pve package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
 pve-kernel-5.4.124-1-pve

Aber auch hier wieder die gleiche Fehlermeldung.

Vielleicht geht's automatisch?

Code:
apt --fix-broken install
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  pve-kernel-5.4.124-1-pve pve-kernel-5.4.128-1-pve pve-kernel-5.4.73-1-pve
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 865 MB disk space will be freed.
N: Ignoring file 'pve-enterprise.list.backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
Do you want to continue? [Y/n] Y
(Reading database ... 51463 files and directories currently installed.)
Removing pve-kernel-5.4.124-1-pve (5.4.124-2) .........................................]
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 5.4.124-1-pve /boot/vmlinuz-5.4.124-1-pve
update-initramfs: Deleting /boot/initrd.img-5.4.124-1-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 5.4.124-1-pve /boot/vmlinuz-5.4.124-1-pve
run-parts: executing /etc/kernel/postrm.d/zz-proxmox-boot 5.4.124-1-pve /boot/vmlinuz-5.4.124-1-pve
Re-executing '/etc/kernel/postrm.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/08D5-02C6
        Copying kernel and creating boot-entry for 5.4.119-1-pve
        Copying kernel and creating boot-entry for 5.4.140-1-pve
mkdir: cannot create directory ‘/var/tmp/espmounts/08D5-02C6/EFI/proxmox/5.4.140-1-pve’: No space left on device
run-parts: /etc/kernel/postrm.d/zz-proxmox-boot exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/pve-kernel-5.4.124-1-pve.postrm line 14.
dpkg: error processing package pve-kernel-5.4.124-1-pve (--remove):
 installed pve-kernel-5.4.124-1-pve package post-removal script subprocess returned error exit status 1
Removing pve-kernel-5.4.128-1-pve (5.4.128-2) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 5.4.128-1-pve /boot/vmlinuz-5.4.128-1-pve
update-initramfs: Deleting /boot/initrd.img-5.4.128-1-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 5.4.128-1-pve /boot/vmlinuz-5.4.128-1-pve
run-parts: executing /etc/kernel/postrm.d/zz-proxmox-boot 5.4.128-1-pve /boot/vmlinuz-5.4.128-1-pve
Re-executing '/etc/kernel/postrm.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/08D5-02C6
        Copying kernel and creating boot-entry for 5.4.119-1-pve
        Copying kernel and creating boot-entry for 5.4.140-1-pve
mkdir: cannot create directory ‘/var/tmp/espmounts/08D5-02C6/EFI/proxmox/5.4.140-1-pve’: No space left on device
run-parts: /etc/kernel/postrm.d/zz-proxmox-boot exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/pve-kernel-5.4.128-1-pve.postrm line 14.
dpkg: error processing package pve-kernel-5.4.128-1-pve (--remove):
 installed pve-kernel-5.4.128-1-pve package post-removal script subprocess returned error exit status 1
Removing pve-kernel-5.4.73-1-pve (5.4.73-1) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 5.4.73-1-pve /boot/vmlinuz-5.4.73-1-pve
update-initramfs: Deleting /boot/initrd.img-5.4.73-1-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 5.4.73-1-pve /boot/vmlinuz-5.4.73-1-pve

run-parts: executing /etc/kernel/postrm.d/zz-proxmox-boot 5.4.73-1-pve /boot/vmlinuz-5.4.73-1-pve
Re-executing '/etc/kernel/postrm.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/08D5-02C6
        Copying kernel and creating boot-entry for 5.4.119-1-pve
        Copying kernel and creating boot-entry for 5.4.140-1-pve
mkdir: cannot create directory ‘/var/tmp/espmounts/08D5-02C6/EFI/proxmox/5.4.140-1-pve’: No space left on device
run-parts: /etc/kernel/postrm.d/zz-proxmox-boot exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/pve-kernel-5.4.73-1-pve.postrm line 14.
dpkg: error processing package pve-kernel-5.4.73-1-pve (--remove):
 installed pve-kernel-5.4.73-1-pve package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
 pve-kernel-5.4.124-1-pve
 pve-kernel-5.4.128-1-pve
 pve-kernel-5.4.73-1-pve
E: Sub-process /usr/bin/dpkg returned an error code (1)

Einen Versuch war's wert.

Ich weiß nicht mehr weiter.
Vielen Dank an alle, die sich das anschauen.
 
  • Like
Reactions: fireon
Hey,

vielen lieben Dank, das war die Lösung. Nachdem ich die alten Kernel manuel von /boot entfernt habe, war auch genug Platz zum updaten da.
 
  • Like
Reactions: oguz
Wenn du es dir für das nächste mal einfacher machen willst kannst du gelegendlich nach einem Upgrade mal ein apt autoremove ausführen. Das entfernt dir dann nicht mehr benötigte Pakete wie z.B. sehr alte Kernel und deine Boot-Partition läuft erst garnicht voll. PVE blockiert im übrigen die aktuellsten paar Kernel vor dem gelöscht werden, dass du da dann trotzdem immer noch zu einem älteren Kernel wechseln kannst, falls der neuste dir mal Probleme verursacht.
 

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!