Monitoraggio della temperatura di un hard disk con hddtemp

From RVM Wiki
Jump to navigation Jump to search
  • Installare il pacchetto
sudo apt-get install hddtemp 
  • Far loggare ogni 60 secondi:
                                                                                
  ┌─────────────────────────┤ Configuring hddtemp ├─────────────────────────┐   
  │ The temperature of the hard drive(s) can be logged by hddtemp via the   │   
  │ generic system logging interface.                                       │   
  │                                                                         │   
  │ Please enter a value in seconds corresponding to the interval between   │   
  │ two checks. To disable this feature, enter 0.                           │   
  │                                                                         │   
  │ Interval between hard drive temperature checks:                         │   
  │                                                                         │   
  │ 60_____________________________________________________________________ │   
  │                                                                         │   
  │                                 <Ok>                                    │   
  │                                                                         │   
  └─────────────────────────────────────────────────────────────────────────┘   
                                                                               
  • Riavviare:
sudo invoke-rc.d hddtemp restart
  • Verificare che rilevi tutti i dischi:
Starting disk temperature monitoring daemon: hddtemp:  /dev/sda /dev/sdb.
  • Se così non fosse, identificare la label del disco con
sudo smartctl -i /dev/sda | grep "Device Model"
Device Model:     ST380013AS
  • Identificare la descrizione:
sudo smartctl -i /dev/sda | grep "Model Family"
Model Family:     Seagate Barracuda 7200.7 and 7200.7 Plus family
  • Verificare il numero dell'attributo SMART che logga la temperatura:
sudo smartctl -a /dev/sda| grep -i temp
194 Temperature_Celsius     0x0022   024   047   000    Old_age   Always       -       24 (0 15 0 0)
  • Inserirlo nel DB hddtemp:
sudoedit /etc/hddtemp.db 
"ST380013AS" 194 C "Seagate Barracuda 7200.7 and 7200.7 Plus family"
  • Riavviare
 sudo invoke-rc.d hddtemp restart