I have a Fedora 33 with issues on the BTRFS file system.
When I do dnf update, the disk reports to be full:
# dnf update [Errno 28] No space left on device: '/var/cache/dnf/metadata_lock.pid'
When I do df, it reports enough space:
# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 7.8G 0 7.8G 0% /dev tmpfs 7.8G 4.6M 7.8G 1% /dev/shm tmpfs 3.2G 1.9M 3.2G 1% /run /dev/dm-1 216G 177G 39G 83% / tmpfs 7.8G 1.2M 7.8G 1% /tmp /dev/dm-1 216G 177G 39G 83% /home /dev/sda1 477M 207M 241M 47% /boot tmpfs 1.6G 496K 1.6G 1% /run/user/1000
But note that /dev/dm-1 is mounted on both / and /home
# mount | grep /home /dev/mapper/luks-e5fbe4ab-0ae9-4428-87c0-5c98b5acadd1 on /home type btrfs (rw,relatime,seclabel,compress=zstd:1,ssd,space_cache,subvolid=258,subvol=/home) # mount | grep "on / " /dev/mapper/luks-e5fbe4ab-0ae9-4428-87c0-5c98b5acadd1 on / type btrfs (rw,relatime,seclabel,compress=zstd:1,ssd,space_cache,subvolid=257,subvol=/root)
And BTRFS also gives a warning about multiple block group profiles:
# btrfs filesystem df /home Data, single: total=209.24GiB, used=170.95GiB System, DUP: total=8.00MiB, used=48.00KiB System, single: total=4.00MiB, used=0.00B Metadata, DUP: total=3.00GiB, used=2.56GiB Metadata, single: total=8.00MiB, used=0.00B GlobalReserve, single: total=451.16MiB, used=32.00KiB WARNING: Multiple block group profiles detected, see 'man btrfs(5)'. WARNING: Metadata: single, dup WARNING: System: single, dup
In /etc/fstab I have:
UUID=d7b908f7-49fb-41a0-8c1f-69f62f3001a1 / btrfs subvol=root,compress=zstd:1,x-systemd.device-timeout=0 0 0 UUID=dde3d3f6-9350-420f-b0ac-964ed556bf09 /boot ext4 defaults 1 2 UUID=d7b908f7-49fb-41a0-8c1f-69f62f3001a1 /home btrfs subvol=home,compress=zstd:1,x-systemd.device-timeout=0 0 0 /dev/mapper/luks-d53b5c50-2ac1-4800-aa17-a326b88144c1 swap swap defaults,x-systemd.device-timeout=0 0 0
Actually, I do not understand all of this, nor what is the root case of dnf reporting that there is no disk space left. Do you have any suggestions?