Managing ZFS File Systems in Oracle® Solaris 11.2

Exit Print View

Updated: December 2014

Importing ZFS Storage Pools From Alternate Directories

By default, the zpool import command only searches devices 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 dozer mirror /file/a /file/b
# zpool export dozer
# zpool import -d /file
pool: dozer
id: 7318163511366751416
state: ONLINE
action: The pool can be imported using its name or numeric identifier.

dozer        ONLINE
mirror-0   ONLINE
/file/a  ONLINE
/file/b  ONLINE
# zpool import -d /file dozer

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