From owner-freebsd-fs@FreeBSD.ORG Wed Sep 12 05:47:06 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 D7FD6106564A for ; Wed, 12 Sep 2012 05:47:06 +0000 (UTC) (envelope-from Newsletter@goelli.de) Received: from mo6-p05-ob.rzone.de (mo6-p05-ob.rzone.de [IPv6:2a01:238:20a:202:5305::1]) by mx1.freebsd.org (Postfix) with ESMTP id 6ADE68FC08 for ; Wed, 12 Sep 2012 05:47:06 +0000 (UTC) X-RZG-CLASS-ID: mo05 X-RZG-AUTH: :ImkTZkytb+s5KUDumTG4i0mGDH1K4fweaf9O+/5rQT5iu9PH4l7+wOsTkwRfiNE= Received: from goelliNotebook (pD9FE2383.dip.t-dialin.net [217.254.35.131]) by smtp.strato.de (josoe mo20) (RZmta 30.14 DYNA|AUTH) with ESMTPA id z00828o8C4NE8k ; Wed, 12 Sep 2012 07:47:05 +0200 (CEST) From: =?UTF-8?Q?Thomas_G=C3=B6llner_=28Newsletter=29?= To: "'Volodymyr Kostyrko'" References: <001a01cd900d$bcfcc870$36f65950$@goelli.de> <504F282D.8030808@gmail.com> In-Reply-To: <504F282D.8030808@gmail.com> Date: Wed, 12 Sep 2012 07:47:04 +0200 Message-ID: <000a01cd90aa$0a277310$1e765930$@goelli.de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJeoooVG2eNN70r/NZmey5KTcQ1/AH9GaMbllQaZgA= Content-Language: de Cc: freebsd-fs@freebsd.org Subject: 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 05:47:06 -0000 >Looks pretty bad, but you can try readonly mode with transaction = rollback and recheck: > > zpool import -f -R /GoelliZFS1 -N -o readonly=3Don -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 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 ;-)