gmirror balance model "prefer" doesnt work properly
Wojciech Puchar
wojtek at puchar.net
Sat Aug 15 20:05:04 UTC 2020
>> 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?
> the bug. If you restart the mirror after adjusting the disk priorities,
> I'd expect the "prefer" algorithm to work properly.
>
>
More information about the freebsd-hackers
mailing list