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

Proposal: changing lvremove behavior #86

Closed
wants to merge 1 commit into from

Conversation

apocas
Copy link
Contributor

@apocas apocas commented Mar 2, 2016

PROPOSAL:
lvremove -f can lead to race conditions at udev making all the lvm commands to hang indefinitely.

Nowadays lvm defaults to retry_deactivation = 1 at lvm.conf, which lvremove uses and theoretically should mitigate this.
However I recently had issues even with retry_deactivation.

Probably a safer bet is to deactivate the volume before removing it, if the deactivation fails the removal process should fail.
This way even if the -f behavior change in the future we will be OK.

In OpenNebula's lvm use case this shouldn't have side effects, however feedback is needed on this.

@rsmontero
Copy link
Member

Hi Pedro

Thanks for this !!!! we are going to merge this together with your contribution to get rid of cLVM in pull request #72

Cheers

@ccesario
Copy link
Contributor

Nice PR, this fix my problem related to Instance remove process when using fs_lvm.
The instance is removed, but the Logical volume remain, then it is needed remove Logical volume manually. With this patch, the Instance and Logical Volumes are removed as expected.

@stale
Copy link

stale bot commented Mar 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. The OpenNebula Dev Team

@rsmontero
Copy link
Member

Seems this is no longer needed

@rsmontero rsmontero closed this Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants