Forskel mellem versioner af "Harddisk spindown"
Spring til navigation
Spring til søgning
Frank D (diskussion | bidrag) (Tag changed from code to pre) |
Frank D (diskussion | bidrag) (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 { | ||
− | |||
− | |||
− | |||
− | } | ||
− | </pre> | ||
− | |||
− | == 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. | ||
− | |||
− | |||
− | |||
− | |||
− | </ | ||
− | |||
− | 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- | ||
− | |||
− | |||
− | </ | ||
− | |||
− | 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. | ||
− | |||
− | |||
− | </ | ||
− | |||
− | 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. | ||
− | < | ||
− | |||
− | |||
− | |||
− | </ | ||
− | |||
− | Test om en disk er i standby. | ||
− | |||
− | < | ||
− | sudo hdparm -C /dev/sda | ||
− | </ | ||
− | |||
− | [[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