quattor / aii

Automated Installation Infrastructure
www.quattor.org
Apache License 2.0
7 stars 16 forks source link

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

Open jouvin opened 2 years ago

jouvin commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

@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...