A gmirror question.
Chris St Denis
chris at smartt.com
Tue Oct 28 14:13:01 PDT 2008
Stefan Moro wrote:
> I've got a question regarding the way that gmirror identifies what
> "components" (if that is the right term) are included in a mirror.
> I recently created a mirror over two disks, ad2 and ad4. After some
> bios changes (activating PATA) these devices were changed to ad6 and
> ad10 respectively.
> The "magic" thing (which probably isn't so magic =) ) here is that
> after reboot, gmirror still managed to identify the mirror, now using
> ad6 and ad10.
> If I have understood things correctly, gmirror stores all relevant
> information about the mirror in the last sector on the provider.
> So I guess one possible solution is that gmirror ,during startup,
> scans all disks/slices for this magic sector and then "starts" the
> But if this is the case, how does gmirror know that it should use (in
> my example above) ad10 and not ad4 as the additional disk in the
> Or does gmirror use something else than the /dev entries to address disks??
> I'm just curious how gmirror does this.
> BR Stefan
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
I don't know the technical details of the internal working of gmirror,
but it likely uses the volume serial number or other such identifier.
More information about the freebsd-questions