From owner-freebsd-fs@FreeBSD.ORG Thu Jun 28 12:44:41 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9FB7716A400 for ; Thu, 28 Jun 2007 12:44:41 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 4364513C4B0 for ; Thu, 28 Jun 2007 12:44:38 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id A71C245CD9; Thu, 28 Jun 2007 14:44:36 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 81449487F0; Thu, 28 Jun 2007 14:44:32 +0200 (CEST) Date: Thu, 28 Jun 2007 14:44:30 +0200 From: Pawel Jakub Dawidek To: "James R. Van Artsdalen" Message-ID: <20070628124430.GB9381@garage.freebsd.pl> References: <46823E1D.8060403@jrv.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UHN/qo2QbUvPLonB" Content-Disposition: inline In-Reply-To: <46823E1D.8060403@jrv.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@freebsd.org Subject: Re: ZFS - how to recover pool after power loss? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jun 2007 12:44:41 -0000 --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--