Date: Sun, 16 Aug 2020 04:11:21 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: Wojciech Puchar <wojtek@puchar.net>, Mark Johnston <markj@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: gmirror balance model "prefer" doesnt work properly Message-ID: <6db8e18e-875e-2cfa-3820-8b89e9c9b7dc@grosbein.net> In-Reply-To: <alpine.BSF.2.20.2008152204200.81858@puchar.net> References: <alpine.BSF.2.20.2008151127420.18876@puchar.net> <20200815165438.GA41502@raichu> <alpine.BSF.2.20.2008152204200.81858@puchar.net>
next in thread | previous in thread | raw e-mail | index | archive | help
16.08.2020 3:04, Wojciech Puchar wrote: >>> LIST_FOREACH(disk, &sc->sc_disks, d_next) { >>> if (disk->d_state == G_MIRROR_DISK_STATE_ACTIVE) >>> break; >>> } >>> >>> >>> just take first active disk. >>> >>> why? >> >> The highest priority disk is supposed to be first in the list. However, >> the list is only sorted once the mirror is started, which is arguably > > But is "higher priority" higher or lower number? gmirror(8) manual page specifically says "biggest" is preferred (higher).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6db8e18e-875e-2cfa-3820-8b89e9c9b7dc>