From owner-freebsd-fs@FreeBSD.ORG Wed Jun 27 11:15:37 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 B7E6F16A421 for ; Wed, 27 Jun 2007 11:15:37 +0000 (UTC) (envelope-from james-freebsd-fs2@jrv.org) Received: from mail.jrv.org (rrcs-24-73-246-106.sw.biz.rr.com [24.73.246.106]) by mx1.freebsd.org (Postfix) with ESMTP id 825F413C458 for ; Wed, 27 Jun 2007 11:15:37 +0000 (UTC) (envelope-from james-freebsd-fs2@jrv.org) Received: from imac.housenet.jrv (iMac.housenet.jrv [192.168.3.150]) by mail.jrv.org (8.14.1/8.13.1) with ESMTP id l5RAcLwh024870 for ; Wed, 27 Jun 2007 05:38:21 -0500 (CDT) (envelope-from james-freebsd-fs2@jrv.org) DKIM-Signature: v=0.5; a=rsa-sha256; c=simple/simple; d=jrv.org; s=enigma; t=1182940701; bh=ZD2AFBxaogVkFNy0IEsNDP2J2Y7vBvsUFljQ1rRH55A=; h=DomainKey-Signature: Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=oKEZ/RbS084KeF+YmB1ZKqGl oOasqRV6tAWSBWePoHasP8+eSW5m2EUwui9XTH9V/cD1de4TF7rtzzj3JSL7F58TyqO IfhgyNUU0wW76ZjaGOIVUehYuowppipWPcqDS/tFCisBmwF8ZHdcMPLTMS46bT+Fnwg 9VxGedfBqwNhA= DomainKey-Signature: a=rsa-sha1; s=enigma; d=jrv.org; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:subject: content-type:content-transfer-encoding; b=vNgTNDB+BVfExiW6PM7ZLVpkhet0BmDX0KS7dLdFB9QNTpq5mZBnsTT8bOd4vuq53 AIoRv0jZ7emMl4PJJHQPtdRX0aQkHn9FzBlFT1IFruQfkqvJUJGRBOCqBLaq8IRjhyM xfaft/cumlyaCVM2AducoIu7hg+Ap4Y3Hk7JFII= Message-ID: <46823E1D.8060403@jrv.org> Date: Wed, 27 Jun 2007 05:38:21 -0500 From: "James R. Van Artsdalen" User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: 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: Wed, 27 Jun 2007 11:15:37 -0000 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 #