Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parity Check does not include a day of month #1426

Open
masterwishx opened this issue Sep 9, 2023 · 5 comments
Open

Parity Check does not include a day of month #1426

masterwishx opened this issue Sep 9, 2023 · 5 comments

Comments

@masterwishx
Copy link

how i can setup check parity in Unraid - '0 0 1 */3 *' every 3 month on 1 day 0:00?

if i set custom i can select months , but no day of month select , only weeks :

i can manually add (0 0 1 */3 *) to parity-check.cron , but not shure it will work it not shown right in webGUI ...

image

@SimonFair
Copy link
Contributor

You can specify the day and the which week in the month.

This runs on the 4th Sunday in the month.

image

@masterwishx
Copy link
Author

Yes, but can't set 1day of month every 3 months.

If I set Sunday of first week, but in first week no Sunday this month?
For example month starting at Friday at 1day...
Can I set manually (0 0 1 */3 *) in parity-check. cron?
Strange that this option not available in WebGUI.

@SimonFair
Copy link
Contributor

You should be able to edit.

root@computenode:~# cat /boot/config/plugins/dynamix/parity-check.cron

Generated parity check schedule:

0 0 * 1,4,7,10 0 [[ $(date +%e) -le 7 ]] && /usr/local/sbin/mdcmd check NOCORRECT &> /dev/null || :

and then run update_cron. But not sure how it will show in gui.

@masterwishx
Copy link
Author

I tryed (0 0 1 */3 *) it shows like every 1day of every month...
you think (0 0 1 */3 *) this will not work? If it use cron at all.
I need use your example?

@SimonFair
Copy link
Contributor

No it was just a example of the format.

So you could create /boot/config/plugins/dynamix/custom-parity-check.cron

0 0 1 */3 * /usr/local/sbin/mdcmd check &> /dev/null

once created run update_cron

It should put this entry into /etc/cron.d/root

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants