docker system prune -a -f --volumes
https://github.com/bahamas10/zfs-prune-snapshots
echo "dry run for 1 week:"
zfs-prune-snapshots -R -n 1w
read
echo "actual execution:"
sudo zfs-prune-snapshots -R 1w
zpool list
for s in $(zfs list -t snapshot | grep rpool | grep containerd | cut -d' ' -f1 ); do echo $s; zfs destroy -R $s; done
for s in $(zfs list -t snapshot | grep rpool | grep docker | cut -d' ' -f1 ); do echo $s; zfs destroy -R $s; done
for s in $(zfs list -t snapshot | grep rpool | grep USERDATA | cut -d' ' -f1 ); do echo $s; zfs destroy -R $s; done
for s in $(zfs list -t snapshot | grep rpool | grep ROOT | cut -d' ' -f1 ); do echo $s; zfs destroy -R $s; done
zpool list
sudo systemctl restart zsysd.service
sudo systemctl restart zsys-gc
sudo systemctl status zsysd.service
sudo systemctl status zsys-gc
zsysctl show
zsysctl list
zfs list -t snapshot | wc -l
zfs list | wc -l
source <(zsysctl completion bash)
# Linux:
zsysctl completion bash > /etc/bash_completion.d/zsysctl
zfs completion bash > /etc/bash_completion.d/zfs
sudo find /etc -name "*zsys*"
sudo vi /etc/zsys.conf # https://github.com/ubuntu/zsys/blob/master/internal/config/zsys.conf
sudo zsysctl service reload # to reload config
- ubuntu/zsys#193
- https://kimono-koans.github.io/opinionated-guide/ (includes info on nice tools: sanoid and syncoid )
- https://didrocks.fr/2020/06/04/zfs-focus-on-ubuntu-20.04-lts-zsys-state-collection/
- https://github.com/bahamas10/zfs-prune-snapshots
- https://github.com/ubuntu/zsys/blob/master/internal/config/zsys.conf