ZFS - how to recover pool after power loss?

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu Jun 28 12:44:41 UTC 2007


On Wed, Jun 27, 2007 at 05:38:21AM -0500, James R. Van Artsdalen wrote:
> What is the right way to recover a pool after a power loss?
> 
> Neither "zpool import pool" nor "zpool import -f pool" seem to work for
> me: I get a "no such pool available" error.
> What *does* seem to work is to destroy the pool, then import the
> destroyed pool.
> 
> The setup is a pool with a single vdev, a raidz of five USB disks. 
> FreeBSD i386, the 7.0-CURRENT-200706-i386-disc1.iso image using that kernel.
> 
> # zpool import
> no pools available to import
> # zpool import pool
> cannot import 'pool': no such pool available
> # zpool import -f
> no pools available to import
> # zpool import -f pool
> cannot import 'pool': no such pool available
> # zpool destroy pool
> # zpool import -D -f pool

Your pool is already imported after power failure. Try 'zpool status'.
In other words, pool are imported automatically after power failures,
but file systems and ZVOLs are not, you need to use rc.d/zfs script or
do it manually:

	# zfs mount -a
	# zfs volinit

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20070628/934edd92/attachment.pgp


More information about the freebsd-fs mailing list