I’m on the brink of running out of space on my root partition and will have to steal some space from /home.
I’ve done this in the past on a different distribution, and if I’m not mistaken I should be able to do this without doing it on a live distro (if not, how do I deal with LUKS?) as long as I unmount my /home partition (growing should be fine on a mounted partition). However, I’m not sure how to either just log in as root or unmount the /home partition after booting like normal and changing run level. I tried appending “init=/bin/bash” after the kernel line in GRUB without success.
To be perfectly honest I just went with the default options when I first installed the distro and the only thing I’ve hated so far is dealing with btrfs. My routine (after first running out of space a long time ago and quickly finding out about btrfs through Google) has been more or less to delete all snapshots after an update then do a full balance (which lately has been failing).
It does look like I’m genuinely running out of space though. Had to remove Chromium and LibreOffice after the the last couple of updates.
snapper list
Type | # | Pre # | Date | User | Cleanup | Description | Userdata
-------+---+-------+--------------------------+------+---------+-----------------------+---------
single | 0 | | | root | | current |
single | 1 | | Fri Nov 6 01:17:37 2015 | root | | first root filesystem |
NEXT LEFT LAST PASSED UNIT
Fri 2018-02-09 15:00:00 CET 20min left Fri 2018-02-09 14:00:22 CET 39min ago snapper-timeline.timer
Sat 2018-02-10 00:00:00 CET 9h left Fri 2018-02-09 10:09:41 CET 4h 29min ago logrotate.timer
Sat 2018-02-10 13:21:01 CET 22h left Fri 2018-02-09 13:21:01 CET 1h 18min ago snapper-cleanup.timer
Sat 2018-02-10 13:26:34 CET 22h left Fri 2018-02-09 13:26:34 CET 1h 13min ago systemd-tmpfiles-clean
Mon 2018-02-12 00:00:00 CET 2 days left Mon 2018-02-05 00:00:57 CET 4 days ago btrfs-balance.timer
Thu 2018-03-01 00:00:00 CET 2 weeks 5 days left Thu 2018-02-01 08:48:44 CET 1 weeks 1 days ago btrfs-scrub.timer
6 timers listed.
Pass --all to see loaded but inactive timers, too.
Here’s the output of ‘btrfs subvolume list /’, I’m not sure what it means.
ID 257 gen 1212287 top level 5 path .snapshots
ID 258 gen 1212504 top level 257 path .snapshots/1/snapshot
ID 259 gen 1212237 top level 5 path opt
ID 260 gen 1212237 top level 5 path srv
ID 261 gen 1212504 top level 5 path tmp
ID 262 gen 1212271 top level 5 path usr/local
ID 263 gen 1211583 top level 5 path var/crash
ID 264 gen 1211583 top level 5 path var/lib/libvirt/images
ID 265 gen 1211583 top level 5 path var/lib/mailman
ID 266 gen 1211583 top level 5 path var/lib/mariadb
ID 267 gen 1211583 top level 5 path var/lib/named
ID 268 gen 1211583 top level 5 path var/lib/pgsql
ID 269 gen 1212504 top level 5 path var/log
ID 270 gen 1211583 top level 5 path var/opt
ID 271 gen 1212503 top level 5 path var/spool
ID 272 gen 1212504 top level 5 path var/tmp
ID 1666 gen 1211583 top level 5 path var/lib/machines
ID 5053 gen 1209295 top level 257 path .snapshots/5/snapshot
ID 10228 gen 1212366 top level 257 path .snapshots/2/snapshot
Worth noting that /tmp is still 2GB. Here’s the output of ‘service systemd-tmpfiles-clean status’:
● systemd-tmpfiles-clean.service - Cleanup of Temporary Directories
Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-clean.service; static; vendor preset: disabled)
Active: inactive (dead) since Mon 2018-02-12 02:01:13 CET; 2min 18s ago
Docs: man:tmpfiles.d(5)
man:systemd-tmpfiles(8)
Process: 8660 ExecStart=/usr/bin/systemd-tmpfiles --clean (code=exited, status=0/SUCCESS)
Main PID: 8660 (code=exited, status=0/SUCCESS)
Feb 12 02:01:13 Hostname systemd[1]: Starting Cleanup of Temporary Directories...
Feb 12 02:01:13 Hostname systemd-tmpfiles[8660]: [/usr/lib/tmpfiles.d/tmp.conf:13] Duplicate line for path "/var/tmp",
Feb 12 02:01:13 Hostname systemd-tmpfiles[8660]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log",
Feb 12 02:01:13 Hostname systemd-tmpfiles[8660]: [/usr/lib/tmpfiles.d/var.conf:19] Duplicate line for path "/var/cache"
Feb 12 02:01:13 Hostname systemd-tmpfiles[8660]: [/usr/lib/tmpfiles.d/var.conf:21] Duplicate line for path "/var/lib",
Feb 12 02:01:13 Hostname systemd-tmpfiles[8660]: [/usr/lib/tmpfiles.d/var.conf:23] Duplicate line for path "/var/spool"
Feb 12 02:01:13 Hostname systemd[1]: Started Cleanup of Temporary Directories.
On Mon 12 Feb 2018 01:16:01 AM CST, Serophis wrote:
Alright, I’ve cleaned all repos.
malcolmlewis;2854915 Wrote:
> In post #9 you indicated src had 1.5GB? Is this /usr/src? Or is this
> /srv? Please confirm which directory has 1.5GB.
It’s /usr/src. The two subfolders I mentioned together pretty much make
up 1.5GB.
<snip>
Hi
You need to look down in /tmp to see what’s old and can be manually
deleted… the same with /usr/src is there a /usr/src/packages
directory? If so did you rebuild some rpms as root (not a good idea)
these can be built as your user and installed by root from the user
build location…
–
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE Leap 42.3|GNOME 3.20.2|4.4.114-42-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
My word, ravas. 2 was 0 Bytes, so I ignored it, but 5 was a whopping 15GB! Now full balance works as well. Guess I won’t need to grow the root partition at all for the foreseeable future.
I guess that’s it. Thanks for all the help, everyone! I think I learned a thing or two in the process.
15GB snapshot though. What was that about? I haven’t rebooted yet though, so maybe disaster awaits, lol. I have a backup anyway.
EDIT: Reboot went fine besides some stability issues with the latest update.