building a mirror in a partition
Willem Jan Withagen
wjw at withagen.nl
Sat Sep 25 07:01:47 PDT 2004
Pawel Jakub Dawidek wrote:
>On Sat, Sep 25, 2004 at 03:00:18PM +0200, Willem Jan Withagen wrote:
>+> >Yes. It is because gstripe store metadata in the last provider's sector
>+> >and if two providers ends in the same place - you have a problem.
>+> >In that case, you should create you stripe by adding '-h' option, which
>+> >will add provider's name to metadata, so only this provider will be
>+> >connected to your stripe.
>+> >
>+> >
>+> the -h was my friend.....
>+> I do not really understand why it was trying to use the whole slice for
>+> mirroring?? But that might be my ignorance.
>
>Because those two providers share the same last sector, so they share
>the same metadata and there is no information by default, which provider
>is the right one (you should add '-h' option).
>IMHO this is a better behaviour, because you can move your disk, copy it
>to another disk via dd(1), etc. and it will be still recognized by gmirror.
>
>
Thanx for the clarification, but more questions rise:
What two providers are we talking about??
I specifically entered ad0s1h and ad2s1h.....
On the first one it only takes the 'h'partition, but on the second
on it prefers to take the whole disk.
I fail to see where the exact difference is.
I'm hearing you say:
always you -h, there is little reason not to do so?
--WjW
More information about the freebsd-geom
mailing list