From owner-freebsd-fs@FreeBSD.ORG Thu Mar 31 17:23:02 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3746D106566B for ; Thu, 31 Mar 2011 17:23:02 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id E07688FC13 for ; Thu, 31 Mar 2011 17:23:01 +0000 (UTC) Received: by qyk27 with SMTP id 27so2094882qyk.13 for ; Thu, 31 Mar 2011 10:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=nU8ahM7x5SBDN5pn9Xo2PiaqULy+STVCFOLqS1pmmHI=; b=xx5ijbvuTTdgvvDhzW+n3UVS9beQ+b+OmmenS/Su4AmIwRSGu3f8aBWXPii4jx426Z AKjwL/Es9geOMzlsWeE5V65FCdM0Zcu71F44HCRsviFMk3zhciVZmoM6bXCcmRSWmWC+ hLpDNynCoSojloj+S9BVQwi6iWRGdRQYE8o0g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=BK1oTapiKl/rJ5cBkonGTSdqjE5yc3G9ngTEIrAAM2aoX3pJYl/zGqGEGndgfoYJNa 6ajua9ez02hmWSy5uUZE2WLonv6xTYJA0vNhqFtQ8J4eaDNSq0TZYGvNxtM6HGeYv+Ru EuVv2eQO+JPCxjCln54GBj8jXn62r8tVlODLY= MIME-Version: 1.0 Received: by 10.229.63.229 with SMTP id c37mr2462973qci.212.1301592149485; Thu, 31 Mar 2011 10:22:29 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.229.233.195 with HTTP; Thu, 31 Mar 2011 10:22:29 -0700 (PDT) In-Reply-To: References: Date: Thu, 31 Mar 2011 10:22:29 -0700 X-Google-Sender-Auth: LKA6wGaVaf8doav3nTxXM-RLq0w Message-ID: From: Artem Belevich To: Piotr Paczynski Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: ZFS failed after hard power off 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, 31 Mar 2011 17:23:02 -0000 On Thu, Mar 31, 2011 at 9:48 AM, Piotr Paczynski wrote: > Hi all, > > I urgently need help. After hard power-off (power cable disconnected) > my FreeBSD 8.1-STABLE server fails to boot from ZFS with an I/O Error. > I was able to boot to Fixit console from 8.2 LiveFS, prepare it for > ZFS and mount the pool using "zpool import -Ff" command. Here are the > results: > > Fixit# zpool status > =A0 pool: zroot > =A0state: FAULTED > status: The pool metadata is corrupted and the pool cannot be opened. > action: Destroy and re-create the pool from a backup source. > =A0=A0 see: http://www.sun.com/msg/ZFS-8000-72 > =A0scrub: none requested > config: > =A0=A0=A0=A0=A0=A0=A0 NAME=A0=A0=A0=A0=A0=A0=A0=A0 STATE=A0=A0 READ WRITE= CKSUM > =A0=A0=A0=A0=A0=A0=A0 zroot=A0=A0=A0=A0=A0=A0=A0 FAULTED=A0=A0=A0 0=A0=A0= =A0 0=A0=A0=A0=A0 1 corrupted data > =A0=A0=A0=A0=A0=A0=A0=A0=A0 gpt/array0 ONLINE=A0=A0=A0=A0 0=A0=A0=A0=A0 0= =A0=A0=A0=A0 6 > > Also "zdb -l /dev/gpt/array0" shows 4 LABELS. Each has the same > attributes, in particular: > =A0 version=3D14 > =A0 state=3D0 > =A0 txg=3D4 > Something like this could've happened if the drive lied about having data committed to platters. If power fails, you may end up with partially written data and inconsistent on-disk ZFS state. You may need to boot into FreeBSD-9 with ZFS v28 or with OpenSolaris live CD and re-import the pool with "zpool import -F". http://solori.wordpress.com/2010/07/15/zfs-pool-import-fails-after-power-ou= tage/ --Artem