Hello community,
I've created a script which is putting my server into sleep (s3) after quite some time, if not used. I also let my HDDs spin down, if not used (in a shorter period of time of course).
When I reactivate the server, e.g. with WOL all Hard Disks will spin up. I would like to prevent this and keeping them in standby mode unless I'll access them.
Things I've tried so far:
using "hdparm -s" to enable PUIS
set "/sys/block/sdi/device/scsi_disk/*/manage_start_stop" to 0 (stopping the kernel sd (scsi disk) driver to starting the disk after suspend-exit)
deleting the drive by "echo 1 > /sys/block/<devnode>/device/delete"
After the first two steps, when the drive was in standby and the system was suspended and reactivated it still spun up, but actually a bit later (3-5sec) as before. Dsmeg shows, that sd starting all disks but not the desired one. So this is working at least. I think something else keeps spinning the disk up.
After deleting the drive by step 3, it did not spun up. Problem here is, that I cant find the disk again by unsing 'echo "- - -" > /sys/class/scsi_host/host<n>/scan', which does not work at all. But I think this shows, that it is really the kernel or something, which keep spinning the disks up and not the BIOS/UEFI.
I hope someone can help.