Green hard disk drives

Ralf Mardorf ralf.mardorf at alice-dsl.net
Mon Aug 24 13:30:59 UTC 2015


Update:

1.

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1484497/comments/6

2.

Running ps aux I found  /usr/sbin/smartd -n.

[weremouse at moonstudio ~]$ man smartd
  [snip] smartd  will  attempt  to enable SMART monitoring on ATA
  devices (equivalent to smartctl -s on) and polls these and SCSI
  devices every 30 minutes (configurable) [snip]

My Arch Linux doesn't run smartd. I don't remember if it already was
installed when the issue appeared for the Wily install or if I installed
it after I noticed the issue. It might not be the original culprit, but
seemingly is at least one culprit.

I started a test a few minutes ago.

Regards,
Ralf


Further information:

[root at moonstudio weremouse]# ps aux | grep smart
root       879  0.2  0.0  25240  2760 ?        Ss   14:55   0:00 /usr/sbin/smartd -n
[snip]


[root at moonstudio weremouse]# systemctl -l status smartmontools.service
● smartd.service - Self Monitoring and Reporting Technology (SMART) Daemon
   Loaded: loaded (/lib/systemd/system/smartd.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2015-08-24 14:55:29 CEST; 47s ago
     Docs: man:smartd(8)
           man:smartd.conf(5)
 Main PID: 879 (smartd)
   CGroup: /system.slice/smartd.service
           └─879 /usr/sbin/smartd -n
[snip]
Aug 24 14:55:32 moonstudio smartd[879]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.SAMSUNG_HD321KJ-S0MQJ9AQ308387.ata.state
Aug 24 14:55:32 moonstudio smartd[879]: Device: /dev/sdb [SAT], state written to /var/lib/smartmontools/smartd.SAMSUNG_HD502HJ-S26EJ9FZ100925.ata.state
Aug 24 14:55:32 moonstudio smartd[879]: Device: /dev/sdc [SAT], state written to /var/lib/smartmontools/smartd.WDC_WD20EZRX_00DC0B0-WD_WMC300753067.ata.state


[root at moonstudio weremouse]# systemctl -l status smartd.service
● smartd.service - Self Monitoring and Reporting Technology (SMART) Daemon
   Loaded: loaded (/lib/systemd/system/smartd.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2015-08-24 14:55:29 CEST; 58s ago
     Docs: man:smartd(8)
           man:smartd.conf(5)
 Main PID: 879 (smartd)
   CGroup: /system.slice/smartd.service
           └─879 /usr/sbin/smartd -n
[snip]
Aug 24 14:55:32 moonstudio smartd[879]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.SAMSUNG_HD321KJ-S0MQJ9AQ308387.ata.state
Aug 24 14:55:32 moonstudio smartd[879]: Device: /dev/sdb [SAT], state written to /var/lib/smartmontools/smartd.SAMSUNG_HD502HJ-S26EJ9FZ100925.ata.state
Aug 24 14:55:32 moonstudio smartd[879]: Device: /dev/sdc [SAT], state written to /var/lib/smartmontools/smartd.WDC_WD20EZRX_00DC0B0-WD_WMC300753067.ata.state


[root at moonstudio weremouse]# systemctl stop smartmontools.service 
[root at moonstudio weremouse]# systemctl stop smartd.service
[root at moonstudio weremouse]# systemctl disable smartmontools.service
Synchronizing state of smartmontools.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install disable smartmontools
insserv: warning: current start runlevel(s) (empty) of script `smartmontools' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (1 2 3 4 5) of script `smartmontools' overrides LSB defaults (1).


[root at moonstudio weremouse]# systemctl disable smartd.service
Removed symlink /etc/systemd/system/multi-user.target.wants/smartd.service.


[root at moonstudio weremouse]# ps aux | grep smart
root      1314  0.0  0.0   8208   936 pts/0    S+   14:58   0:00 grep --color=auto smart


The test that is running:

[root at moonstudio weremouse]# echo;date;t=10800;y=$(smartctl -A /dev/sdc|grep Lo|awk '{print $NF}');sleep $t;x=$(smartctl -A /dev/sdc|grep Lo|awk '{print $NF}');printf "\n$(uname -rm)$(lsb_release -d|cut -f2 -d:|cut -f1 -d"(")\n$x-$y=$((x-y)) spins in $(($t/60/60)) hours\n\n";date

Mon Aug 24 15:00:50 CEST 2015

To be continued...




More information about the Ubuntu-devel-discuss mailing list