Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2011 07:18:20 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Johan Hendriks <Johan@double-l.nl>
Cc:        Adam Vande More <amvandemore@gmail.com>, "questions@freebsd.org" <questions@freebsd.org>
Subject:   RE: glabel, gmirror, and gpart
Message-ID:  <alpine.BSF.2.00.1108270654190.4549@wonkity.com>
In-Reply-To: <6C3F8332272B7D4DA26909F15F1C90E1E5B722@SRV01.double-l.local>
References:  <alpine.BSF.2.00.1108261843520.2131@wonkity.com> <CA+tpaK3ryDtDkzy7NnGHoHpT515MRMOKRhSetnuKZZJEm1-0Eg@mail.gmail.com> <alpine.BSF.2.00.1108262121320.2601@wonkity.com>, <CA+tpaK02ZuDyPY11-KZ68X4qKyK1Qp01GKiTWDeVyn_pR2vt4g@mail.gmail.com> <6C3F8332272B7D4DA26909F15F1C90E1E5B722@SRV01.double-l.local>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sat, 27 Aug 2011, Johan Hendriks wrote:

>> On Fri, Aug 26, 2011 at 11:04 PM, Warren Block <wblock@wonkity.com> wrote:
>
>> So it's cosmetic, but not really the kind of message that instills
>> confidence.  gptboot needs to be able to tell if it's reading from a
>> gmirror.  Or gmirror should provide one block less than it does, so it
>> doesn't overwrite the GPT backup.
>
> I use the whole disk to gmirror setup on all my servers.
>
> And one day i thought i could try the gpart stuff.
> I also saw the message at startup, and disgarded it.
> This was on 8.1
>
> But when i did an upgrade to 8.2 later on, the system could not boot.
> So i had to find another way.
>
> So i would not do it like you do now, it could turn against you in the long run.
> The thing i did was to mirror each partition.
> Like so http://unix-heaven.org/node/24
> that way it worked.
> Do not forget to make your second disk bootable also

That was the idea I had last night trying to go back to sleep.  Use 
gpart to partition the disks, and use gmirror to mirror the partitions. 
A little more setup, because you have to create multiple mirrors instead 
of one with partitions inside it.

It also addresses Adam's question.  For two dissimilar disks, create 
partitions of the same size and mirror them instead of the whole disk.

gmirror apparently doesn't keep a list of outstanding writes, so smaller 
mirrors should be faster to sync.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1108270654190.4549>