Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 May 2016 10:11:24 +0300
From:      BlackCat <blackcatzilla@gmail.com>
To:        esamorokov <esamorokov@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS - RAIDZ1 Recovery (Evgeny Sam)
Message-ID:  <CAD-rSefo0P3OzNz_d00MG7KEhFbCQccSuycP=sRRX2RimfsChw@mail.gmail.com>
In-Reply-To: <574BD273.5040401@gmail.com>
References:  <CABDVK=6-zxo-HyG6LwmVAaouO5ZoiSuAhAYoszX9FMoK2qb_Qw@mail.gmail.com> <CAD-rSedwn9GJ1MMBmfcMXPZ7yvpkC9FkAo4_Zgmwi%2BT39CnM0g@mail.gmail.com> <CABDVK=77zb7g=GtCpv0nUe6nBwf2GWWPHpEu1KGfC49SU4kiiA@mail.gmail.com> <CAD-rSecgU6KsXzPkLYSz1r9KsBoXHwybjNTyXimRF2UDFOLTbA@mail.gmail.com> <CABDVK=4RFv3nqyg2DEWQppM%2Bn%2BmL66v5yMKW45r89d3Y=4=W-w@mail.gmail.com> <CAD-rSecbFjSwV0kYCKEWL%2Bu0i26m%2B6-Rtej0Xyzpc_JswG8HvA@mail.gmail.com> <574BD273.5040401@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Evgeny,

2016-05-30 8:41 GMT+03:00 esamorokov <esamorokov@gmail.com>:
>     I think this table should make it a little bit clear, i hope :)
>
> Drive               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.
>

Thank you for this nice formatted table, it perfectly summarize states
of drives. But I still can not figure how drives change from one state
to another, especially how could you attach ada2p2 to new pool without
detaching it from old one.

Ok if no one else would suggest any better solution, let's keep one's
fingers crossed and try to import pool as-is (in any case you have
copies of your original drives):
# zpool import -o ro -fF 2918670121059000644 zh_vol_old

-- 
BR BC



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAD-rSefo0P3OzNz_d00MG7KEhFbCQccSuycP=sRRX2RimfsChw>