diff options
author | Silvino <silvino@bk.ru> | 2019-06-09 02:19:01 +0100 |
---|---|---|
committer | Silvino <silvino@bk.ru> | 2019-06-09 02:19:01 +0100 |
commit | 44ee76746ec6f23f3e67602770e4a04ab8471e95 (patch) | |
tree | 683431688f592c1fb87b03e1e7d7e1e985fd2045 /tools | |
parent | f905c797c8f2ec87a8aa641a44c49fc1d0a23ebe (diff) | |
download | doc-44ee76746ec6f23f3e67602770e4a04ab8471e95.tar.gz |
core index re-ordering and tools storage revision
Diffstat (limited to 'tools')
-rw-r--r-- | tools/storage.html | 61 |
1 files changed, 57 insertions, 4 deletions
diff --git a/tools/storage.html b/tools/storage.html index 932e724..f90bca0 100644 --- a/tools/storage.html +++ b/tools/storage.html @@ -11,14 +11,66 @@ <h2 id="fsck">1. Maintenance</h2> - <p>SMART provides statistics of disk firmware, this system - handle errors has their occur. Badblocks detect bad blocks - by writing and reading from disk in a destructive test. - Example of how to view SMART statistics of a disk;</p> + <p>SMART provides statistics of disk firmware, + this system handle errors has their occur. Badblocks are detected by writing and reading from disk in + a destructive test. Example of how to view SMART + statistics of a disk;</p> <pre> # smartctl -t long /dev/sdb1 # smartctl -a /dev/sdb1 | less + # hdparm -I /dev/sda | less + </pre> + + <p>Mechanical hard drives spindown disks + and put heads in hold position to save energy + and protect the disk. This spindow spinup + can shorter the life expectancy of the hard + drive. Relevant output from smartctl;</p> + + <p>Settings with hdparm [options] [device];</p> + + <dl> + <dt>-B</dt> + + <dd>Set the Advanced Power Management feature. + Possible values are between 1 and 255, low + values mean more aggressive power management + and higher values mean better performance. + Values from 1 to 127 permit spin-down, whereas + values from 128 to 254 do not. A value of 255 + completely disables the feature.</dd> + + <dt>-S</dt> + + <dd>Set the standby (spindown) timeout for + the drive. The timeout specifies how long to + wait in idle (with no disk activity) before + turning off the motor to save power. The value + of 0 disables spindown, the values from 1 to + 240 specify multiples of 5 seconds and values + from 241 to 251 specify multiples of 30 + minutes.</dd> + + <dt>-M</dt> + + <dd>Set the Automatic Acoustic Management + feature. Most modern hard disk drives have the + ability to speed down the head movements to + reduce their noise output. The possible value + depends on the disk, some disks may not support + this feature.</dd> + </dl> + + <pre> + # hdparm -S 0 /dev/sda + # hdparm -B 255 /dev/sda + </pre> + + <p>Set persistent values using udev, edit /etc/udev/rules.d/69-hdparm.rules;</p> + + <pre> + ACTION=="add", SUBSYSTEM=="block", KERNEL=="sda", RUN=="/usr/bin/hdparm -B 255 -S 0 /dev/sda" </pre> <p>Search for bad blocks using @@ -28,6 +80,7 @@ # badblocks -nsv /dev/sdb1 </pre> + <h2 id="mv">2. Moving data</h2> <p>Temp partition with 20M-50M;</p> |