Hi,
I have old drive 3tb(WD Green), i bought another one also 3tb (HGTS) and i've created RAID 1 . Everything works ok.. well sort off .
The old drive does not support APM so it never spins down. I'm totaly new in Linux so i have problem. I have idea how to solve it but i don't have skils to do that.
I want to add to OMV script which will check every 5 min, if newer disk is in standby mode via hdparm -C /dev/sdb | grep standby - and result of command hast to be stored in SRTING value
after that i need to check if length of STRING is bigger than 0 if it is i need to send command to spin down other drive hdparm -y /dev/sdc.
so in my head it looks like this:
Every 5 min
STRING = hdparm -C /dev/sdb | grep standby
if [expr length {#STRING} -gt 0]
then
hdparm -y /dev/sdc
PS.
Sometime new disk spinning all the time too IDK why. Settings are APM 1 spin off 5 min(for tests at the ent it will be 15 - 20 min )
does write cash prevents disk from spinning down ?
Can somebody help me to create script ?