Migrating ZFS Pools

Oracle Docs - Migrating ZFS Storage Pools

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

Last updated