If you would like to destroy and re-create a filesystem
you need to wait till the destroy is done.
This was the case in the past. Solaris 11.4 Beta
includes a new feature: It destroys ZFS filesystems asynchronously.
You can re-create your filesystem quickly. The destroy
runs in the background. Using zpool monitor you
see how long the background destroy takes.
# zfs list destroytest/fs1NAME USED AVAIL REFER MOUNTPOINT
destroytest/fs1 22.1G 17.1G 22.1G /fs1
# time zfs destroy destroytest/fs1; zfs create -o mountpoint=/fs1 destroytest/fs1
POOL PROVIDER TOTAL SPEED TIMELEFT
destroytest destroy 22.1G 0 unknown
destroytest destroy 20.1G 401M 51s
destroytest destroy 13.5G 872M 15s
destroytest destroy 10.8G 767M 14s
destroytest destroy 4.92G 878M 5s
If you need to wait till the filesystem is destroyed completely
you can use the new -s flag.
# time zfs destroy -s destroytest/fs1
Learn more about the new Solaris 11.4 Beta on