From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 16 15:42:28 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DD421065781; Thu, 16 Sep 2010 15:42:28 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay004.isp.belgacom.be (mailrelay004.isp.belgacom.be [195.238.6.170]) by mx1.freebsd.org (Postfix) with ESMTP id 35FB58FC16; Thu, 16 Sep 2010 15:42:26 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj4FADnXkUxbsVM9/2dsb2JhbACUJI1icsJuhUEE Received: from 61.83-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.83.61]) by relay.skynet.be with ESMTP; 16 Sep 2010 17:42:25 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.4/8.14.4) with ESMTP id o8GFgOQm005501; Thu, 16 Sep 2010 17:42:24 +0200 (CEST) (envelope-from tijl@coosemans.org) From: Tijl Coosemans To: freebsd-hackers@freebsd.org Date: Thu, 16 Sep 2010 17:42:18 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; i386; ; ) References: <201009161410.o8GEAM1n029066@lurza.secnetix.de> In-Reply-To: <201009161410.o8GEAM1n029066@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1394869.hKoHA25AgX"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201009161742.24228.tijl@coosemans.org> Cc: Alexander Best , mav@freebsd.org, Oliver Fromme Subject: Re: Summary: Re: Spin down HDD after disk sync or before power off X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2010 15:42:28 -0000 --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--