Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2012 12:17:04 -0700
From:      freebsd@johnea.net
To:        freebsd-questions@freebsd.org
Subject:   Re: 9.1 and gmirror with GPT?
Message-ID:  <509027C9.4080709@johnea.net>
In-Reply-To: <alpine.BSF.2.00.1210271655200.69926@wonkity.com>
References:  <5082EAEE.4040609@johnea.net> <50833F78.1060609@bnrlabs.com> <alpine.BSF.2.00.1210210827530.70277@wonkity.com> <5085C743.8000508@johnea.net> <alpine.BSF.2.00.1210221631250.13158@wonkity.com> <5086C7EB.9020104@johnea.net> <alpine.BSF.2.00.1210231837130.21493@wonkity.com> <508C2043.8070205@johnea.net> <alpine.BSF.2.00.1210271530190.69926@wonkity.com> <508C5BE6.4000405@johnea.net> <alpine.BSF.2.00.1210271655200.69926@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2012-10-27 16:01, Warren Block wrote:
> On Sat, 27 Oct 2012, freebsd@johnea.net wrote:
> 
>> I ended up just ignoring the not aligned warning from the "gpart add -t freebsd" and went on to add the freebsd-swap and freebsd-ufs partitions with "-a 4k" option.
>>
>> Do you think I'm aligned?
> ...
>> =>        63  3907029104  mirror/gm0  MBR  (1.8T)
>>          63          63              - free -  (31k)
>>         126  3907028979           1  freebsd  (1.8T)
>>  3907029105          62              - free -  (31k)
>>
>> =>         0  3907028979  mirror/gm0s1  BSD  (1.8T)
>>           0           2                - free -  (1.0k)
>>           2    16777216             1  freebsd-swap  (8.0G)
>>    16777218  3890251760             2  freebsd-ufs  (1.8T)
>>  3907028978           1                - free -  (512B)
> 
> The slice starts at block 126, and then the swap partition starts an additional two blocks into the slice, which is block 128, evenly divisible by 8 (4096 = 512 * 8).
> 
> The freebsd-ufs partition starts at 126+16777218, which is also evenly divisible by 8.
> 
> So yes, that looks aligned to me.

Thanks again Warren!

I think I finally have this 9.1 system up and running with MBR and gmirror aligned to 4K sector size.

After getting the gm0 running, I did a dump/restore to transfer the live system from ada0 to gm0, before adding ada0 to the mirror. I ran into the journaled soft-updates issue, and again relied on one of your posts for the solution:

http://forums.freebsd.org/showthread.php?t=31257

Thank You for your contributions to FreeBSD! 

johnea



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?509027C9.4080709>