I have a webserver being idle most the time. This causes the main hard drive to spin down after a few minutes, all the other hard drives are already spun down. This is a wanted behavior, since I want the system to be as much power-saving as possible.
Unfortunately, the main hard drive spins up again after a few seconds, causing a lot of wear on the hard drive mechanics. This happens reliably all around the clock, even if noone is accessing the web server. Is there a way to log the drive's spin up events, and maybe the source?
And is it possible to create an automatic ramfs cache or something similiar? I guess that it's the same file that gets accessed repeatedly, and it would be great if one could allocate an area in memory as a cache where files that are accessed get copied into, so they don't have to be fetched from disk and therefore the disk doesn't need to spin up. Thanks in advance!