Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-95884

[Epic]: fix: Fix getting PVs from raid_disks for RAID LVs

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • [Epic]: fix: Fix getting PVs from raid_disks for RAID LVs
    • Low
    • Red Hat Enterprise Linux
    • 25% To Do, 25% In Progress, 50% Done
    • rhel-sst-system-roles
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Dev ack
    • Bug Fix
    • Hide
      Currently the code expects the disks specified in raid_disks are parent devices of the PVs we are going to use to allocate the RAID LVs. This might not be true in several cases, for example if the VG is encrypted (the LUKS device introduces a new layer in the storage stack) or if partitions are not used (the disk is then the PV and doesn't have a parent). This fix also allows user to specify the PV partition instead of the underlying disk.

      ## Summary by Sourcery

      Improve PV resolution in LVM RAID to support encrypted and partitioned devices and add corresponding tests

      Bug Fixes:
      - Fix PV detection for raid_disks entries to handle encrypted LUKS layers and direct partitions

      Enhancements:
      - Add error handling for missing or invalid raid_disks entries

      Tests:
      - Add tests for creating and removing LVM RAID devices on encrypted volume groups
      Show
      Currently the code expects the disks specified in raid_disks are parent devices of the PVs we are going to use to allocate the RAID LVs. This might not be true in several cases, for example if the VG is encrypted (the LUKS device introduces a new layer in the storage stack) or if partitions are not used (the disk is then the PV and doesn't have a parent). This fix also allows user to specify the PV partition instead of the underlying disk. ## Summary by Sourcery Improve PV resolution in LVM RAID to support encrypted and partitioned devices and add corresponding tests Bug Fixes: - Fix PV detection for raid_disks entries to handle encrypted LUKS layers and direct partitions Enhancements: - Add error handling for missing or invalid raid_disks entries Tests: - Add tests for creating and removing LVM RAID devices on encrypted volume groups
    • Proposed
    • Unspecified
    • Unspecified
    • Unspecified

      Currently the code expects the disks specified in raid_disks are parent devices of the PVs we are going to use to allocate the RAID LVs. This might not be true in several cases, for example if the VG is encrypted (the LUKS device introduces a new layer in the storage stack) or if partitions are not used (the disk is then the PV and doesn't have a parent). This fix also allows user to specify the PV partition instead of the underlying disk.

        1. Summary by Sourcery

      Improve PV resolution in LVM RAID to support encrypted and partitioned devices and add corresponding tests

      Bug Fixes:

      • Fix PV detection for raid_disks entries to handle encrypted LUKS layers and direct partitions

      Enhancements:

      • Add error handling for missing or invalid raid_disks entries

      Tests:

      • Add tests for creating and removing LVM RAID devices on encrypted volume groups

              rmeggins@redhat.com Richard Megginson
              rmeggins@redhat.com Richard Megginson
              Richard Megginson Richard Megginson
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: