Exporting a ZFS Storage Pool

To export a pool, use the following command:

$ zpool export [option] pool

The command first unmounts any mounted file systems within the pool. If any of the file systems fail to unmount, you can forcefully unmount them by using the -f option. However, if ZFS volumes in the pool are in use, the operation fails even with the -f option. To export a pool with a ZFS volume, first ensure that all consumers of the volume are no longer active.

For more information, see ZFS Volumes.

After this command is executed, the pool is no longer visible on the system.

If devices are unavailable at the time of export, the devices cannot be identified as cleanly exported. If one of these devices is later attached to a system without any of the other working devices, it appears as potentially active.