Skip to content

mdcheck workaround #159

Merged
merged 5 commits into from
Mar 12, 2021
Merged

mdcheck workaround #159

merged 5 commits into from
Mar 12, 2021

Conversation

donald
Copy link
Collaborator

@donald donald commented Mar 11, 2021

Add "mdcheck" variant which might prevent the check->idle transition deadlock to happen.

Trivial unrelated cosmetic change to installer.

Import existing /usr/bin/mdcheck (from mdadm bee package) into
repository as mdcheck.safe.
Sometimes, when the check is paused by setting sync_action to "idle",
the array deadlocks. It can be continued by setting array_state to
active.

If it takes more 10 seconds to set the sync_action to idle and the array
state is write-pending, then try to continue the array by setting its
state to active.
Use variant of mdcheck which is supposed to work arpound the "md_raid:
mdX_raid6 looping after sync_action "check" to "idle" transition" bug.
@donald
Copy link
Collaborator Author

donald commented Mar 11, 2021

Don't really know how to test this.

@donald
Copy link
Collaborator Author

donald commented Mar 12, 2021

I've tested the non-error case. The script correctly pauses the check and resumes it the next round.
Its would be difficult to test the failure case (raid blocked).
Maybe we should just try it out.

@donald donald requested a review from thomas March 12, 2021 12:23
@thomas
Copy link
Contributor

thomas commented Mar 12, 2021 via email

@donald
Copy link
Collaborator Author

donald commented Mar 12, 2021

Thanks. I think, I change it to 13. (Saturday, tomorrow) so if anything goes wrong, I can work all Sunday to clean the mess up before Monday.

Reenable montly check staring from the 13. of every month.
@donald donald merged commit 3187a78 into master Mar 12, 2021
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants