Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1149279

Summary: exclusive activation of lvol0_pmspare is not maintained after a pvmove of it's device
Product: Red Hat Enterprise Linux 7 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
lvm2 sub component: Thin Provisioning QA Contact: cluster-qe <cluster-qe>
Status: CLOSED WONTFIX Docs Contact:
Severity: medium    
Priority: low CC: agk, heinzm, jbrassow, msnitzer, prajnoha, thornber, zkabelac
Version: 7.3Keywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-15 07:31:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1119323    

Description Corey Marthaler 2014-10-03 16:08:24 UTC
Description of problem:

[root@taft-01 ~]# vgcreate cluster /dev/mapper/mpath[abcdefgh]p*
  Clustered volume group "cluster" successfully created

[root@taft-01 ~]# pvscan
  PV /dev/mapper/mpathap1   VG cluster     lvm2 [249.99 GiB / 249.99 GiB free]
  PV /dev/mapper/mpathbp1   VG cluster     lvm2 [249.99 GiB / 249.99 GiB free]
  PV /dev/mapper/mpathcp1   VG cluster     lvm2 [249.99 GiB / 249.99 GiB free]
  PV /dev/mapper/mpathdp1   VG cluster     lvm2 [249.99 GiB / 249.99 GiB free]
  PV /dev/mapper/mpathep1   VG cluster     lvm2 [249.99 GiB / 249.99 GiB free]
  PV /dev/mapper/mpathfp1   VG cluster     lvm2 [249.99 GiB / 249.99 GiB free]
  PV /dev/mapper/mpathgp1   VG cluster     lvm2 [249.99 GiB / 249.99 GiB free]
  PV /dev/mapper/mpathhp1   VG cluster     lvm2 [249.99 GiB / 249.99 GiB free]

[root@taft-01 ~]# lvcreate --activate ey --thinpool POOL  --zero n -L 4G --poolmetadatasize 100M cluster
  Logical volume "lvol0" created
  Logical volume "POOL" created

[root@taft-01 ~]# lvs -a -o +devices
  LV              VG       Attr       LSize   Pool Origin Data%  Meta% Devices
  POOL            cluster  twi-a-t---   4.00g             0.00   0.05  POOL_tdata(0)
  [POOL_tdata]    cluster  Twi-ao----   4.00g                          /dev/mapper/mpathap1(25)
  [POOL_tmeta]    cluster  ewi-ao---- 100.00m                          /dev/mapper/mpathhp1(0)
  [lvol0_pmspare] cluster  ewi------- 100.00m                          /dev/mapper/mpathap1(0)

[root@taft-01 ~]# lvcreate --activate ey --virtualsize 1G -T cluster/POOL -n origin
  Logical volume "origin" created

[root@taft-01 ~]# lvs -a -o +devices
  LV              VG       Attr       LSize   Pool Origin Data%  Meta% Devices
  POOL            cluster  twi-a-t---   4.00g             0.00   0.06  POOL_tdata(0)
  [POOL_tdata]    cluster  Twi-ao----   4.00g                          /dev/mapper/mpathap1(25)
  [POOL_tmeta]    cluster  ewi-ao---- 100.00m                          /dev/mapper/mpathhp1(0)
  [lvol0_pmspare] cluster  ewi------- 100.00m                          /dev/mapper/mpathap1(0)
  origin          cluster  Vwi-a-t---   1.00g POOL        0.01                                 

[root@taft-01 ~]# lvcreate --activate ey -K -s /dev/cluster/origin -n snap1
  Logical volume "snap1" created

[root@taft-01 ~]# lvs -a -o +devices
  LV              VG       Attr       LSize   Pool Origin Data%  Meta% Devices
  POOL            cluster  twi-a-t---   4.00g             0.00   0.06  POOL_tdata(0)
  [POOL_tdata]    cluster  Twi-ao----   4.00g                          /dev/mapper/mpathap1(25)
  [POOL_tmeta]    cluster  ewi-ao---- 100.00m                          /dev/mapper/mpathhp1(0)
  [lvol0_pmspare] cluster  ewi------- 100.00m                          /dev/mapper/mpathap1(0)
  origin          cluster  Vwi-a-t---   1.00g POOL        0.01
  snap1           cluster  Vwi-a-t--k   1.00g POOL origin 0.01

[root@taft-01 ~]# lvs -a -o +devices
  LV              VG       Attr       LSize   Pool Origin Data%  Meta% Devices
  POOL            cluster  twi-a-t---   4.00g             0.00   0.06  POOL_tdata(0)
  [POOL_tdata]    cluster  Twi-ao----   4.00g                          /dev/mapper/mpathap1(25)
  [POOL_tmeta]    cluster  ewi-ao---- 100.00m                          /dev/mapper/mpathhp1(0)
  [lvol0_pmspare] cluster  ewi------- 100.00m                          /dev/mapper/mpathap1(0)
  origin          cluster  Vwi-a-t---   1.00g POOL        0.01
  snap1           cluster  Vwi-a-t--k   1.00g POOL origin 0.01

[root@taft-01 ~]# pvmove /dev/mapper/mpathap1
  Skipping thin-pool LV POOL
  Skipping thin-related LV POOL_tdata
  /dev/mapper/mpathap1: Moved: 8.0%
  /dev/mapper/mpathap1: Moved: 100.0%

# after pvmove, lvol0_pmspare is now activate on all nodes in the cluster

[root@taft-01 ~]# lvs -a -o +devices
  LV              VG       Attr       LSize   Pool Origin Data%  Meta% Devices
  POOL            cluster  twi-a-t---   4.00g             0.00   0.06  POOL_tdata(0)
  [POOL_tdata]    cluster  Twi-ao----   4.00g                          /dev/mapper/mpathap1(25)
  [POOL_tmeta]    cluster  ewi-ao---- 100.00m                          /dev/mapper/mpathhp1(0)
  [lvol0_pmspare] cluster  ewi-a----- 100.00m                          /dev/mapper/mpathbp1(0)
  origin          cluster  Vwi-a-t---   1.00g POOL        0.01
  snap1           cluster  Vwi-a-t--k   1.00g POOL origin 0.01

[root@taft-02 ~]# lvs -a -o +devices
  LV              VG       Attr       LSize   Pool Origin Data%  Meta% Devices
  POOL            cluster  twi---t---   4.00g                          POOL_tdata(0)
  [POOL_tdata]    cluster  Twi-------   4.00g                          /dev/mapper/mpathbp1(25)
  [POOL_tmeta]    cluster  ewi------- 100.00m                          /dev/mapper/mpathfp1(0)
  [lvol0_pmspare] cluster  ewi-a----- 100.00m                          /dev/mapper/mpathep1(0)
  origin          cluster  Vwi---t---   1.00g POOL
  snap1           cluster  Vwi---t--k   1.00g POOL origin

[root@taft-04 ~]# lvs -a -o +devices
  LV              VG       Attr       LSize   Pool Origin Data%  Meta% Devices
  POOL            cluster  twi---t---   4.00g                          POOL_tdata(0)
  [POOL_tdata]    cluster  Twi-------   4.00g                          /dev/mapper/mpathhp1(25)
  [POOL_tmeta]    cluster  ewi------- 100.00m                          /dev/mapper/mpathdp1(0)
  [lvol0_pmspare] cluster  ewi-a----- 100.00m                          /dev/mapper/mpathbp1(0)
  origin          cluster  Vwi---t---   1.00g POOL
  snap1           cluster  Vwi---t--k   1.00g POOL origin


Version-Release number of selected component (if applicable):
2.6.32-502.el6.x86_64
lvm2-2.02.111-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
lvm2-libs-2.02.111-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
lvm2-cluster-2.02.111-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
udev-147-2.57.el6    BUILT: Thu Jul 24 08:48:47 CDT 2014
device-mapper-1.02.90-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
device-mapper-libs-1.02.90-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
device-mapper-event-1.02.90-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
device-mapper-event-libs-1.02.90-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
device-mapper-persistent-data-0.3.2-1.el6    BUILT: Fri Apr  4 08:43:06 CDT 2014
cmirror-2.02.111-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014


How reproducible:
Everytime

Comment 6 RHEL Program Management 2020-12-15 07:31:25 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.