Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2010 17:42:18 +0200
From:      Tijl Coosemans <tijl@coosemans.org>
To:        freebsd-hackers@freebsd.org
Cc:        Alexander Best <arundel@freebsd.org>, mav@freebsd.org, Oliver Fromme <olli@lurza.secnetix.de>
Subject:   Re: Summary: Re: Spin down HDD after disk sync or before power off
Message-ID:  <201009161742.24228.tijl@coosemans.org>
In-Reply-To: <201009161410.o8GEAM1n029066@lurza.secnetix.de>
References:  <201009161410.o8GEAM1n029066@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1394869.hKoHA25AgX
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

On Thursday 16 September 2010 16:10:22 Oliver Fromme wrote:
> Tijl Coosemans wrote:
>> I would just spin down the disk in case of a halt. An unwanted spin
>> down is harmless compared to an emergency shutdown and usually the
>> intention is to power off rather than reboot.
>=20
> Is it?  When I intend to power-off, I use shutdown -p, not
> shutdown -h.  Quite often (but not always) when I halt a
> machine, I'm going to reboot to multi-user, not power off.

Hmm, I suppose support for power off is ubiquitous nowadays. It used to
be that halt meant: bring the system in a state where we can safely cut
the power. In that case it makes sense to let halt spin down the disks.
If you intend to reboot why not explicitly reboot rather than halt?
Also, to go from single to multi user mode you can just exit(1) the
shell.

> In that case I certainly wouldn't want to spin the drives
> down and have them spun up immediately afterwards.  I don't
> think that wear&tear caused by that procedure is completely
> insignificant (although it's certainly less of a problem
> than emergency unloads).
>=20
> For that reason I definitely want to have a way to disable
> the spindown function manually.

Ok, I'm soft on the sysctl really, it wouldn't hurt anyone. Although,
if the intention is to just override the default behaviour at the time
of shutdown you might as well just add an option to halt(8). A "don't
spin down disks" option would fit in with the other options there.

--nextPart1394869.hKoHA25AgX
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iF4EABEIAAYFAkySOt8ACgkQfoCS2CCgtivkLwD/cjNQVg2WjEC0GxsxQBQZZdLW
tGouE291l49ypQZ4DGIA/j9rGCo+idLc+CeGLeYhG7X1ES9Z8d4zSZqwg3Nl5mpp
=XBCi
-----END PGP SIGNATURE-----

--nextPart1394869.hKoHA25AgX--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009161742.24228.tijl>