From owner-freebsd-fs@FreeBSD.ORG Tue Sep 11 12:01:55 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 C05D0106566B for ; Tue, 11 Sep 2012 12:01:55 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4D6D68FC12 for ; Tue, 11 Sep 2012 12:01:54 +0000 (UTC) Received: by eaak11 with SMTP id k11so243102eaa.13 for ; Tue, 11 Sep 2012 05:01:54 -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=ANtpG24rEVAlDY4kHkgmgh1F1bSAAD1aCa0gk9dkkM8=; b=iAAvWcZQDZgAc9Ho3+vh18sc+levy8u2t5tLKwJtC2WVTYf9XUmT2y1/Iyg9HFKHhv JtQI03WrBSItIg0Bh/n+JegJ+SyZHriyriKIs9yfhyMt8h9KzqmulYpGwxHFY6sdFJ1y J7G0ieQQqxz46bl1viPgXr9ndFrawoPqjrxFOZ0Tn83Qwu4f9IypzHpaiu2PLPWBs7Cu 2+xpqs8FjQy5MjnWWhRyWH1Rpl+XXTAy6oehXrogMgRiNhK0/QzrQ5QE+V//AoFZ0+an Y6zjXt4pgfWeByanxoQ/SQYhBzqaJIFJlqcj89x0NxHQJcQ2BBdSYSbd2uH1wJ5Y1WgX c3mw== Received: by 10.14.209.5 with SMTP id r5mr23389277eeo.28.1347364913930; Tue, 11 Sep 2012 05:01:53 -0700 (PDT) Received: from green.local (189-29-132-95.pool.ukrtel.net. [95.132.29.189]) by mx.google.com with ESMTPS id k41sm46490010eep.13.2012.09.11.05.01.51 (version=SSLv3 cipher=OTHER); Tue, 11 Sep 2012 05:01:52 -0700 (PDT) Message-ID: <504F282D.8030808@gmail.com> Date: Tue, 11 Sep 2012 15:01:49 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120831 Thunderbird/15.0 MIME-Version: 1.0 To: =?UTF-8?B?IlRob21hcyBHw7ZsbG5lciAoTmV3c2xldHRlciki?= References: <001a01cd900d$bcfcc870$36f65950$@goelli.de> In-Reply-To: <001a01cd900d$bcfcc870$36f65950$@goelli.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-fs@freebsd.org Subject: Re: 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: Tue, 11 Sep 2012 12:01:55 -0000 11.09.2012 14:07, Thomas Göllner (Newsletter) wrote: > I hope someone can tell me what I can try to do. I will appreachiate any > kind of help... 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 Now by options: -f: force import; -R: change root directory for all mounts; -N: do not mount filesystems; -o: pass extra options to zfs layer; -F: try to discard last few transactions; -X: check thoroughly each transaction skipped (undocumented). You can skip -X for the first time, with -X it can take tens of hours. If this doesn't help I welcome you to our club of 'I borged my ZFS'. I lost my pool after fiddling with my hardware so last few transactions got damaged and I constantly see only yell on 'bad objset' but I can't mount any other objset. -- Sphinx of black quartz judge my vow.