Home > SysAdmin > How to recover a zfs pool after a root system crash

How to recover a zfs pool after a root system crash

September 22nd, 2008

If your sun solaris server is crashed due to a failed root disk, you will need to recover the solaris OS on your own (simply re-install, of course after you have replaced your failed disk). But if you were so wise to create a zfs pool (in this case the pool is called dozer) on a different set of disks, you are able to recover everything with the following commands:

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

dozer ONLINE
c1t9d0 ONLINE
#

As you can see the pool is online and available for import.

# zpool import dozer
cannot import ‘dozer’: pool may be in use on another system
use ‘-f’ to import anyway
#

If you get this error message, it means that the pool was not cleanly exported (logical if you had an OS crash :) ) and you will need to force the import of the pool.

# zpool import -f dozer
#

Source : Importing ZFS Storage Pools

SysAdmin , ,

Comments are closed.