Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Sep 2004 16:01:44 +0200
From:      Willem Jan Withagen <wjw@withagen.nl>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        freebsd-geom@FreeBSD.org
Subject:   Re: building a mirror in a partition
Message-ID:  <41557A48.6090403@withagen.nl>
In-Reply-To: <20040925134112.GL9550@darkness.comp.waw.pl>
References:  <4153441A.9010303@withagen.nl> <20040924074925.GD9550@darkness.comp.waw.pl> <41556BE2.5060803@withagen.nl> <20040925134112.GL9550@darkness.comp.waw.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41557A48.6090403>