Sysroot low on disk space issue

I’ve been running Silverblue for about half a year now, and am starting to get “low on disk space” warnings. I used the default partition schema upon installation and a quick df -h just now indeed revealed the issue:

/dev/mapper/fedora_[hostname]-root     49G      46G  1,4G  98% /sysroot

What’s going on here? This partition seems to contain the ostree stuff, and as you can see I don’t have an insane amount of pinned versions or layered packages:

$ rpm-ostree status
State: idle
AutomaticUpdates: disabled
Deployments:
● ostree://fedora-workstation:fedora/30/x86_64/silverblue
                   Version: 30.20191021.0 (2019-10-21T16:15:49Z)
                BaseCommit: 4461700555202ad6bda9758c62d7a5b329c71173d0f796d63f4e78dc07bf7b14
              GPGSignature: Valid signature by F1D8EC98F241AAF20DF69420EF3C111FCFC659B9
           LayeredPackages: adobe-source-sans-pro-fonts cabextract docker-compose fedora-workstation-repositories file-roller fuse-exfat fuse-sshfs gnome-shell-extension-dash-to-dock gnome-shell-extension-gsconnect
                            gnome-shell-extension-openweather gnome-shell-extension-suspend-button gnome-tweaks google-croscore-cousine-fonts google-crosextra-carlito-fonts langpacks-nl libratbag-ratbagd moby-engine ncdu simple-scan unrar
                            virt-manager
             LocalPackages: brscan4-0.4.8-1.x86_64 rpmfusion-free-release-30-1.noarch rpmfusion-nonfree-release-30-1.noarch

  ostree://fedora-workstation:fedora/30/x86_64/silverblue
                   Version: 30.20191021.0 (2019-10-21T16:15:49Z)
                BaseCommit: 4461700555202ad6bda9758c62d7a5b329c71173d0f796d63f4e78dc07bf7b14
              GPGSignature: Valid signature by F1D8EC98F241AAF20DF69420EF3C111FCFC659B9
           LayeredPackages: adobe-source-sans-pro-fonts cabextract docker-compose fedora-workstation-repositories fuse-exfat fuse-sshfs gnome-shell-extension-dash-to-dock gnome-shell-extension-gsconnect gnome-shell-extension-openweather
                            gnome-shell-extension-suspend-button gnome-tweaks google-croscore-cousine-fonts google-crosextra-carlito-fonts langpacks-nl libratbag-ratbagd moby-engine ncdu simple-scan unrar virt-manager
             LocalPackages: brscan4-0.4.8-1.x86_64 rpmfusion-free-release-30-1.noarch rpmfusion-nonfree-release-30-1.noarch

So is this normal? Do I need to do some cache cleaning manually? Anybody else experiencing this?

You could try seeing if ostree prune clears up anything.

/sysroot contains /var too under deploy so any Docker images you have will be in there.

Ostree prune did nothing. I cleaned out docker images though, giving me back a few gigabytes. Got it back to 38Gb, which is 81%. Still think that’s quite large…

My sysroot partition is just 28 GB so it’s usually pretty full.

This is what I do to free some space:

# flatpak cleanup
flatpak uninstall --unused

#docker/podman cleanup
docker system prune -a
podman system prune -a

#Retain only the logs from last 2 days
journalctl --vacuum-time=2d

3 Likes

Thank you, I specially like the flatpak uninstall --unused command, It made me save 3.8GB today and I wish I could have been warned before the F32 migration to clean-up some disk space as I was 100% full after F32 upgrade download.