I have 3 SATA HDDs in my server. The first one is a SSD system drive, and the other two (in JBOD) are being used to store some data (accessed via Samba). Most of the time when there are no requests, those two data drives can go to sleep. However only one of those two does.
I have already set the
noatime flag in
fstab for both drives and Im pretty sure that there's no cron job accessing this drive. I also set the spindown timeout to 10 minutes (
hdparm -S 128 command) for both.
Is there a way how do I determine which application still accesses the drive and preventing it from going to sleep?
I wouldn't normally care whether the drive is sleeping or not, but as this is a home server, setting those two drives asleep is worth saving some energy. The OS is Ubuntu Server 10.04.
Thanks for tips.