glabel and real disk IDs
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri Jul 10 19:39:02 UTC 2009
On Fri, Jul 10, 2009 at 09:37:30AM -0700, Marcel Moolenaar wrote:
>
> On Jul 9, 2009, at 3:24 PM, Pawel Jakub Dawidek wrote:
> >>I see ZFS getting confused when disks are shuffled around.
> >>The confusion is the result of having device paths stored
> >>in the ZFS label match the device name of some other vdev
> >>that part of the same pool.
> >>
> >>Replacing a device with itself doesn't help, because ZFS
> >>complains that the vdev is part of an active pool in that
> >>case. It seems that only labels will work here...
> >
> >Solaris is using device names stored in ZFS label and if this is not
> >the
> >drive it was looking for, it is doing ID-to-path translation to find
> >new
> >path name. On FreeBSD on the other hand (after upgrade to v13) I
> >gave up
> >doing similar thing because disk IDs weren't available from all disk
> >device drivers (I implemented it for ATA and I received no help with
> >other drivers). Currently the idea is to just go through all GEOM
> >providers looking for proper ZFS metadata (think of it as manual
> >tasting), so even if device name changes, ZFS should be able to locate
> >it. If there are still problems locating the disk, there simply
> >might be
> >a bug in the code of some sort.
>
> Disks are found correctly, it's just that ZFS' internal
> state is messed up. It uses both the device special file
> name and the stored vdev path and as such can end up with
> multiple VDEVs of the same name. As such, some VDEVs are
> marked as corrupted/faulted.
>
> I can reproduce it if you're interested.
I am, but I'm leaving tomorrow and I'll be out of e-mail probably for
the next two weeks.
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20090710/2b7eb428/attachment.pgp
More information about the freebsd-geom
mailing list