From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 5 00:52:34 2009 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 E04F81065672 for ; Thu, 5 Mar 2009 00:52:34 +0000 (UTC) (envelope-from dthiele@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 44BF98FC1B for ; Thu, 5 Mar 2009 00:52:33 +0000 (UTC) (envelope-from dthiele@gmx.net) Received: (qmail invoked by alias); 05 Mar 2009 00:25:51 -0000 Received: from p54867F40.dip.t-dialin.net (EHLO impala.vnws.lan) [84.134.127.64] by mail.gmx.net (mp007) with SMTP; 05 Mar 2009 01:25:51 +0100 X-Authenticated: #19302822 X-Provags-ID: V01U2FsdGVkX1/BN1xLegLBi7guEhTUTjCYXxyWngGRIyIMVBm/EU R2+dh1wQqhZuF7 Message-ID: <49AF1C1B.3050604@gmx.net> Date: Thu, 05 Mar 2009 01:26:03 +0100 From: Daniel Thiele User-Agent: Thunderbird 2.0.0.19 (X11/20090124) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG, octavian.covalschi@gmail.com References: <200903041938.n24Jcqdr060153@lurza.secnetix.de> In-Reply-To: <200903041938.n24Jcqdr060153@lurza.secnetix.de> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.46 Cc: mav@FreeBSD.org Subject: 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, 05 Mar 2009 00:52:35 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Oliver Fromme wrote: | Octavian Covalschi wrote: | > I'm looking a way to spin down HDD just right before power off. Why? | > | > Because currently when I call "shutdown -p now", HDD is powered off at it's | > full speed (7200.4) and as a result | > I hear a noise of stopping/spinning down of HDD, and _this_ concerns me as | > I'm afraid it can damage HDD. | [...] | You can't do anything from | userland at this point. If you want to insert a spin-down | for your disks, you will have to modify the kernel. That is what I did and am still doing successfully since 2006. See http://lists.freebsd.org/pipermail/freebsd-acpi/2006-January/002375.html for my initial problem description and http://lists.freebsd.org/pipermail/freebsd-acpi/2006-February/002566.html for the "solution". Note that back then David Tolpin (dvd@davidashen.net) suggested to use " ... & (ATA_SUPPORT_APM|ATA_SUPPORT_STANDBY)" instead. I don't know if that is the way it should be done, but for me it worked across 3 hard disks and two notebooks so far. I am aware that 3 disks and 2 notebooks provide very limited test results, but maybe this work around solves your problem, too. It would still be great, though, if a proper solution for this could be permanently implemented into FreeBSD. That is, if the current behaviour really is not that healthy to hard drives, as Joerg suggested. Best regards, Daniel -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmvHBUACgkQCOZKcWNoXg6LvQCgkT9GGMqa6M/t3hhN9cBM8Fee laQAoNPRvQkk4HkvQYjtVPRsxNZr3Lmn =InHj -----END PGP SIGNATURE-----