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

fix: Fix getting PVs from raid_disks for RAID LVs

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: Generate New Ti...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • rhel-system-roles
    • 3
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • None
    • Bug Fix
    • Hide
      .LVM RAID now supports encrypted and partitioned devices
       
      Before this update, the LVM RAID code assumed that disks specified in `raid_disks` were the parent devices of the PVs for all LVM RAID setups. This was not applicable for encrypted or partitioned devices. As a consequence, errors occurred when encrypted LUKS layers added an extra storage layer, or when direct partitions were used without a parent device. With this release, PV resolution in LVM RAID is improved to support encrypted and partitioned devices. As a result, you can now specify the PV partition instead of the underlying disk.

      This fix also adds error handling for missing or invalid RAID disk entries and introduces corresponding tests to ensure stability.
      Show
      .LVM RAID now supports encrypted and partitioned devices   Before this update, the LVM RAID code assumed that disks specified in `raid_disks` were the parent devices of the PVs for all LVM RAID setups. This was not applicable for encrypted or partitioned devices. As a consequence, errors occurred when encrypted LUKS layers added an extra storage layer, or when direct partitions were used without a parent device. With this release, PV resolution in LVM RAID is improved to support encrypted and partitioned devices. As a result, you can now specify the PV partition instead of the underlying disk. This fix also adds error handling for missing or invalid RAID disk entries and introduces corresponding tests to ensure stability.
    • Done
    • Done
    • Done
    • Not Required
    • None

      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
              Angana Chakraborty Angana Chakraborty
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: