Skip to content

Instantly share code, notes, and snippets.

@dlangille
Last active October 9, 2020 10:03
Show Gist options
  • Save dlangille/9aec0f3be43d08515a6a to your computer and use it in GitHub Desktop.
Save dlangille/9aec0f3be43d08515a6a to your computer and use it in GitHub Desktop.
Doing a dry run of zfs destroy, and seeing what will be destroyed and how much space will be reclaimed
$ zfs destroy -nv system/usr/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would destroy system/usr/jails/[email protected]
would reclaim 392G
@allanjude
Copy link

Seems that would save you a lot of space.

Also, looks like you have some garble in the command:

should just be:
$ zfs destroy -rvn system/usr/[email protected]

@dlangille
Copy link
Author

Fixed the garble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment