diff options
author | Silvino <silvino@bk.ru> | 2019-06-16 05:04:09 +0100 |
---|---|---|
committer | Silvino <silvino@bk.ru> | 2019-06-16 05:04:44 +0100 |
commit | 296be79a3b724db67a37244a67cfb3e4ef6b652f (patch) | |
tree | 6136b7fbe2082b018a6a06f897b7012177cce630 /tools/storage.html | |
parent | fdc231661647d4ca15ddf312e85b210eabd23e50 (diff) | |
parent | 951a8a84411da6b71cee11d8c9feb993b984acf5 (diff) | |
download | doc-296be79a3b724db67a37244a67cfb3e4ef6b652f.tar.gz |
doc release 0.5.3
Diffstat (limited to 'tools/storage.html')
-rw-r--r-- | tools/storage.html | 66 |
1 files changed, 62 insertions, 4 deletions
diff --git a/tools/storage.html b/tools/storage.html index 932e724..3a0a064 100644 --- a/tools/storage.html +++ b/tools/storage.html @@ -11,16 +11,73 @@ <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 </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 hdparm;</p> + + <pre> + # hdparm -I /dev/sda | grep "Advanced power management level" + # hdparm -I /dev/sda | grep "Recommended acoustic management value" + </pre> + + + <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 <a href="https://wiki.archlinux.org/index.php/Badblocks">non destructive test;</a></p> @@ -28,6 +85,7 @@ # badblocks -nsv /dev/sdb1 </pre> + <h2 id="mv">2. Moving data</h2> <p>Temp partition with 20M-50M;</p> |