ravas
November 3, 2016, 6:34am
1
Even with keeping only the latest snapper entries
and occasionally running /etc/cron.weekly/btrfs-balance
the 41gb for the system is not enough.
What’s the optimal solution here?
> df -hT
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs tmpfs 3.9G 268M 3.6G 7% /dev/shm
tmpfs tmpfs 3.9G 1.8M 3.9G 1% /run
tmpfs tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda2 btrfs 41G 39G 1.4G 97% /
/dev/sda2 btrfs 41G 39G 1.4G 97% /boot/grub2/x86_64-efi
/dev/sda2 btrfs 41G 39G 1.4G 97% /var/lib/pgsql
/dev/sda4 xfs 176G 6.9G 169G 4% /home
/dev/sda2 btrfs 41G 39G 1.4G 97% /var/lib/mariadb
/dev/sda2 btrfs 41G 39G 1.4G 97% /var/tmp
/dev/sda2 btrfs 41G 39G 1.4G 97% /var/spool
/dev/sda2 btrfs 41G 39G 1.4G 97% /usr/local
/dev/sda2 btrfs 41G 39G 1.4G 97% /srv
/dev/sda2 btrfs 41G 39G 1.4G 97% /.snapshots
/dev/sda2 btrfs 41G 39G 1.4G 97% /var/lib/mailman
/dev/sda2 btrfs 41G 39G 1.4G 97% /var/lib/machines
/dev/sda2 btrfs 41G 39G 1.4G 97% /var/opt
/dev/sda2 btrfs 41G 39G 1.4G 97% /var/lib/named
/dev/sda2 btrfs 41G 39G 1.4G 97% /var/crash
/dev/sda2 btrfs 41G 39G 1.4G 97% /tmp
/dev/sda2 btrfs 41G 39G 1.4G 97% /opt
/dev/sda2 btrfs 41G 39G 1.4G 97% /var/lib/mysql
/dev/sda2 btrfs 41G 39G 1.4G 97% /boot/grub2/i386-pc
/dev/sda2 btrfs 41G 39G 1.4G 97% /var/lib/libvirt/images
/dev/sda2 btrfs 41G 39G 1.4G 97% /var/log
tmpfs tmpfs 788M 0 788M 0% /run/user/474
tmpfs tmpfs 788M 24K 788M 1% /run/user/1000
TW has lots and lots of changes frequently this makes bigger and more snapshots. Adjust the number of snapshots kept
https://en.opensuse.org/Portal:Snapper
Hi, are you actually encountering errors because it is full or only because it appears full? To check, please use the following command (df does not work properly on btrfs):
btrfs filesystem df /
Also, try checking the contents of /var/log/journal, I once had an interesting amount of data there (~2 GB).
Hi
Yes, then look at running the cron jobs manually to ensure it’s cleaned up…
/etc/cron.daily/suse.de-snapper
/etc/cron.weekly/btrfs-balance
ravas
November 3, 2016, 5:55pm
5
By snapper entries I meant snapshots.
Limiting these and running /etc/cron.weekly/btrfs-balance is not sufficient.
With only 3 snapshots the partition is 91% filled (4.1gb available).
btrfs filesystem df /
shows even less available…
Data, single: total=36.99GiB, used=33.75GiB
> sudo /etc/cron.daily/suse.de-snapper
Failure (error.something).
ravas:
By snapper entries I meant snapshots.
Limiting these and running /etc/cron.weekly/btrfs-balance is not sufficient.
With only 3 snapshots the partition is 91% filled (4.1gb available).
btrfs filesystem df /
shows even less available…
Data, single: total=36.99GiB, used=33.75GiB
> sudo /etc/cron.daily/suse.de-snapper
Failure (error.something).
Hi
Well if the snapper cron job isn’t working, how do you expect it to clean up snapshots?
Perhaps post the real error and use su - not sudo please.
ravas
November 3, 2016, 6:34pm
7
“Perhaps post the real error”
Where is the real error?
Nothing else is printed.
Hi
Full output when you run the snapper command?
snapper list
/etc/cron.daily/suse.de-snapper
snapper list
ravas
November 3, 2016, 6:44pm
9
Type | # | Pre # | Date | User | Cleanup | Description | Userdata
-------+-----+-------+---------------------------------+------+---------+-----------------------+--------------
single | 0 | | | root | | current |
single | 1 | | Tue 19 Apr 2016 01:39:32 AM PDT | root | | first root filesystem |
single | 530 | | Mon 11 Jul 2016 06:54:58 PM PDT | root | | |
pre | 666 | | Wed 02 Nov 2016 02:52:53 PM PDT | root | number | zypp(zypper) | important=yes
And please see https://forums.opensuse.org/showthread.php/520819-can-t-delete-snapshot-File-system-loop-detected
ravas
February 21, 2017, 6:31am
10
/var/log/journal was 1.1G
I was able to lower it via:
SystemMaxUse=64
in
/etc/systemd/journald.conf
ravas
December 3, 2017, 8:00am
11
For some reason I was keeping snapshot #1 …
which once delete freed over 15gb. >_<