From owner-freebsd-fs@freebsd.org Mon May 30 05:41:10 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D355B54399 for ; Mon, 30 May 2016 05:41:10 +0000 (UTC) (envelope-from esamorokov@gmail.com) Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com [IPv6:2607:f8b0:400e:c00::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 34A911DC3 for ; Mon, 30 May 2016 05:41:10 +0000 (UTC) (envelope-from esamorokov@gmail.com) Received: by mail-pf0-x22d.google.com with SMTP id b124so61122043pfb.0 for ; Sun, 29 May 2016 22:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to; bh=3h/aTcLCdToo1pEdkUzQze0505iIXrE3qlYCWyh3MIE=; b=uP7lfoHwt+q7cv4S1na+8btGqaGly9Dlu626HuVpyH9v+uc6MAeYjq0/LJ1Vu1rPrq CmTeUfNq+FUYdFU+LBFKi5kTBSIEPuexY85OiGvWG1Rh5nZEK5DrAmWibbb5rXsU+9KA kD1DBagWrXXyih8KWxSLUCtnOBcXdv6Ny3IPrj9NEURh2GcDiXPw7/kUWx9sWZfBx+68 GhxxXG6SCZaNfOiAa0zXbE0sUQ9kRi6bc6sVtAhuRiJ+0HDFix27wApe23ITxYv4ck7z S1Ax4btCkvDiuUoVNk2VaUl02yXzvjaaRnVYu4/2aANP8vo06xoZfiIW3tuQSwRCg5CE 2o5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to; bh=3h/aTcLCdToo1pEdkUzQze0505iIXrE3qlYCWyh3MIE=; b=WsUehD5tKDnoQ3Lv8EcovM/a1yqhF9ZzFVJSMVlJcT/apR4U2caQ7EwCc0gaTtgWxk AOv7hT8e79TltTD1Mo9wwmAsDwkUlm/ukyXhCq4+B0ggoKxb20eZeeSB/9KdCBSmYTG1 B5wU4xBe29JeNeyaciCmqUayOnngHoeCgH33Frc0nvPIk2ER6Al4Mlt66Sli+zfEN3ME 1txDXg8DfOUUhW4BsmERKL7NwtOkhVRxgnOw2R83Tl3wV1WAg4Nrlm5fe3ZF9tcjqsbr hf2KQzRtoiW/l0SE4tKo9Ac05LGIuG46BMLYL8ynV1O/1HAGvnU3b3mfGLXccgBtrrHl OmQg== X-Gm-Message-State: ALyK8tLu+Kx27n7CPJpv7n8UKtOEtsPZKnVsOSJDfU+7SJL8wvqwvNgsSXQQg0aCONFnQA== X-Received: by 10.98.94.194 with SMTP id s185mr5263423pfb.32.1464586869465; Sun, 29 May 2016 22:41:09 -0700 (PDT) Received: from [192.168.2.60] ([65.78.190.115]) by smtp.googlemail.com with ESMTPSA id dh4sm43966757pad.37.2016.05.29.22.41.08 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 May 2016 22:41:08 -0700 (PDT) Subject: Re: ZFS - RAIDZ1 Recovery (Evgeny Sam) To: BlackCat References: Cc: freebsd-fs@freebsd.org From: esamorokov Message-ID: <574BD273.5040401@gmail.com> Date: Sun, 29 May 2016 22:41:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2016 05:41:10 -0000 BlackCat, I think this table should make it a little bit clear, i hope :) *State #1* *State #2* *State #3* *State #4* *ada1 (ada1p2)* OK OK DISCONNECTED CONNECTED (OLD POOL) *ada2 (ada2p2)* OK OK OK OK (new Pool) *ada3 (ada3p2)* OK FAILED REPLACED CONNECTED FAILED DRIVE (OLD POOL) *ZH_VOL (pool)* OK DEGRADED DESTROYED RECREATED Thank you, Evgeny. On 05/29/2016 11:31 AM, BlackCat wrote: > Evgeny, > > I still can not figure, what happened to ada2 drive. You say that the > broken drive is ada3 and you attempt to replace it. But then something > went wrong, you attempted to recover the pool but without success. > After that you attach original ada3 drive back to machine and write > your initial post to this mailing list? > > Log, which you attached to your initial post, shows that you attempted > to remove _ada2_ from the pool, then you create new pool with the same > name and add _ada2p2_ to it. zfs added _ada2p2_ to new pool without > any warnings. Then you try to add _ada1p2_ to the new pool and zfs > rejects to do that since it suspects that _ada1p2_ already belongs to > other pool. > > The dump of labels from your message shows that: > * _adad1p2 is partially Ok (labels at the end of partition are missed) > * _ada2p2 is Ok, but belongs to new pool > * _ada3p2_ is Ok: all labels exists and belongs to old pool > > I am really puzzled what happened with each of your drives. >