summaryrefslogtreecommitdiffstats
path: root/sbin/atacontrol
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-06-25 18:11:22 +0000
committerbz <bz@FreeBSD.org>2008-06-25 18:11:22 +0000
commit66ca734cf360820c118828e5467a2467684c96f7 (patch)
tree3d2c5769435801d6e2fa77cef5d4807b0fbbe701 /sbin/atacontrol
parent60aa8a602bacbc89c4c03ff352c9702392416b32 (diff)
downloadFreeBSD-src-66ca734cf360820c118828e5467a2467684c96f7.zip
FreeBSD-src-66ca734cf360820c118828e5467a2467684c96f7.tar.gz
Document spindown constraints as given in the original commit
message[1] and later clarification provided by phk. [1] http://docs.freebsd.org/cgi/mid.cgi?200803171033.m2HAXOeN055116 Reviewed by: brueffer, phk, ed
Diffstat (limited to 'sbin/atacontrol')
-rw-r--r--sbin/atacontrol/atacontrol.823
1 files changed, 22 insertions, 1 deletions
diff --git a/sbin/atacontrol/atacontrol.8 b/sbin/atacontrol/atacontrol.8
index a755483..8b4967e 100644
--- a/sbin/atacontrol/atacontrol.8
+++ b/sbin/atacontrol/atacontrol.8
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 28, 2007
+.Dd June 25, 2008
.Dt ATACONTROL 8
.Os
.Sh NAME
@@ -198,6 +198,10 @@ Show detailed info about the device on
Set or report timeout after which the
.Ar device
will be spun down.
+To arm the timeout the device needs at least one more request after
+setting the timeout.
+To disable spindown, set the timeout to zero.
+No further actions are needed in this case.
.It Ic info
Show info about the attached devices on the
.Ar channel .
@@ -333,6 +337,23 @@ Issue the command:
.Pp
Now a status command will show the array rebuilding.
.Pp
+To spin down a disk after 30 minutes run
+.Pp
+.Dl "atacontrol spindown ad6 1800"
+.Dl "dd if=/dev/ad6 of=/dev/null count=1"
+.Pp
+While any IO on the disk will arm the timer, using
+.Xr dd 1
+on the raw device will work in all cases, as when the disk is not
+opened at all.
+You can check the current setting with
+.Pp
+.Dl "atacontrol spindown ad6"
+.Pp
+You should not set a spindown timeout on a disk with
+.Pa /
+or syslog logging on it as the disk will be worn out spinning down and
+up all the time.
.Sh SEE ALSO
.Xr ata 4
.Sh HISTORY
OpenPOWER on IntegriCloud