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

[RHEL10.0] lvm2 can miss to recognize active LV

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

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • rhel-10.0
    • None
    • lvm2
    • None
    • lvm2-2.03.28-6.el10
    • Yes
    • Important
    • rhel-storage-lvm
    • ssg_platform_storage
    • 24
    • 26
    • 5
    • QE ack, Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • All
    • None

      lvm2 is caching state  active DM entries. However when there was a change of active DM devices from the moment  of 1st. scanning and grabbing the lock and before there was no active DM device - then the lvm2 was incorrectly decided to keep the cache.

      As a result it could have left some DM devices in table while dropping lvm2 metadata for such devices.

       

      To reach this case one could run in parallel this loop:

      1st. terminal:

      while true; do lvcreate -n lvol1 -l1 vg  || break; sleep 2; lvremove -y vg/lvol1  || break; done

      2nd. terminal:

      while true; do lvchange -ay vg/lvol1; sleep 1; lvchange -an vg/lvol1; sleep 1; done

              cmarthal@redhat.com Corey Marthaler
              zkabelac@redhat.com Zdenek Kabelac
              lvm-team lvm-team
              Cluster QE Cluster QE
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: