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 1148960

Summary: exclusively activated stacked snaps on clustered VGs can have problems being deactivated
Product: Red Hat Enterprise Linux 6 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
lvm2 sub component: Snapshots (RHEL6) QA Contact: cluster-qe <cluster-qe>
Status: CLOSED WONTFIX Docs Contact:
Severity: low    
Priority: unspecified CC: agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, zkabelac
Version: 6.6   
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: 2017-12-06 12:19:27 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:

Description Corey Marthaler 2014-10-02 18:28:16 UTC
Description of problem:

[root@taft-01 ~]# cman_tool nodes
Node  Sts   Inc   Joined               Name
   1   M    332   2014-10-01 16:50:04  taft-01
   2   M    344   2014-10-01 16:50:04  taft-02
   4   M    344   2014-10-01 16:50:04  taft-04

[root@taft-01 ~]# cman_tool services
fence domain
member count  3
victim count  0
victim now    0
master nodeid 2
wait state    none
members       1 2 4 

dlm lockspaces
name          clvmd
id            0x4104eefa
flags         0x00000000 
change        member 3 joined 1 remove 0 failed 0 seq 3,3
members       1 2 4 

[root@taft-01 ~]# lvs
  LV          VG            Attr       LSize  Pool Origin Data%  Meta%
  POOL        snapper_thinp twi-a-tz--  1.00g             0.00   0.07
  origin      snapper_thinp Vwi-a-tz--  1.00g POOL        0.00
  other1      snapper_thinp Vwi-a-tz--  1.00g POOL        0.00
  other2      snapper_thinp Vwi-a-tz--  1.00g POOL        0.00
  other3      snapper_thinp Vwi-a-tz--  1.00g POOL        0.00
  other4      snapper_thinp Vwi-a-tz--  1.00g POOL        0.00
  other5      snapper_thinp Vwi-a-tz--  1.00g POOL        0.00
  snap_level1 snapper_thinp Vwi-a-tz-k  1.00g POOL origin 0.00

[root@taft-01 ~]# pvcreate /dev/snapper_thinp/origin
  Physical volume "/dev/snapper_thinp/origin" successfully created

[root@taft-01 ~]# vgcreate snapper_thinp_stack /dev/snapper_thinp/origin
  Clustered volume group "snapper_thinp_stack" successfully created

[root@taft-01 ~]# vgs
  VG                  #PV #LV #SN Attr   VSize    VFree   
  snapper_thinp         5   8   0 wz--nc    1.22t    1.22t
  snapper_thinp_stack   1   0   0 wz--nc 1020.00m 1020.00m

[root@taft-01 ~]# lvcreate --activate ey -L 100M snapper_thinp_stack -n origin
  Logical volume "origin" created

[root@taft-01 ~]# lvcreate --activate ey -s /dev/snapper_thinp_stack/origin -n snap_level2 -L 50M
  Rounding up size to full physical extent 52.00 MiB
  Logical volume "snap_level2" created

[root@taft-01 ~]# lvs -a -o +devices
  LV              VG                  Attr       LSize   Pool Origin Data%  Meta% Devices
  POOL            snapper_thinp       twi-a-tz--   1.00g             0.02   0.07  POOL_tdata(0)
  [POOL_tdata]    snapper_thinp       Twi-ao----   1.00g                          /dev/mapper/mpathdp1(25)
  [POOL_tmeta]    snapper_thinp       ewi-ao---- 100.00m                          /dev/mapper/mpathbp1(0)
  [lvol0_pmspare] snapper_thinp       ewi------- 100.00m                          /dev/mapper/mpathdp1(0)
  origin          snapper_thinp       Vwi-aotz--   1.00g POOL        0.02
  other1          snapper_thinp       Vwi-a-tz--   1.00g POOL        0.00
  other2          snapper_thinp       Vwi-a-tz--   1.00g POOL        0.00
  other3          snapper_thinp       Vwi-a-tz--   1.00g POOL        0.00
  other4          snapper_thinp       Vwi-a-tz--   1.00g POOL        0.00
  other5          snapper_thinp       Vwi-a-tz--   1.00g POOL        0.00
  snap_level1     snapper_thinp       Vwi-a-tz-k   1.00g POOL origin 0.00
  origin          snapper_thinp_stack owi-a-s--- 100.00m                          /dev/snapper_thinp/origin(0)
  snap_level2     snapper_thinp_stack swi-a-s---  52.00m      origin 0.00         /dev/snapper_thinp/origin(25)

[root@taft-01 ~]# lvremove -f /dev/snapper_thinp_stack/snap_level2
  Error locking on node taft-02: Volume group for uuid not found: C7vDhMN3hS4NcClkLz8efCTv2Dyw3WgZBm1IfZ4ZKm7kQwkqx1jW5ecLccp1yDI2
  Error locking on node taft-04: Volume group for uuid not found: C7vDhMN3hS4NcClkLz8efCTv2Dyw3WgZBm1IfZ4ZKm7kQwkqx1jW5ecLccp1yDI2
  Failed to activate snap_level2.
  Releasing activation in critical section.
[root@taft-01 ~]# echo $?
5

# Works now with a deactivation of the origin volume
[root@taft-01 ~]# lvchange -an snapper_thinp_stack/origin
[root@taft-01 ~]# lvremove -f /dev/snapper_thinp_stack/snap_level2
  Logical volume "snap_level2" successfully removed


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

Comment 6 Jan Kurik 2017-12-06 12:19:27 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/