Forskel mellem versioner af "Harddisk spindown"

Fra Millenium's Wiki
Spring til navigation Spring til søgning
(Tag changed from code to pre)
(Tag changed from code to pre)
Linje 1: Linje 1:
== Opsætning af diske ==
+
== Opsætning af diske ==Få en liste med disk UUID's<pre>sudo blkid</pre>Disable intern APM (f. eks. WD Green diske). <br/>''Hvor a erstattes med det aktuelle device.''<pre>sudo hdparm -B 255 /dev/sda</pre>Manuel spindown<pre>sudo hdparm -y /dev/sda</pre>Redigér ''/etc/hdparm.conf'' og tilføj<pre>sudo nano /etc/hdparm.conf</pre><pre>/dev/sda {       apm = 255       poweron_standby = off       keep_features_over_reset = on}</pre>== Spindown installering ==Først installeres '' build essentials ''<pre>sudo apt-get install make g++ build-essential</pre>Spindown hentes og installeres.<pre>wget http://spindown.googlecode.com/files/spindown-0.4.0.tar.gztar xvzf spindown-0.4.0.tar.gzcd spindown-0.4.0/makesudo make install</pre>Kopiér eksempel configuration til '' etc '' biblioteket.<pre>sudo cp spindown.conf.example /etc/spindown.conf</pre>Få en liste over disk ID's.<pre>ls -l /dev/disk/by-id/</pre>eksempel:<pre>lrwxrwxrwx 1 root root  9 2012-02-12 16:34 ata-ST940210AS_5QX2B7LY -> ../../sda</pre>Redigér '' /etc/spindown.conf '' og tilføj<pre>sudo nano /etc/spindown.conf</pre><pre>[Disk 1]id = ata-ST940210AS_5QX2B7LYspindown = 1command = hdparm -y</pre>Standard spindown tid er 1 time (3600 sek.). Denne ændres i '' /etc/spindown.conf '' i general sektionen.<pre>idle-time = 3600    # The time in seconds a disk has to be idle before it is spundown.                   # Do not use a value that is to small (less than 3600) unless you                   # know what you are doing.</pre>Spindown startes med <pre>sudo service spindown start</pre>== Status ==Status for diske.<pre>sudo service spindown status</pre>dette giver følgende output med information om hver disk.eksempel.<pre> * spindown is runningname     watched    active      idle-time        spindown-timesda           1          1              3                  600</pre>Test om en disk er i standby.<pre>sudo hdparm -C /dev/sda</pre>[[category:Computer]][[category:Linux]][[category:Server]]
 
 
Få en liste med disk UUID's
 
 
 
<pre>
 
sudo blkid
 
</pre>
 
 
 
Disable intern APM (f. eks. WD Green diske). <br/>
 
''Hvor a erstattes med det aktuelle device.''
 
<pre>
 
sudo hdparm -B 255 /dev/sda
 
</pre>
 
 
 
Manuel spindown
 
 
 
<pre>
 
sudo hdparm -y /dev/sda
 
</pre>
 
 
 
Redigér ''/etc/hdparm.conf'' og tilføj
 
 
 
<pre>
 
sudo nano /etc/hdparm.conf
 
</pre>
 
 
 
<pre>
 
/dev/sda {
 
        apm = 255
 
        poweron_standby = off
 
        keep_features_over_reset = on
 
}
 
</pre>
 
 
 
== Spindown installering ==
 
 
 
Først installeres '' build essentials ''
 
 
 
<code>
 
sudo apt-get install make g++ build-essential
 
</code>
 
 
 
Spindown hentes og installeres.
 
 
 
<code>
 
wget http://spindown.googlecode.com/files/spindown-0.4.0.tar.gz
 
tar xvzf spindown-0.4.0.tar.gz
 
cd spindown-0.4.0/
 
make
 
sudo make install
 
</code>
 
 
 
Kopiér eksempel configuration til '' etc '' biblioteket.
 
 
 
<code>
 
sudo cp spindown.conf.example /etc/spindown.conf
 
</code>
 
 
 
Få en liste over disk ID's.
 
 
 
<code>
 
ls -l /dev/disk/by-id/
 
</code>
 
eksempel:
 
<code>
 
lrwxrwxrwx 1 root root  9 2012-02-12 16:34 ata-ST940210AS_5QX2B7LY -> ../../sda
 
</code>
 
 
 
Redigér '' /etc/spindown.conf '' og tilføj
 
 
 
<code>
 
sudo nano /etc/spindown.conf
 
</code>
 
<code>
 
[Disk 1]
 
id = ata-ST940210AS_5QX2B7LY
 
spindown = 1
 
command = hdparm -y
 
</code>
 
 
 
Standard spindown tid er 1 time (3600 sek.). Denne ændres i '' /etc/spindown.conf '' i general sektionen.
 
 
 
<code>
 
idle-time = 3600    # The time in seconds a disk has to be idle before it is spundown.
 
                    # Do not use a value that is to small (less than 3600) unless you
 
                    # know what you are doing.
 
</code>
 
 
 
Spindown startes med  
 
 
 
<code>
 
sudo service spindown start
 
</code>
 
 
 
== Status ==
 
 
 
Status for diske.
 
 
 
<code>
 
sudo service spindown status
 
</code>
 
 
 
dette giver følgende output med information om hver disk.
 
 
 
eksempel.
 
<code>
 
* spindown is running
 
name     watched    active      idle-time        spindown-time
 
sda           1          1              3                  600
 
</code>
 
 
 
Test om en disk er i standby.
 
 
 
<code>
 
sudo hdparm -C /dev/sda
 
</code>
 
 
 
[[category:Computer]]
 
[[category:Linux]]
 
[[category:Server]]
 

Versionen fra 12. dec 2013, 17:53

== Opsætning af diske ==Få en liste med disk UUID's

sudo blkid

Disable intern APM (f. eks. WD Green diske).
Hvor a erstattes med det aktuelle device.

sudo hdparm -B 255 /dev/sda

Manuel spindown

sudo hdparm -y /dev/sda

Redigér /etc/hdparm.conf og tilføj

sudo nano /etc/hdparm.conf
/dev/sda {        apm = 255        poweron_standby = off        keep_features_over_reset = on}

== Spindown installering ==Først installeres build essentials

sudo apt-get install make g++ build-essential

Spindown hentes og installeres.

wget http://spindown.googlecode.com/files/spindown-0.4.0.tar.gztar xvzf spindown-0.4.0.tar.gzcd spindown-0.4.0/makesudo make install

Kopiér eksempel configuration til etc biblioteket.

sudo cp spindown.conf.example /etc/spindown.conf

Få en liste over disk ID's.

ls -l /dev/disk/by-id/

eksempel:

lrwxrwxrwx 1 root root  9 2012-02-12 16:34 ata-ST940210AS_5QX2B7LY -> ../../sda

Redigér /etc/spindown.conf og tilføj

sudo nano /etc/spindown.conf
[Disk 1]id = ata-ST940210AS_5QX2B7LYspindown = 1command = hdparm -y

Standard spindown tid er 1 time (3600 sek.). Denne ændres i /etc/spindown.conf i general sektionen.

idle-time = 3600    # The time in seconds a disk has to be idle before it is spundown.                    # Do not use a value that is to small (less than 3600) unless you                    # know what you are doing.

Spindown startes med

sudo service spindown start

== Status ==Status for diske.

sudo service spindown status

dette giver følgende output med information om hver disk.eksempel.

 * spindown is runningname     watched     active       idle-time        spindown-timesda            1          1               3                  600

Test om en disk er i standby.

sudo hdparm -C /dev/sda