9.1 and gmirror with GPT?

freebsd at johnea.net freebsd at johnea.net
Tue Oct 30 19:17:36 UTC 2012


On 2012-10-27 16:01, Warren Block wrote:
> On Sat, 27 Oct 2012, freebsd at 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


More information about the freebsd-questions mailing list