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

aii 21.12: partition wiping doesn't work the first time #332

Open
jouvin opened this issue Mar 23, 2022 · 2 comments
Open

aii 21.12: partition wiping doesn't work the first time #332

jouvin opened this issue Mar 23, 2022 · 2 comments

Comments

@jouvin
Copy link
Contributor

jouvin commented Mar 23, 2022

Not sure if the problem as ever solved, I have the feeling that yes. In a recent EL7 install, the first resinstallation of a machine that had a system disk with several partitions and LVM volumes in one of them, the first partition wiping/creation doesn't work: the test for the last partition (the partition which had the LVM volumes) never succeeds and the partition creation is retried indefinitely. Restarting the installation fixes the problem.

@gombasg
Copy link
Contributor

gombasg commented Mar 24, 2022

Disk wiping is an ugly business. If you delete and re-create a partition which had an LVM volume inside, then the default udev rules will trigger activating the LVM volume, and this activation races with AII trying to remove the LVM signature. AII tries to de-activate the LVM device, but if that does not succeed, then all bets are off. If you still have the logs, check if "dmsetup remove" printed anything.

@jouvin
Copy link
Contributor Author

jouvin commented Mar 24, 2022

@gombasg thanks for your answer. I was suspecting something like this but next time I'll try to look more carefull at what dmsetpu did...

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

No branches or pull requests

2 participants