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

Prevent udev waking up mdadm later. #539

Merged
merged 1 commit into from Jan 27, 2015
Merged

Prevent udev waking up mdadm later. #539

merged 1 commit into from Jan 27, 2015

Conversation

jsmeix
Copy link
Member

@jsmeix jsmeix commented Jan 27, 2015

Reasoning: At least on RHEL6 when parted created a raid partition on disk,
udev (via /lib/udev/rules.d/65-md-incremental.rules) wakes up mdadm which locks the disk,
so further parted commands with the disk will fail since the disk is busy now.
The /lib/udev/rules.d/65-md-incremental.rules detects anaconda (the Red Hat installer),
and if it find itself running under anaconda, it will not run.
Accordingly also for other installers (in particular the rear installer)
this rule should not be there (and other Linux distros probably do not have it)
which means removing it is the right solution to make rear work also for RHEL6.
See #533

Reasoning: At least on RHEL6 when parted created a raid partition on disk,
udev (via /lib/udev/rules.d/65-md-incremental.rules) wakes up mdadm which locks the disk,
so further parted commands with the disk will fail since the disk is busy now.
The /lib/udev/rules.d/65-md-incremental.rules detects anaconda (the Red Hat installer),
and if it find itself running under anaconda, it will not run.
Accordingly also for other installers (in particular the rear installer)
this rule should not be there (and other Linux distros probably do not have it)
which means removing it is the right solution to make rear work also for RHEL6.
See #533
@gdha gdha added the enhancement Adaptions and new features label Jan 27, 2015
@gdha gdha added this to the Rear v1.17 milestone Jan 27, 2015
@gdha gdha self-assigned this Jan 27, 2015
gdha added a commit that referenced this pull request Jan 27, 2015
Prevent udev waking up mdadm later.
@gdha gdha merged commit a16f670 into rear:master Jan 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adaptions and new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants