Web lists-archives.com

Re: why is the kernel "unsleeping" a HDD put to sleep with hdparm -Y ?




Zenaan Harkness <zenaan@xxxxxxxxxxxx> writes:

>So I have a 'spare' internal spinning rust bucket which I only use
>for backups, and so most of the time when I'm not using it I put it
>to sleep with:
>
>sudo hdparm -Y /dev/sda
>
>Unfortunately the kernel wakes the drive up again:
>
>Aug 27 19:44:40 eye kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
>Aug 27 19:44:40 eye kernel: ata1.00: waking up from sleep
>Aug 27 19:44:40 eye kernel: ata1: hard resetting link
>Aug 27 19:44:41 eye kernel: ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
>Aug 27 19:44:41 eye kernel: ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
>Aug 27 19:44:41 eye kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
>Aug 27 19:44:41 eye kernel: ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
>Aug 27 19:44:43 eye kernel: ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
>Aug 27 19:44:43 eye kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
>Aug 27 19:44:43 eye kernel: ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
>Aug 27 19:44:43 eye kernel: ata1.00: configured for UDMA/133
>Aug 27 19:44:43 eye kernel: ata1: EH complete
>
>Why is the kernel doing this, and how do I stop it from happening?
>
>TIA,

I do a similar thing but use hdparm -y.  I never see the drive spin back
up.

I would look in the log for a cron job related to the drive comming back up.