Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2007 14:44:30 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        "James R. Van Artsdalen" <james-freebsd-fs2@jrv.org>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS - how to recover pool after power loss?
Message-ID:  <20070628124430.GB9381@garage.freebsd.pl>
In-Reply-To: <46823E1D.8060403@jrv.org>
References:  <46823E1D.8060403@jrv.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--UHN/qo2QbUvPLonB
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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?
>=20
> 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.
>=20
> The setup is a pool with a single vdev, a raidz of five USB disks.=20
> FreeBSD i386, the 7.0-CURRENT-200706-i386-disc1.iso image using that kern=
el.
>=20
> # 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

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--UHN/qo2QbUvPLonB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFGg60uForvXbEpPzQRApMUAJsGckTRP+m+IIwVUZMm1IqdbQjZgwCgnNWr
bDroKoGExAfuweaiMOzuhas=
=jUlv
-----END PGP SIGNATURE-----

--UHN/qo2QbUvPLonB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070628124430.GB9381>