Date: Fri, 3 Apr 2020 17:17:14 +0300 From: Artem Kuchin <artem@artem.ru> To: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-fs@freebsd.org Subject: Re: gpart bootcode Operation not permitted Message-ID: <c1856b2c-8f0e-ab1c-9ec7-d62a10b696b2@artem.ru> In-Reply-To: <a4a5e7dc-3234-add9-4c2e-8c55a38d6e83@quip.cz> References: <27955efa-01f2-88f6-6a28-d9d8a62dfa2a@artem.ru> <a4a5e7dc-3234-add9-4c2e-8c55a38d6e83@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c1856b2c-8f0e-ab1c-9ec7-d62a10b696b2>