How to mirror the FreeBSD OS on two disks

Warren Block wblock at wonkity.com
Thu Jul 12 19:48:00 UTC 2012


On Thu, 12 Jul 2012, Wojciech Puchar wrote:

>> last partition includes the block of gmirror metadata, that's an error.
>
> no it doesn't

You appear to be agreeing with me, but saying that your method does not 
produce that problem.

> i do this 2 ways:
>
> method 1) i FIRST do gmirror on whole disk
>
> THEN partition it, so partition sizes sums up to gmirror size which is 1 
> sector less disk size.
>
> then bsdlabel -B
>
> method 2) i make same disklabel on both disk, then bsdlabel -B, them gmirror 
> each partitions separately.
> often i do not mirror all partitions, ew. i do not for squid proxy data if 
> used.
>
>
> both method results in system bootable from both drives and proper 
> disklabels.

Yes, these are the same methods that can be used with MBR partitions. 
The second works with GPT partitioning also.


More information about the freebsd-questions mailing list