svn commit: r189624 - head/etc/rc.d

Gavin Atkinson ga9 at york.ac.uk
Tue Mar 10 08:52:25 PDT 2009


On Tue, 2009-03-10 at 15:19 +0000, Guido van Rooij wrote:
> Author: guido
> Date: Tue Mar 10 15:19:49 2009
> New Revision: 189624
> URL: http://svn.freebsd.org/changeset/base/189624
> 
> Log:
>   When swap resides on a mirror and it is not stopped, the mirror
>   is degraded upon the next reboot and will have to be rebuild.
>   Thus call swapoff when rebooting (read: when stopping swap1)

Is this due to a bug/feature of gmirror?  A long time ago, swapoff used
to be run on shutdown, but it was removed by pjd@ in src/etc/rc.d/swap1
version 1.9 with the following commit message:

| Stop method for swap1 script was introduced, because gmirror needed
| it. Now gmirror use shutdown hooks to mark mirrors as clean on
| shutdown, so this is not needed anymore.

I'm not saying it's not needed, just intrigued why it is now needed
again when it never used to be?

FWIW, I seem to remember that one of the reasons it was removed was that
turning swap off created the possibility that lots of things would be
paged back into RAM, which a) could take a long time, and b) fail if
there was insufficient RAM.

Gavin

-- 
Gavin Atkinson           Systems Administrator & Programmer
Computing Service,  The University of York,  York. YO10 5DD
Tel: +44 (0)1904 433738             Fax: +44 (0)1904 433740
I have a proof of Fermat's theorem but this .sig is too nar


More information about the svn-src-head mailing list