Importing a Pool By Using a Specific Device Path

By default, the zpool import command searches devices only within the /dev/dsk directory. If devices exist in another directory, or you are using pools backed by files, you must use the -d option to search alternate directories. For example:

$ zpool create mpool mirror /file/a /file/b
$ zpool export mpool
$ zpool import -d /file
  pool: mpool
    id: 7318163511366751416
 state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

        mpool        ONLINE
          mirror-0   ONLINE
            /file/a  ONLINE
            /file/b  ONLINE
$ zpool import -d /file mpool

If devices exist in multiple directories, you can specify multiple -d options.

The following command imports the pool mpool by identifying one of the pool's specific devices, /dev/etc/c2t3d0:

$ zpool import -d /dev/etc/c2t3d0 mpool
$ zpool status mpool
pool: mpool
state: ONLINE
scan: resilvered 952K in 0h0m with 0 errors on Fri Jun 29 16:22:06 2012
config:

NAME        STATE     READ WRITE CKSUM
mpool       ONLINE       0     0     0
mirror-0    ONLINE       0     0     0
  c2t3d0    ONLINE       0     0     0
  c2t1d0    ONLINE       0     0     0