> For the complete documentation index, see [llms.txt](https://strangebutohwell.gitbook.io/knowledge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://strangebutohwell.gitbook.io/knowledge/linux/file-system/zfs-on-linux/migrating-zfs-pools.md).

# Migrating ZFS Pools

## Oracle Docs - Migrating ZFS Storage Pools

{% embed url="<https://docs.oracle.com/cd/E19253-01/819-5461/gbchy/index.html>" %}
Oracle Docs - Migrating ZFS Storage Pools
{% endembed %}

## Exporting a ZFS Storage Pool

To export a pool, use the zpool export command. For example:

`zpool export tank`

#### Force Export

The command attempts to unmount any mounted file systems within the pool before continuing. If any of the file systems fail to unmount, you can forcefully unmount them by using the -f option. For example:

`zpool export -f tank`

## Importing a Pool

To discover available pools, run the **`zpool import`** command with no options. For example:

`zpool import`

```
# zpool import
 pool: tank
    id: 11809215114195894163
 state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

        tank        ONLINE
          mirror-0  ONLINE
            c1t0d0  ONLINE
            c1t1d0  ONLINE
```

After a pool has been identified for import, you can import it by specifying the name of the pool or its numeric identifier as an argument to the zpool import command. For example:

`zpool import tank`
