From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 6 21:30:15 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 7429B106566C for ; Fri, 6 Mar 2009 21:30:15 +0000 (UTC) (envelope-from octavian.covalschi@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id 43D988FC18 for ; Fri, 6 Mar 2009 21:30:15 +0000 (UTC) (envelope-from octavian.covalschi@gmail.com) Received: by wf-out-1314.google.com with SMTP id 27so668314wfd.7 for ; Fri, 06 Mar 2009 13:30:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=8XTzKf6rpyu7v6/Ja693MhmLuv9gy4UD3Sgp6fUjAec=; b=Xxq2Q3I+MCFPCFo48+JJferXjPaqQ1JD1aEiMihYKqzYumJKqbeCg/T54eiY5BLK9c cb3YbZbJRkFHSfStIlqUf85D3QgpwnOIaf+IzuyWlJSe01z64+bFSweTn5oG4kgUz383 bQX9YsMV1FI2DVctQ/lTxvIv9o0VcSVE5oK4o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=vmoHa03rphdFOmzHpdp2qcxkgjyR/rkGx4fY298ZI+wiJdUHiD6d12B9DXa5VhJpPZ ih68w2k2zJIHPwEQf8LeLRmY81P94jXtwlJuBbAWmF0z6tKzsCDMcjtKtXPDoVIAclnU F2Q7/K7ohXml7WxZet/uXLePBpydkWWyjH720= MIME-Version: 1.0 Received: by 10.142.155.9 with SMTP id c9mr1271729wfe.70.1236375014873; Fri, 06 Mar 2009 13:30:14 -0800 (PST) In-Reply-To: <20090306203057.GA49994@keira.kiwi-computer.com> References: <200903041938.n24Jcqdr060153@lurza.secnetix.de> <20090304195614.GA179@britannica.bec.de> <20090306203057.GA49994@keira.kiwi-computer.com> Date: Fri, 6 Mar 2009 15:30:14 -0600 Message-ID: From: Octavian Covalschi To: rick-freebsd2008@kiwi-computer.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@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: Fri, 06 Mar 2009 21:30:15 -0000 Why is spinning down is bad for HDD ? I believe it's better to spindown a drive, instead of cutting power too sudden. On Fri, Mar 6, 2009 at 2:30 PM, Rick C. Petty < rick-freebsd2008@kiwi-computer.com> wrote: > On Wed, Mar 04, 2009 at 08:56:14PM +0100, Joerg Sonnenberger wrote: > > On Wed, Mar 04, 2009 at 08:38:52PM +0100, 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 don't have to spin down a disk before powering it off. > > > The noise you hear is probably caused by the "autopark" > > > feature of the drive. It is harmless. > > > > This is not true. Many hard disks don't like having to do an emergency > > shutdown as it affects the disk life time negatively. That's what > > happens if you poweroff the machine when the disks are still spinning. > > I believe you are incorrect. Most hard drives do an "autopark" of the head > into the landing zone (which is near the spindle) when power is lost. My > understanding is that because it is spinning so fast, the heads can fly for > quite a long time so the HDD has enough time to autopark and such an > operation does not consume much power. Thus the operation can be performed > with a little capacitance or by using some of the mechanical energy in the > spindle. > > If drives did not auto, there would be orders of magnitude more failures > due to head crashes. The heads absolutely have to be retracted into the > landing zone if the spindle speed is too low or the drive will fail. > > What's actually bad for the drives is the actual spinup and spindowns, > which require the head to sit in the very bumpy landing zone until the > drive reaches optimal spindle speed and thus enough airflow to safely move > the heads around the platter without contact. > > Strangely, atacontrol(8) has a command for spindown (which is inherently > bad for drives yet still a reasonable feature) but there is no command for > spinup. I wish there was a spinup command because I've seen drives that > won't do a spinup until they receive a special ATA command. I was never > able to find any docs, so if anyone knows the command I'd be willing to > write a patch against atacontrol! > > -- Rick C. Petty > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >