Improve logical volume activation and status handling (b2.1 port)#987
Merged
cgalibern merged 7 commits intoopensvc:mainfrom Mar 5, 2026
Merged
Improve logical volume activation and status handling (b2.1 port)#987cgalibern merged 7 commits intoopensvc:mainfrom
cgalibern merged 7 commits intoopensvc:mainfrom
Conversation
…prove consistency
…ry retrieval - Introduced `LVSummary` struct for summarizing logical volume information. - Implemented `LVInfos`, `GetLVSummary`, and `NeedActivate` methods for processing and querying logical volume data.
… resource is defined Services that do not define any disk.type=lv resources require vgchange -a y to activate their volume groups. Startup logic now checks NeedActivate and invokes Activate() when necessary.
…ated Added verification in the status check to log a warning if some logical volumes are not activated.
…ME definition Signed-off-by: Cyril Galibern <cyril.galibern@opensvc.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request includes several key improvements and fixes related to logical volume management:
disk.type=lvresources were defined, ensuringvgchange -a yis invoked when needed.LVSummarystruct with methods for summarizing and processing logical volume information, includingNeedActivate.ActiveLVstoActiveLVDevicesfor improved clarity and readability.Additionally, the CHANGELOG has been updated to reflect these changes and to use
om3syntax for key-related commands.