https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244693

            Bug ID: 244693
           Summary: gmirror configure priority does not take an effect
                    until reboot?
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: b...@freebsd.org
          Reporter: s...@spy.zp.ua

`gmirror label -hvb prefer test /dev/gpt/test1 /dev/gpt/test2`

gmirror sets priority by default:
/dev/gpt/test1 -> 0
/dev/gpt/test2 -> 1

when you run `dd if=/dev/mirror/test of=/dev/null` you can see in gstat/iostat,
that /dev/gpt/test2 is loaded for read.

then after `gmirror configure -p 5 test /dev/gpt/test1`, running `dd
if=/dev/mirror/test of=/dev/null`  you can see, that /dev/gpt/test2 is still
used for read.

after reboot, changes take effect, and /dev/gpt/test1 really starts to be used
for read operations.

there are no way to reload gmirror to apply changes without reboot, except this
strange way, when you remake mirror with the "right" devices order:
`gmirror stop test; gmirror label -hvb prefer test /dev/gpt/test2
/dev/gpt/test1`

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to