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

incusd/storage/lvm: Tweak locking in cluster #515

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Conversation

stgraber
Copy link
Member

When using a clustered LVM setup and performing live migrations, the logical volumes must be mappable on both the source and target concurently.

This is usually a bad idea and having a volume in that mode also prevents a number of other LVM operations like making snapshots.

So rather than keeping all our VM related volumes in shared mode, let's instead only flip them into sharable mode as part of a migration and flip them back to exclusive mode as soon as possible.

When using a clustered LVM setup and performing live migrations, the
logical volumes must be mappable on both the source and target
concurently.

This is usually a bad idea and having a volume in that mode also
prevents a number of other LVM operations like making snapshots.

So rather than keeping all our VM related volumes in shared mode, let's
instead only flip them into sharable mode as part of a migration and
flip them back to exclusive mode as soon as possible.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants