Date: Tue, 10 Mar 2009 15:33:28 +0000 From: Gavin Atkinson <ga9@york.ac.uk> To: Guido van Rooij <guido@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r189624 - head/etc/rc.d Message-ID: <1236699209.62820.32.camel@buffy.york.ac.uk> In-Reply-To: <200903101519.n2AFJovP065743@svn.freebsd.org> References: <200903101519.n2AFJovP065743@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1236699209.62820.32.camel>