From owner-freebsd-bugs@FreeBSD.ORG Sat Apr 11 03:00:13 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C3F8106567B for ; Sat, 11 Apr 2009 03:00:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E8B1B8FC15 for ; Sat, 11 Apr 2009 03:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3B30C42097225 for ; Sat, 11 Apr 2009 03:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3B30Cx5097224; Sat, 11 Apr 2009 03:00:12 GMT (envelope-from gnats) Resent-Date: Sat, 11 Apr 2009 03:00:12 GMT Resent-Message-Id: <200904110300.n3B30Cx5097224@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitry Marakasov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EB101065672 for ; Sat, 11 Apr 2009 02:56:05 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (smtp.timeweb.ru [217.170.79.85]) by mx1.freebsd.org (Postfix) with ESMTP id 4BD248FC14 for ; Sat, 11 Apr 2009 02:56:05 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LsTO1-0001L3-1N for FreeBSD-gnats-submit@freebsd.org; Sat, 11 Apr 2009 06:56:05 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id CC584C6A9 for ; Sat, 11 Apr 2009 06:56:19 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id 92B4410883E; Sat, 11 Apr 2009 06:55:45 +0400 (MSD) Message-Id: <20090411025545.92B4410883E@hades.panopticon> Date: Sat, 11 Apr 2009 06:55:45 +0400 (MSD) From: Dmitry Marakasov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/133593: [ata] `atacontrol spindown` won't affect disk until some data is read from it X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmitry Marakasov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2009 03:00:13 -0000 >Number: 133593 >Category: kern >Synopsis: [ata] `atacontrol spindown` won't affect disk until some data is read from it >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 11 03:00:12 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 8.0-CURRENT i386 >Organization: >Environment: System: FreeBSD hades.panopticon 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Thu Apr 9 02:46:37 MSD 2009 root@hades.panopticon:/async/obj/usr/src/sys/HADES i386 >Description: I have and extra PATA drive that I use for backups, and it is not even mounted on boot. To make it sleep until needed I've added atacontrol spindown ad5 60 into /etc/rc.local, but it turned out that this won't affect the drive until it is touched in any way. For example, if I do `dd if=/dev/ad5 of=/dev/null bs=512 count=1`, drive will spindown in 60 as it should. If I add it to fstab, it's also spun down. But until it is touched, it wont. % sudo atacontrol info ata2 Master: ad4 ATA/ATAPI revision 7 Slave: ad5 ATA/ATAPI revision 7 % dmesg | grep ata2 ata2: on atapci0 ata2: [ITHREAD] ad4: 286168MB at ata2-master UDMA100 ad5: 286168MB at ata2-slave UDMA100 % dmesg | grep atapci0 atapci0: port 0xec00-0xec07,0xe880-0xe883,0xe800-0xe807,0xe480-0xe483,0xe400-0xe40f mem 0xfeaffc00-0xfeafffff irq 16 at device 0.0 on pci3 atapci0: [ITHREAD] ata2: on atapci0 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: