From owner-freebsd-fs@FreeBSD.ORG Wed Sep 12 08:21:53 2012 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 9A95A106566C for ; Wed, 12 Sep 2012 08:21:53 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 26D048FC0A for ; Wed, 12 Sep 2012 08:21:52 +0000 (UTC) Received: by eeke52 with SMTP id e52so1102865eek.13 for ; Wed, 12 Sep 2012 01:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=r+RsMMtbJLyZq7kSnIf0bbP8qbliUMcTx4gAiVzn3xY=; b=TDiuke4QbHK1OkKT910glO6+v6LjqvRQmU9xTcI7ntJQF0JCcMfqgkDFBVzhOlTZYt oWUvzBs5t4L52/jZY+AcWWmX7gT+yJUqEu9WTLUHLmgfbjmg+6jSO+qP3XnwmMJG+mMF vfnMFsZnI6PvtIYd82FolJzcnCZdcTUH5KapX6/h/Mi2Spqh9hISNL3kLQysgdM304Pe FP6tRIYGDLblu21h7t7p8txDksFQyoWXGI0z/87RXBMPhk2KDpb0mpuvilx3sO6mfjSW 7K/stG32eQwi7sL74qUcwC8KF4WIM2OWTi5/fxlpc5pGXR3X4qpSgg3VtfrkkVrxFSnu hMyQ== Received: by 10.204.156.10 with SMTP id u10mr5470624bkw.11.1347438111081; Wed, 12 Sep 2012 01:21:51 -0700 (PDT) Received: from green.local (186-102-132-95.pool.ukrtel.net. [95.132.102.186]) by mx.google.com with ESMTPS id n17sm10998731bks.6.2012.09.12.01.21.48 (version=SSLv3 cipher=OTHER); Wed, 12 Sep 2012 01:21:49 -0700 (PDT) Message-ID: <5050461A.9050608@gmail.com> Date: Wed, 12 Sep 2012 11:21:46 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: =?UTF-8?B?IlRob21hcyBHw7ZsbG5lciAoTmV3c2xldHRlciki?= References: <001a01cd900d$bcfcc870$36f65950$@goelli.de> <504F282D.8030808@gmail.com> <000a01cd90aa$0a277310$1e765930$@goelli.de> In-Reply-To: <000a01cd90aa$0a277310$1e765930$@goelli.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-fs@freebsd.org Subject: Re: AW: ZFS: Corrupted pool metadata after adding vdev to a pool - no opportunity to rescue data from healthy vdevs? Remove a vdev? Rewrite metadata? 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, 12 Sep 2012 08:21:53 -0000 12.09.2012 08:47, Thomas Göllner (Newsletter) wrote: >> Looks pretty bad, but you can try readonly mode with transaction rollback and recheck: >> >> zpool import -f -R /GoelliZFS1 -N -o readonly=on -F -X GoelliZFS1 > > Thanks for your suggestion. I think it was a bit like "zpool import -fFXa" so I'm not surprised that it has the same result after ca. 30 seconds: > cannot import 'GoelliZFS1': one or more devices is currently unavailable You can try to wipe out recent transactions up to the point when next one would not contain added device. You can try setting vfs.zfs.recover to 1, however that never fixed anything for me. > If I can't tell the ZFS to ignore or delete the missing vdev, perhaps I can replace the missing with a "new" one? I have the three 1.5TB discs I wanted to add to the pool. So I can create a raidz-vdev out of them and replace the missing-vdev with the new-raidz-vdev... Can someone tell me how I am supposed to do this via CLI? > > Another idea is this: If I delete the pool, is there a way to take the three 3TB discs with my data and create a "new-old" vdev/pool out of them? I think of this because of the constructed case I mentioned... > > I still can't accept, that there's no way to rewrite or edit the metadata ;-) So am I. I started to write a readonly ZFS implementation some time ago only for recovering written data as ZFS seems to be very cautious about data and restoration is practically possible but I see no other projects for this. My code is lame and unmaintained because I have almost no spare time nowadays. You can try reading it: http://code.google.com/p/zfs-recover/ -- Sphinx of black quartz judge my vow.