Date: Thu, 31 Mar 2011 10:22:29 -0700 From: Artem Belevich <art@freebsd.org> To: Piotr Paczynski <ppaczyn@gmail.com> Cc: freebsd-fs@freebsd.org Subject: Re: ZFS failed after hard power off Message-ID: <BANLkTinx5=HACL3cRB%2BsRmGHsUwo6AvzXw@mail.gmail.com> In-Reply-To: <AANLkTi=CJu2FByAQUzZVr6C76aU1QXaE6Yx-rScsrgxq@mail.gmail.com> References: <AANLkTi=CJu2FByAQUzZVr6C76aU1QXaE6Yx-rScsrgxq@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 31, 2011 at 9:48 AM, Piotr Paczynski <ppaczyn@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTinx5=HACL3cRB%2BsRmGHsUwo6AvzXw>