diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-23 02:16:43 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-23 02:16:43 +0000 |
commit | 701e28ff72b67897a05119207391d12510875cad (patch) | |
tree | d16fef8a240c2c7e1f38ffaf7b688199dfee1def /sbin/atactl/atactl.8 | |
parent | daa918d5064a0ca12562ca72409d586abc3174f3 (diff) |
atactl SMART support; wouter@yourcreativesolutions.nl
Diffstat (limited to 'sbin/atactl/atactl.8')
-rw-r--r-- | sbin/atactl/atactl.8 | 214 |
1 files changed, 211 insertions, 3 deletions
diff --git a/sbin/atactl/atactl.8 b/sbin/atactl/atactl.8 index 42b059d542c..c32c135b039 100644 --- a/sbin/atactl/atactl.8 +++ b/sbin/atactl/atactl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: atactl.8,v 1.4 2000/04/12 16:50:52 aaron Exp $ +.\" $OpenBSD: atactl.8,v 1.5 2001/03/23 02:16:42 deraadt Exp $ .\" $NetBSD: atactl.8,v 1.5 1999/02/24 18:49:14 jwise Exp $ .\" .\" Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -71,7 +71,7 @@ command is implied. .Cm identify .Pp Identify the specified device, displaying the device's vendor, product, -revision strings, and the device's capabilities. +revision strings, supported capabilities and enabled capabilities. .Pp .Cm idle .Pp @@ -85,7 +85,7 @@ This mode will consume less power than Idle mode. .Pp .Cm sleep .Pp -Place he specified device into Sleep mode. +Place the specified device into Sleep mode. This mode will consume less power than Standby mode, but requires a device reset to resume operation. Typically the @@ -115,6 +115,199 @@ A value of 0 will disable the Standby timer. .Pp Will print out if the device is in Active, Idle, or Standby power management mode. +.Pp +.Cm apmset +.Ar power-management-level +.Pp +Enables and sets the advanced power management level to the requested +level on the specified device (if supported). Device performance may +increase with increasing power management levels at the cost of +potentially requiring more power. Values up to and including 126 allow +the device to go into standby mode and spin-down the disk. This +.Em may cause disk time-outs +and is therefor +.Em not +recommended. These values are more suitable optimization for low power +usage on infrequently used devices. Values 127 up to and including 253 +do not allow the device to go to standby mode and are more suitable for +optimization for performance. Support for advanced power management is +indicated by the device with +.Sq Advanced Power Management feature set +in the output of the +.Cm identify +command. +.Pp +.Cm apmdisable +.Pp +Disables support for advanced power management on the specified device. +Note that devices supporting advanced powermanagement may refuse to +disable it, resulting in an +.Sq ATA device returned Aborted Command +warning. +.Pp +.Cm acousticset +.Ar acoustic-management-level +.Pp +Enables and sets the automatic acoustic management level to the requested +level on the specified device (if supported). Device performance may +increase with increasing automatic acoustic management levels at the cost of +potentially generating more noise and requiring more power. Valid values are +0 up to and including 126. Support for automatic acoustic management is +indicated by the device with +.Sq Automatic Acoustic Management feature set +in the output of the +.Cm identify +command. +.Pp +.Cm acousticdisable +.Pp +Disables support for automatic acoustic management on the specified device. +Note that devices supporting automatic acoustic management may refuse to +disable it, resulting in an +.Sq ATA device returned Aborted Command +warning. +.Pp +.Cm podenable +.Pp +Allows the specified device to revert to power-on default (pod) settings +after a reset. +.Pp +.Cm poddisable +.Pp +Disallows the specified device to revert to power-on default (pod) settings +after a reset. +.Pp +.Cm puisenable +.Pp +Enables power-up in standby (puis) on the specified device, causing the +device to wait with spinning up the disks after power-up. This may cause +problems at boot if the device is to slow in spin-up. This options is +therefor +.Em not recommended +unless really understand the implications. Note that the power-up in +standby mode stays enabled over power-downs, hardware and software +resets. +Support for power-up in standby is indicated by the device with +.Sq Power-up in standby feature set +in the output of the +.Cm identify +command. +.Pp +.Cm puisdisable +.Pp +Disables power-up in standby (puis) on the specified device, causing the +device to spin up the disks after power-up. This should be the factory +default setting of the device and it is recommended to leave this +setting disabled. +.Pp +.Cm puisspinup +.Pp +Explicitly spins up the device if it powered-up into standby mode (i.e. +power-up in standby was enabled). +.Pp +.Cm readaheadenable +.Pp +Enables read look-ahead on the specified device. This may increase +performance. Support for and status of read look-ahead is indicated by +the device with +.Sq read look-ahead +in the output of the +.Cm identify +command. +.Pp +.Cm readaheaddisable +.Pp +Disables read look-ahead on the specified device. This may decrease +performance. Note that the device may use +.Sq vendor specific +behaviour in implementing this, so it is +.Em not +recommended to issue this command on a disk containing any currently +mounted filesystems. +.Pp +.Cm smartenable +.Pp +Enables SMART (Self-Monitoring, Analysis, and Reporting Technology) on the +specified device (if supported). This causes the device to record information +for prediction of device degradation and/or faults. Support for SMART is +indicated by the device with +.Sq SMART feature set +in the output of the +.Cm identify +command. +.Pp +.Cm smartdisable +.Pp +Disables support for SMART on the specified device. Note that this means that +the device will no longer record any SMART information. +.Pp +.Cm smartstatus +.Pp +Reads the reliability status of the specified device. If the device reports +that one of its thresholds is exceeded (a strong indication of imminent +failure), the warning +.Sq SMART threshold exceeded! +is printed to stderr and a status of 2 is returned. Note that SMART +.Em must +be enabled or the device will return an error. +.Pp +.Cm writecachedisable +.Pp +Disable the write cache on the specified device (if supported). This may +decrease performance. Support for and status of write caching is +indicated by the device with +.Sq write cache +in the output of the +.Cm identify +command. +.Pp +.Cm writecacheenable +.Pp +Enables the write cache on the specified device (if supported). This may +increase performance, however data still in the device's cache at +powerdown +.Em may be lost. +The +.Xr wd 4 +driver performs a cache flush automatically before shutdown. +.Sh EXAMPLES +.Cm atactl /dev/wd0c identify +.Pp +Displays the vendor, product, revision strings and capabilities (such as +support for SMART) as reported by +.Pa /dev/wd0 . +.Pp +.Cm atactl /dev/wd1c smartenable +.Pp +Enables the SMART support on +.Pa /dev/wd1 +for detection of early warning signs of device failure. +.Pp +.Cm 0 * * * * /sbin/atactl /dev/wd0c smartstatus >/dev/null +.Pp +In a +.Xr crontab 5 +entry queries +.Pa /dev/wd0 +each hour for early warning signs of failure. If the device exceeded one +of the SMART thresholds, +.Nm +will output +.Sq SMART threshold exceeded! +to stderr and +.Xr cron 8 +wil mail it. +.Sh DIAGNOSTICS +.Pp +Not all devices are created equally. Some may not support the feature sets +and/or commands needed to perform the requested action, even when the +.Cm identify +command indicates support for the requested action. The device will +typically respond with an +.Sq ATA device returned Aborted Command +if the requested action is not supported. Similarly a device might +not implement all commands in a feature set, so even though disabling a +feature works, enabling might not. .Sh SEE ALSO .Xr ioctl 2 , .Xr wd 4 @@ -125,12 +318,27 @@ command was written by Ken Hornstein. It was based heavily on the .Xr scsictl 8 command written by Jason R. Thorpe. +Support for acoustic management, advanced power management, power-up in +standby, read look-ahead and SMART was added by Wouter Slegers. .Sh HISTORY The .Nm command first appeared in .Ox 2.6 . +Support for acoustic management, advanced power management, power-up in +standby, read look-ahead and SMART was added in +.Ox 2.9 . .Sh BUGS The output from the .Cm identify command is rather ugly. +.Pp +Disabling read look-head with the +.Cm readaheaddisable +might cause problems with mounted filesystems on that device. +.Pp +There is no support for reading SMART logs or initiating a SMART +selftest. +.Pp +There is no support for the Secure Mode commands (in particular the +Security Erase Unit). |