Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2012 11:21:46 +0300
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        =?UTF-8?B?IlRob21hcyBHw7ZsbG5lciAoTmV3c2xldHRlciki?= <Newsletter@goelli.de>
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?
Message-ID:  <5050461A.9050608@gmail.com>
In-Reply-To: <000a01cd90aa$0a277310$1e765930$@goelli.de>
References:  <001a01cd900d$bcfcc870$36f65950$@goelli.de> <504F282D.8030808@gmail.com> <000a01cd90aa$0a277310$1e765930$@goelli.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5050461A.9050608>