nraygun Posted November 17, 2019 Author Share Posted November 17, 2019 (edited) No error! I see the scripts ran at the times I expected, this morning at 1am and 1:15am. I won't know if this is the final solution until I get more days with no errors. However, if this happens to be the solution, why wouldn't my wakeup script cause the error too? Afterall, the drive is probably sleeping prior to it running like before the backup script runs. Maybe the backup script does a read or a write when the drive is sleeping that the wakeup script is not doing. I think my script is doing a read. The first thing the backup script does is start a VM which acts like a sort of activity monitor (I start a dummy VM called scripts at the start and then end this VM at the end of script so I can see from the dashboard if the scripts are running). Stay tuned. Edited November 18, 2019 by nraygun Quote Link to comment
nraygun Posted November 18, 2019 Author Share Posted November 18, 2019 Woohoo! No errors! None on Sunday and none this morning. Will continue to monitor. Quote Link to comment
nraygun Posted November 19, 2019 Author Share Posted November 19, 2019 Day 3 - all good! I'm going to turn on spin down so the array spins down after an hour and see if this still works. Quote Link to comment
nraygun Posted November 20, 2019 Author Share Posted November 20, 2019 Day 4 and no errors! This is the longest I've gone with no errors on the backup drive. I think I'm going to call this the solution. I also turned spin down back on. Lesson learned here is that the spin down setting doesn't appear to affect the unassigned drives. Thank you @johnnie.black for the help with this and keeping me on the track of this all being related to spin down! Quote Link to comment
cbr600ds2 Posted January 2, 2020 Share Posted January 2, 2020 On 8/29/2019 at 10:35 PM, nraygun said: [SOLVED] Added a script to wake up the unassigned backup drive 15 minutes before the backup script runs. The script is as follows. The "Default spin down delay" setting in "Drive Settings" does not appear to work on unassigned disks. #!/bin/bash dd if=/dev/sdc bs=4096 count=1 of=/dev/null iflag=direct You just put this in user scripts and specify the time? Quote Link to comment
nraygun Posted January 2, 2020 Author Share Posted January 2, 2020 Yes. Just make sure it's before your backup script. I suppose you could just add the one line to your backup script and put a sleep in there for 15 minutes too. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.