From owner-freebsd-fs@FreeBSD.ORG Sun Jul 4 11:50:05 2010 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 9FE57106564A for ; Sun, 4 Jul 2010 11:50:05 +0000 (UTC) (envelope-from freebsd-fs@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 2B5088FC13 for ; Sun, 4 Jul 2010 11:50:04 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OVNhz-0007b8-Mv for freebsd-fs@freebsd.org; Sun, 04 Jul 2010 13:50:03 +0200 Received: from 193.33.173.33 ([193.33.173.33]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Jul 2010 13:50:03 +0200 Received: from c.kworr by 193.33.173.33 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Jul 2010 13:50:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-fs@freebsd.org From: Volodymyr Kostyrko Date: Sun, 04 Jul 2010 14:38:54 +0300 Lines: 53 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.33.173.33 User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; uk-UA; rv:1.9.1.10) Gecko/20100627 Thunderbird/3.0.5 In-Reply-To: Subject: Re: Help with Faulted zpool 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: Sun, 04 Jul 2010 11:50:05 -0000 04.07.2010 00:12, Sam Fourman Jr. написав(ла): > Hello list, > > I have a File server that runs FreeBSD 8.1 (zfs v14) > after a poweroutage, I am unable to import my zpool named Network > my pool is made up of 6 1TB disks configured in raidz. > there is ~1.9TB of actual data on this pool. > > FreeBSD does not have many option for restoring a pool from corrupt meta data > > > I have loaded OpenSolaris svn_134 on a septate boot disk, > in hopes of recovering my zpool. > > on Opensolaris 134, I am not able to import my zpool > almost everything I try gives me cannot import 'Network': I/O error > > I have done quite a bit of searching, and I found that import -fFX > Network should work > however after ~ 20 hours this hard locks Opensolaris (however it does > return a ping) > > here is a list of commands that I have run on Open Solaris > > http://www.puffybsd.com/zfsv14.txt > > if anyone could help me use zdb or mdb to recover my pool > I would very much appreciate it. > > I believe the metadata is corrupt on my zpool Just sharing the knowledge, you know... Some time ago my primary file server suffers from controller damage. When ZFS tried to fix metadata controller was able to write most of it failing to complete full restore. Thus I've got pool with two or more recent snapshots broken. FreeBSD (RELENG_8) dumps core when trying to import pool. OpenSolaris (last version available, i think with ZFSv22) was giving the same result. I've managed to recover all data from pool using single user mode. This way when I got shell ZFS already knows about my pool, but no are mounted. From this point it's possible to mount each dataset RO and copy all data from it to another disk. You will face the kernel coredump only in case of some dataset metadata would be heavily damaged. All you need is: 1. Original zpool.cache with which your pool was imported. 2. ZFS module loaded. 3. Break into single user. -- Sphinx of black quartz judge my vow.