No space left in pool

I have Ubuntu 24.04 root on zfs.

I was wondering if someone could help to understand what is happening here:
root@orac:/home/mike# update-initramfs -c -k $(uname -r)
update-initramfs: Generating /boot/initrd.img-6.8.0-147-generic
I: The initramfs will attempt to resume from /dev/sdc2
I: (UUID=4beae336-bf28-47f2-9708-c7cb476aa378)
I: Set the RESUME variable to override this.
cat: /var/tmp/mkinitramfs-FW_TPa9hn: No space left on device
update-initramfs: failed for /boot/initrd.img-6.8.0-147-generic with 1.
root@orac:/home/mike# zsysctl list
ID                        ZSys  Last Used
--                        ----  ---------
rpool/ROOT/ubuntu_jqp85c  true  current
root@orac:/home/mike# zfs list -o space rpool/ROOT/ubuntu_jqp85c/var
NAME                          AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD
rpool/ROOT/ubuntu_jqp85c/var   723G  30.6G        0B     96K             0B      30.6G
root@orac:/home/mike# 

Thanks.

Maybe /boot is full?
List all filesystems with df -H and see which one is full.

Yes it is indeed boot.

root@orac:/home/mike# zfs list -r bpool
NAME USED AVAIL REFER MOUNTPOINT
bpool 1.74G 8.23M 96K /boot
bpool/BOOT 1.74G 8.23M 96K none
bpool/BOOT/ubuntu_11vqif 85.7M 8.23M 110M /boot
bpool/BOOT/ubuntu_1c3q9v 8K 8.23M 210M /boot
bpool/BOOT/ubuntu_a3ng7k 189M 8.23M 210M /boot
bpool/BOOT/ubuntu_csk773 600M 8.23M 110M /boot
bpool/BOOT/ubuntu_i0fmsg 8K 8.23M 210M /boot
bpool/BOOT/ubuntu_jqp85c 904M 8.23M 210M /boot
bpool/BOOT/ubuntu_tbv2r3 56K 8.23M 210M /boot

It has nothing to do with /var/tmp, I do not understand why that is even referenced.

Thank you for your help.

Misleading output in the error dialog.

root@orac:/home/mike# update-initramfs -c -k $(uname -r)
update-initramfs: Generating /boot/initrd.img-6.8.0-147-generic
I: The initramfs will attempt to resume from /dev/sdc2
I: (UUID=4beae336-bf28-47f2-9708-c7cb476aa378)
I: Set the RESUME variable to override this.
cat: /var/tmp/mkinitramfs-FW_TPa9hn: No space left on device
update-initramfs: failed for /boot/initrd.img-6.8.0-147-generic with 1.

Note the very first line of output returned: Generating /boot/initrd.img-6.8.0-147-generic.

You got sniped by only looking directly at the line that reported the ENOSPC itself:

cat: /var/tmp/mkinitramfs-FW_TPa9hn: No space left on device

I suspect the entire command was cat /var/tmp/mkinitramfs-FW_TPa9hn > /boot/initrd.img-6.8.0-147-generic… but the shell’s error reporting only showed the initial command, not the redirect.

How did you fix the /boot full issue. I usually use apt autoremove on Debian, but I’m curious about zfs on root.

Probably just destroyed some of the multiple boot environments we see listed in that ls output. Even without BEs, you sometimes see very small /bootpartitions run out of space after an upgrade (which is why very small /boot partitions are a bad idea).

Hell, I’ve even had the same issue under Windows! You ENOSPC your UEFI partition, you’re gonna have a bad time…

Most of the space in boot is taken up by snapshots. I did

zfs list -t snap -r bpool

and destroyed some snapshots I didn’t think I needed.