gmirror balance model "prefer" doesnt work properly
Eugene Grosbein
eugen at grosbein.net
Sat Aug 15 21:11:34 UTC 2020
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).
More information about the freebsd-hackers
mailing list