Date: Fri, 3 Apr 2020 16:42:32 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> To: Artem Kuchin <artem@artem.ru>, freebsd-fs@freebsd.org Subject: Re: gpart bootcode Operation not permitted Message-ID: <48ba23fa-13dc-4a74-579c-2028479f302a@quip.cz> In-Reply-To: <c1856b2c-8f0e-ab1c-9ec7-d62a10b696b2@artem.ru> References: <27955efa-01f2-88f6-6a28-d9d8a62dfa2a@artem.ru> <a4a5e7dc-3234-add9-4c2e-8c55a38d6e83@quip.cz> <c1856b2c-8f0e-ab1c-9ec7-d62a10b696b2@artem.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Artem Kuchin wrote on 2020/04/03 16:17: > 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? It depends on what you need to protect by mirroring. If you need it just to protect saved data (desktop usage) then you don't need to mirror swap. If you need to stay up and running if some HDD failed (servers) then you need to mirror swap too. Or the system will panic. > But i need to have a working boot code on both disks because in case of > failure i need to boot from any disk. Yes you need to update boot code on each disk but as it is normally not modified you don't need to mirror it you just need to update it after system update / upgrade. > 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 I think you can use "gmirror stop" on boot partition, then "gmirror clear" and then update both individual boot partitions by gpart. Miroslav Lachman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48ba23fa-13dc-4a74-579c-2028479f302a>