Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1009267: zfsnap fail to delete snapshorts if left without removal for three years

11 views
Skip to first unread message

Petter Reinholdtsen

unread,
Apr 10, 2022, 1:10:03 PM4/10/22
to

Package: zfsnap
Version: 1.11.1-5.1

After using zfsnap for a few years, I discovered that I had forgotten
the -d option when calling it to make snapshots every hour and keep them
for 5 days. The end result is a lot of snapshots I am currently trying
to get rid of. I am currently running 'zfs destroy' in a for look to
remove them, as the -d option only reported this error when trying to
let zfSnap take care of it:

/usr/sbin/zfSnap: 410: grep: Argument list too long
xargs: printf: terminated by signal 13

Perhaps the code could be rewritten to handle more snapshots to remove?

--
Happy hacking
Petter Reinholdtsen

Petter Reinholdtsen

unread,
Apr 11, 2022, 2:20:03 AM4/11/22
to

For the record, I had around 170 000 snapshots when I started.

I am currently trying to reduce it by running variations of this
oneliner to get rid of them, to allow zfSnap -d to work again.

for v in $(zfs list -t snapshot zfstank/volume | \
awk '/2019.*--5d/ {print $1}'); do zfs destroy $v; done
0 new messages