aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/storage.html61
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>