Skip to content

Improve logical volume activation and status handling (b2.1 port)#987

Merged
cgalibern merged 7 commits intoopensvc:mainfrom
cgalibern:dev
Mar 5, 2026
Merged

Improve logical volume activation and status handling (b2.1 port)#987
cgalibern merged 7 commits intoopensvc:mainfrom
cgalibern:dev

Conversation

@cgalibern
Copy link
Contributor

@cgalibern cgalibern commented Feb 27, 2026

Summary

This pull request includes several key improvements and fixes related to logical volume management:

  • Added a status log warning for cases where not all logical volumes are activated.
  • Fixed an issue where volume activation during startup was skipped when no disk.type=lv resources were defined, ensuring vgchange -a y is invoked when needed.
  • Introduced the LVSummary struct with methods for summarizing and processing logical volume information, including NeedActivate.
  • Refactored the Fully Qualified Name (FQN) receiver to use a pointer for consistency with Volume Group (VG) methods.
  • Renamed ActiveLVs to ActiveLVDevices for improved clarity and readability.

Additionally, the CHANGELOG has been updated to reflect these changes and to use om3 syntax for key-related commands.

…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.
@cgalibern cgalibern closed this Feb 27, 2026
@cgalibern cgalibern reopened this Feb 27, 2026
@cgalibern cgalibern closed this Feb 27, 2026
@cgalibern cgalibern reopened this Feb 27, 2026
…ME definition

Signed-off-by: Cyril Galibern <cyril.galibern@opensvc.com>
@cgalibern cgalibern merged commit 835d9da into opensvc:main Mar 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants