From owner-freebsd-questions@FreeBSD.ORG Wed Nov 11 23:27:52 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30EBF1065670 for ; Wed, 11 Nov 2009 23:27:52 +0000 (UTC) (envelope-from stevenschlansker@gmail.com) Received: from mail-pz0-f185.google.com (mail-pz0-f185.google.com [209.85.222.185]) by mx1.freebsd.org (Postfix) with ESMTP id 045BF8FC25 for ; Wed, 11 Nov 2009 23:27:51 +0000 (UTC) Received: by pzk15 with SMTP id 15so1167139pzk.3 for ; Wed, 11 Nov 2009 15:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:content-type :message-id:date:to:content-transfer-encoding:mime-version:x-mailer; bh=8K3nTeRJZ+s8qUSGZTCygvN91iCyb3P7cq4P+LuVmPw=; b=BDdDvVhlikqG04oO4FqeEEuDYUuarmTTEJ8KrFFLwTmlqiHcBvh9vyapiTSJvf27Tg 6AaM5CmyWRXCHRqj2fo2Es+FLGqRIoupczkqlilfMsi8kCR2RwwvShyOk9NKq2yEeI/T 5hDawFBZcBXu/0NebgEKvBbxXWqNNqk0bKtjo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:content-type:message-id:date:to :content-transfer-encoding:mime-version:x-mailer; b=BMboql9DMdGwHzJgUNnoqM94/rcTOzqbjj5hyiREz0+J4SI1PqWfvT1gPKmAHC3Okq Rvwt7kWRYRt86XzD6whcovQbMCMu2wWcQF4Hl9K3HWdn8S4pfVxM+kEjyZs0MxrSkFsr WsDp35h6CmUDMr4/DNolXthCF2AX91xBjgtaw= Received: by 10.114.7.25 with SMTP id 25mr4559750wag.21.1257982071527; Wed, 11 Nov 2009 15:27:51 -0800 (PST) Received: from ?192.168.42.2? (70-36-134-191.dsl.dynamic.sonic.net [70.36.134.191]) by mx.google.com with ESMTPS id 23sm1284334pzk.4.2009.11.11.15.27.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Nov 2009 15:27:50 -0800 (PST) From: Steven Schlansker Content-Type: text/plain; charset=us-ascii Message-Id: <49858BCA-1F44-40F9-ACCB-631CBAD95199@gmail.com> Date: Wed, 11 Nov 2009 15:27:47 -0800 To: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v1077) X-Mailer: Apple Mail (2.1077) Subject: zfs raidz2 marked as UNAVAIL even though only one vdev is missing? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2009 23:27:52 -0000 Hello, This morning I found that one of my disks was going bad, so I thought I would replace it (using zpool replace) with a new disk. This worked fine, and it was about 1/3 of the way through. Then, as I was moving things around, I accidentally jostled some of the cables. This of course made the system extremely unhappy and eventually resulted in a kernel panic. Then when I tried to bring the system back up, it reported the pool as FAULTED due to missing devices. Figuring that it just needed to "re-discover" the devices and considering that every zpool / zfs command was unavailable, I decided to export and re-import the pool. However, now the pool is not importable! The status shows (typed since no SSH access): pool: universe id: (uuid) state: UNAVAIL action: The pool cannot be imported due to damaged devices or data config: universe UNAVAIL insufficient replicas raidz2 UNAVAIL corrupted data replacing DEGRADED (uuid) UNAVAIL cannot open ad16 ONLINE ad10 ONLINE ad8 ONLINE ... five more drives, all ONLINE To my eye, there should be no reason it can't import. The drives are = all marked ONLINE except for the one I know failed. I can't zpool status -v to see *what* is corrupted because I can't = import. So here I am, stuck, unable to import. Any suggestions as to how I can = recover from this situation? Any way to tell what is corrupted so I can maybe intentionally fail that = disk and allow a scrub to recreate it? Thanks for any advice, Steven Schlansker=