Created
April 15, 2015 17:09
-
-
Save alexjj/4de71ddfae05e974c829 to your computer and use it in GitHub Desktop.
Delete all ZFS Snapshots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zfs list -H -o name -t snapshot | xargs -n1 zfs destroy |
TheMayhem6328
commented
Jun 12, 2020
via email
Okay... I don't know why this didn't work for me.
…On Fri, Jun 12, 2020 at 7:40 PM KernelPanic ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
zfs list -H -o name -t snapshot | xargs -n1 sudo zfs destroy
works for me on 20.04
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://gist.github.com/4de71ddfae05e974c829#gistcomment-3339564>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANMNSRHI2FGN7N4UCE5G4UDRWIV6DANCNFSM4MW3W6JQ>
.
Recommend to be aware that unless specified a dataset ALL snapshots gets deleted. here is a USER specific example on Ubuntu 20.04:
$ sudo zfs list -H -o name -t snapshot rpool/USERDATA/example | sudo xargs -n1 zfs destroy
You can also zfs destroy rpool@%
.
foo%bar
denotes a range of snapshots from foo
to bar
; omitting either uses the earliest or latest snapshot respectively.
thanks! works after sudo su
So guys a little help here, I deleted all the snapshots cause they were taking up all the space, it worked fine for a while, but now Ubuntu will not boot up showing a sys error "Failed to MARK current zsys boot as successful".Any solutions
I suspect it's how ubuntu does things with zsys and you'd be better off asking on ubuntu forums.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment