I’m currently using the sync, sleep addition to monitorio.sh discussed in this post:
https://community.wd.com/t/wd-my-cloud-randomly-wakes-up-the-drive-when-drive-sleep-is-enabled/152748/22
ior_datavol=$ior_datavol2
iow_datavol=$iow_datavol2
iow_root=$iow_root2
smartTestStatus=`getSmartTestStatus.sh | awk '{print $1}'`
if [ "$standby_enable" == "enabled" ] && [ "$sleepcount" -eq "$standby_time" ] && [ "$smartTestStatus" != "inprogress" ]; then
touch /tmp/standby
#Added code try to fix 10 second wake up (12/14/17)
sync
sleep 5
enterStandbyTime=`date +%s`
echo "Enter standby"
if [ "$1" == "debug" ]; then
echo "`date`: Enter standby "
dmesg -c > /dev/null
fi
#Added code try to fix 10 second wake up (12/14/17)
sync
sleep 5
sync
sleep 5
sync
sleep 5
for i in ${drivelist[@]}; do
hdparm -y $i >/dev/null
done
# turn on solid blue if applicable
ledCtrl.sh LED_EV_DISK_STBY LED_STAT_IN_PROG
sleep 5
break
fi
done
I think all it has done is turn the 7 seconds to 20 seconds.
12 14 17:59:27 17:59:57 25 0:00:25
12 14 18:10:09 18:15:34 320 0:05:20
12 14 18:47:12 18:47:43 26 0:00:26
12 14 18:57:55 18:58:25 25 0:00:25
12 14 19:08:37 19:09:07 25 0:00:25
12 14 19:19:20 19:19:50 25 0:00:25
12 14 19:30:03 19:30:42 34 0:00:34
12 14 19:56:15 19:56:46 25 0:00:25
12 14 20:25:48 20:26:22 25 0:00:25
12 14 20:36:34 20:45:09 510 0:08:30
12 14 21:12:41 21:13:12 26 0:00:26
12 14 22:05:16 22:05:46 25 0:00:25