-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
[FEAT] Allow a delay or different schedules between multiple disks checks #706
Comments
Could probably just a matter of adding a |
Revisiting the code, I just realised there's a |
Hey @pabsi I'd be happy to consider a change like this, if its optional and configurable via the collector config yaml file. Can you open a PR? |
I can try :) As I said on the original post:
But I'll give it a go ;) |
@AnalogJ I can't raise a PR. GitHub threw me an error about not being a contributor. You can see what I did here: https://github.com/AnalogJ/scrutiny/compare/AnalogJ:master...pabsi:706-add-wait-time-between-checks?expand=1 The test for the collector ( Regards. |
Is your feature request related to a problem? Please describe.
The particular issue arises when running a smart check over multiple disks which are connected USB-to-SATA. In my specific case, I have the Quad SATA Hat for the Pi 4, meaning 4 sata disks are connected via 2 USB 3.0 ports. Sometimes when running the smart checks against all 4 drives at once, the USB connection gets reset, and this, in my case, makes the mdadm RAID array fail and mark the devices as failed, and thus removing them from the array. Not a real issue, since I can
--re-add
them later. But it's very inconvenient. Moreover if the smart checks are run daily. See example ofdmesg
logs:I also say "sometimes" because there are times that despite running the 4 drives checks at once, it doesn't disconnect them. But I also experienced more stability when running the smart checks one by one, disk by disk, with a certain delay (just a bunch of seconds normally does the job).
Describe the solution you'd like
A possible option would be to have some environment variable (e.g.
DELAY_BETWEEN_DISK_CHECKS
or whatever, naming is hard). Another option would be to offer a schedule per drive, but I think this would be way more engineering for perhaps a very specific problem not everyone has.I would do it myself, but unfortunately I am not savvy enough on Go :(
Additional context
N/A
Other notes
Thank you so much for your work. Really appreciate it 🥇
The text was updated successfully, but these errors were encountered: