Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Oct 2010 08:32:48 +0200
From:      Stefan Bethke <stb@lassitu.de>
To:        Rumen Telbizov <telbizov@gmail.com>
Cc:        freebsd-stable@freebsd.org, Artem Belevich <fbsdlist@src.cx>
Subject:   Re: Degraded zpool cannot detach old/bad drive
Message-ID:  <EED7B72A-132E-4B01-B22A-9C885F81909C@lassitu.de>
In-Reply-To: <AANLkTiktrL7LHkh3HLGqZeZx7ve6arBrs8ZE57NwtfN1@mail.gmail.com>
References:  <AANLkTi=EWfVyZjKEYe=c0x6QvsdUcHGo2-iqGr4OaVG7@mail.gmail.com> <AANLkTinjfpnHGMvzJ5Ly8_WFXGvQmQ4D0-_TgbVBi=cf@mail.gmail.com> <AANLkTi=h6ZJtbRHeUOpKX17uOD5_XyYmu01ZTTCCKw=_@mail.gmail.com> <AANLkTikPqgoxuYp7D88Dp0t5LvjXQeO3mCXdFw6onEZN@mail.gmail.com> <AANLkTimMM82=rqMQQfZZYTcaM_CU%2B01xPeZUGAik8H3v@mail.gmail.com> <AANLkTinKpMLeJOd_V7uxyAFqcStoGwV9PfTJDLDPq3By@mail.gmail.com> <AANLkTiktrL7LHkh3HLGqZeZx7ve6arBrs8ZE57NwtfN1@mail.gmail.com>

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

Am 29.10.2010 um 07:51 schrieb Rumen Telbizov:

> Thanks for your quick response. Unfortunately I already did try this
> approach. Applying -d /dev/gpt only limits the pool to the bare three =
remaining disks
> which turns pool completely unusable (no mfid devices). Maybe those =
labels are removed
> shortly they are being tried to be imported/accessed?
>=20
> What I don't understand is what exactly makes those gpt labels =
disappear
> when the pool is imported and otherwise are just fine?!
> Something to do with OpenSolaris ? On top of it all gpart show -l =
keeps
> showing all the labels right even while the pool is imported.
>=20
> Any other clues would be appreciated.

The labels are removed by glabel as soon as something opens the =
underlying provider, i. e. the disk device, for writing.  Since that =
process could change the part of the disk that the label information is =
extracted from, the label is removed.  glabel will re-taste the provider =
once the process closes it again.

Since you're using gpt labels, I would expect them to continue to be =
available, unless zpool import somehow opens the disk devices (instead =
of the partition devices).


Stefan

--=20
Stefan Bethke <stb@lassitu.de>   Fon +49 151 14070811






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EED7B72A-132E-4B01-B22A-9C885F81909C>