[Bug 178818] gmirror(8) says to use rc.early which is no longer available

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jun 11 04:29:35 UTC 2019


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

Oleksandr Tymoshenko <gonzo at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|doc at FreeBSD.org             |bugs at FreeBSD.org
          Component|Documentation               |Manual Pages
                 CC|                            |doc at FreeBSD.org

Christian Baltini <christian.baltini at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |christian.baltini at gmail.com

--- Comment #5 from Christian Baltini <christian.baltini at gmail.com> ---
I have addressed this like so:

This rc.d script fires before savecore and changes the balance to "prefer" and
ensures that a specified GEOM provider has a specified priority.

https://github.com/openspork/freebsd-nas/blob/master/usr/local/etc/rc.d/gmirror_prefer

This rc.d script fires after savecore and changes the balance back to whatever
is specified in rc.conf (or wherever).

https://github.com/openspork/freebsd-nas/blob/master/usr/local/etc/rc.d/gmirror_balance

I have tested it working.

In the longer term I think it would be nice if the base system could be smart
enough to do something similar.  Until then this appears to do the trick.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the freebsd-doc mailing list