On this article you can find all steps required to eliminate a datastore using SynetoOS CLI in case you are unable to proceed from GUI as normally :


How to delete a datastore using CLI commands

Step 1: List the Datastores present on the system

  • zfs list

This is going to help you individuate the correct datastore path.
For this guide we will use as example the datastore "Testdatastore"

Step 2: Eliminate the Datastore

  • # zfs destroy -f -r <datastore path>

Workaround for failed operation

It is possible that this action is not enough and by inserting the commands above you receive an error reporting something like this:

cannot destroy snapshot <snapshot path>: dataset is busy

This happens when the datastore has a protection schedule process pending or locked

  1. List the busy snapshots
    zfs get -Ht snapshot userrefs | grep -v $'\t'0 | cut -d $'\t' -f 1 | tr '\n' '\0' | xargs -0 zfs holds

  2. Release the block for the snapshot
    zfs release -r keep <snapshot path>

If this actions do not resolve the issue, get in touch with our support team for further troubleshooting