Lothar Posted November 8, 2018 Share Posted November 8, 2018 I have been unable to get the custom schedule to work for the parity check on both of my servers. I would like it to run the first Monday of every other month at 02:00. This is how I set it - Custom, Monday, First week, 02:00, Jan-Mar-May-Etc. With these settings applied it will run every single Monday. What am I missing? Quote Link to comment
Squid Posted November 8, 2018 Share Posted November 8, 2018 Known issue in 6.6.3 6.6.4 was supposed to fix it, but also has a glitch regarding scheduling of things. Wait until 6.6.5 due shortly. Quote Link to comment
Lothar Posted November 9, 2018 Author Share Posted November 9, 2018 19 hours ago, Squid said: Known issue in 6.6.3 6.6.4 was supposed to fix it, but also has a glitch regarding scheduling of things. Wait until 6.6.5 due shortly. Thank you. Quote Link to comment
Kristijan Posted April 8, 2019 Share Posted April 8, 2019 Hi I have version 6.6.7 but custom schedule not working. Is there any fix? Quote Link to comment
itimpi Posted April 8, 2019 Share Posted April 8, 2019 2 hours ago, Kristijan said: Hi I have version 6.6.7 but custom schedule not working. Is there any fix? It might be worth providing a screen shot of the settings page to see if we can spot what might be wrong. I did not think there was any known problem in that area on the release you mention. Quote Link to comment
Kristijan Posted April 8, 2019 Share Posted April 8, 2019 6 hours ago, itimpi said: It might be worth providing a screen shot of the settings page to see if we can spot what might be wrong. I did not think there was any known problem in that area on the release you mention. My setting. I setup first Saturday everi 2 month. Parity check not start never on schedule. Quote Link to comment
itimpi Posted April 8, 2019 Share Posted April 8, 2019 I must admit that looks correct. You might want to see if the entry in /etc/cron.d/root looks correct? Quote Link to comment
Kristijan Posted April 8, 2019 Share Posted April 8, 2019 46 minutes ago, itimpi said: I must admit that looks correct. You might want to see if the entry in /etc/cron.d/root looks correct? This is my cron.d. Quote Link to comment
remotevisitor Posted April 8, 2019 Share Posted April 8, 2019 My understanding of the crontab entry the parity check entry is set to run on the 1st to 7th of the month and each Saturday; It is not the 1st Saturday of the month. Quote Link to comment
Squid Posted April 8, 2019 Share Posted April 8, 2019 41 minutes ago, Kristijan said: This is my cron.d. Make a change, any change to the schedule, then revert it. That looks like the old version of the entry which does not work correctly. Quote Link to comment
Kristijan Posted April 9, 2019 Share Posted April 9, 2019 6 hours ago, Squid said: Make a change, any change to the schedule, then revert it. That looks like the old version of the entry which does not work correctly. I try before make a change, frst week, last week, but parity check never start. Quote Link to comment
itimpi Posted April 9, 2019 Share Posted April 9, 2019 (edited) 2 hours ago, Kristijan said: I try before make a change, frst week, last week, but parity check never start. Your entry looks at first glance like it should work, but with your settings my entry reads # Generated parity check schedule: 0 0 * 2,4,6,8,10,12 6 [[ $(date +%e) -le 7 ]] && /usr/local/sbin/mdcmd check &> /dev/null || : which is slightly different to yours. I am 6.7 rc7 so that may explain the difference, but why it seems to need '*' in the third field and the check for Saturday moved to the executed command I am not sure. I guess it could be a bug or limitation in the crond daemon? Edited April 9, 2019 by itimpi Quote Link to comment
Kristijan Posted April 9, 2019 Share Posted April 9, 2019 (edited) What mean &> /dev/null || : ? Edited April 9, 2019 by Kristijan Quote Link to comment
itimpi Posted April 9, 2019 Share Posted April 9, 2019 (edited) 32 minutes ago, Kristijan said: What mean &> /dev/null || : ? That is used to discard any console output from the command and to avoid raising an error which might result in an attempt to send an email. It is a standard Linux/Unix technique when running commands in the background. Edited April 9, 2019 by itimpi Quote Link to comment
Kristijan Posted April 9, 2019 Share Posted April 9, 2019 1 hour ago, itimpi said: That is used to discard any console output from the command and to avoid raising an error which might result in an attempt to send an email. It is a standard Linux/Unix technique when running commands in the background. Ok tnx. But other command don't have ||. This is difference. Quote Link to comment
itimpi Posted April 9, 2019 Share Posted April 9, 2019 (edited) 3 minutes ago, Kristijan said: Ok tnx. But other command don't have ||. This is difference. I think that is the part that discards the error return code from the command. Any script that is known to only return 0 as the return code would not need it. Edited April 9, 2019 by itimpi Quote Link to comment
Kristijan Posted April 9, 2019 Share Posted April 9, 2019 (edited) 13 minutes ago, itimpi said: I think that is the part that discards the error return code from the command. Any script that is known to only return 0 as the return code would not need it. OK, tnx everything clear (how script know to send mail if on end have &> /dev/null || : ), but I don't understand why my scheduler not working, this cron is automaticaly created. I will wait new stable release Edited April 9, 2019 by Kristijan Quote Link to comment
lemoncurry Posted May 28, 2019 Share Posted May 28, 2019 (edited) On 4/8/2019 at 9:39 PM, Kristijan said: Hi I have version 6.6.7 but custom schedule not working. Is there any fix? I also could not set Scheduled Parity Check, using 6.6.7, Upon [save] it showed as "disabled". Also could not map network shares in windows while Parity check was running. . Reboot fixed this. Actually, given the number of times a reboot has fixed the odd issue my unraid box has had over the years, perhaps a "Reboot" section is needed on the Scheduler page.? Edited May 28, 2019 by lemoncurry 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.