gpart bootcode Operation not permitted
Artem Kuchin
artem at artem.ru
Fri Apr 3 14:17:51 UTC 2020
03.04.2020 17:11, Miroslav Lachman пишет:
> Artem Kuchin wrote on 2020/04/03 15:23:
>> I am lost with this problem.
>>
>> I have gmirror:
>>
>> # gmirror status
>> Name Status Components
>> mirror/boot COMPLETE ada0p1 (ACTIVE)
>> ada1p1 (ACTIVE)
>> mirror/swap COMPLETE ada0p2 (ACTIVE)
>> ada1p2 (ACTIVE)
>> mirror/root COMPLETE ada0p3 (ACTIVE)
>
> I you are mirroring boot partition why you need to write directly to
> individual partitions on both disk instead of mirror?
>
> I never used this setup. I mirrored swap, /root, /usr, /var but not
> boot partition. Then I write gptzfsboot to both ob them individually.
>
> Miroslav Lachman
>
I don't know :) It is a historical setup. I even would say that
mirroring swap is a bad idea, isn't it?
But i need to have a working boot code on both disks because in case of
failure i need to boot from any disk.
Protective MBR is not mirrored anyway, so, need to install it
separatelly on each disk for sure. Installing boot code into
boot partion maybe can be done on mirror partition (or whatever it is
calleed mirror/boot) but then how do i address it
in the gpart boocode command ?
Artem
More information about the freebsd-fs
mailing list