- Destroy an individual zpool

# Destroy an individual zpool

Contents

Perform the following steps.

1. | Run the zpool list command to display a list of zpools currently imported on the host.

2. | If a pool is missing from the output, it may be imported on a different host or it may be in the exported state. Use the zpool import command to identify ZFS pools that have been created, but are not imported on the current host:

zpool import

If a zpool has a status field that says the pool was last accessed by another system, this pool may still be active on a different host connected to the same shared storage. The output will include fields similar to the following:

...

status: The pool was last accessed by another system.

action: The pool can be imported using its name or numeric identifier
and the '-f' flag.

...

Don't force an import of a pool in this state unless you are certain that the other host is offline. If possible, either export the zpool from the other host so that it can be imported, or log into the other host to perform the required work.

3. | If necessary, use the zpool import command, along with the pool name, to import a pool onto the host:

zpool import <pool name>

4. | Run the command: zpool destroy [-f] <zpool name>

For example:

zpool destroy demo-ost0pool

5. | Confirm that the pool has been removed with zpool list.