From: Antonio E. L. <ant...@on...> - 2010-01-03 14:25:33
|
Here you have. Thanks, Antonio -----Mensaje original----- De: Christian Franke [mailto:Chr...@t-...] Enviado el: domingo, 03 de enero de 2010 14:52 Para: Antonio Expósito Lorenzo CC: sma...@li... Asunto: Re: [smartmontools-support] Smartd/smartctl spin up drive (-n directive versions 5.38 and 5.39) Hi Antonio, > First of all, happy new year (we love informatics, hardware and automatisms, > but we are humans, :-) ) > > Of course :-) Happy new year ! > Here you have the results of the test that you proposed: > > user@host:~$ sudo hdparm -y /dev/sda; sleep 20 ; sudo hdparm -C /dev/sda ; > sleep 20 ; sudo hdparm -C /dev/sda ; sleep 20 ; sudo smartctl -d sat -n > standby -i /dev/sda; sudo hdparm -C /dev/sda ; sleep 20 ; sudo hdparm -C > /dev/sda > > /dev/sda: > issuing standby command > > /dev/sda: > drive state is: standby > > /dev/sda: > drive state is: standby > smartctl 5.39 2009-12-09 r2995 [i686-pc-linux-gnu] (local build) > Copyright (C) 2002-9 by Bruce Allen, http://smartmontools.sourceforge.net > > Device is in STANDBY mode, exit(2) > > /dev/sda: > drive state is: standby > > /dev/sda: > drive state is: active/idle > > > I have repeated it three times with the same results. I think that > smartmontools is awaking the device.... > > Yes. Hmm... When '-d TYPE' is specified, there should be no difference between 'hdparm -C' and 'smartctl -n standby'. Debug output may help. Could you please post (as attachment) the result of the following commands: # hdparm -y /dev/sda # sleep 20 # hdparm --verbose -C /dev/sda # smartctl -r ioctl,2 -n standby -i /dev/sda Thanks, Christian |