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 596260

Summary: clvmd segfaults after restart using "-S" to restart
Product: Red Hat Enterprise Linux 6 Reporter: Milan Broz <mbroz>
Component: lvm2Assignee: Milan Broz <mbroz>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Marthaler <cmarthal>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: agk, ccaulfie, dwysocha, heinzm, jbrassow, joe.thornber, mbroz, prajnoha, prockai, pvrabec
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: lvm2-2.02.68-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 21:07:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Milan Broz 2010-05-26 13:34:36 UTC
sigh, never press enter on wrong place...

Run clvmd -S, then any command using lock - here pvs.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6ec9b70 (LWP 2320)]
0x08082283 in check_lvm1_vg_inactive (cmd=0x0, vgname=0x9a9a9b3 "P_#global") at locking/locking.c:332
332             if (strncmp(cmd->kernel_vsn, "2.4.", 4))
(gdb) bt
#0  0x08082283 in check_lvm1_vg_inactive (cmd=0x0, vgname=0x9a9a9b3 "P_#global") at locking/locking.c:332
#1  0x080586c8 in do_check_lvm1 (vgname=0x9a9a9b3 "P_#global") at lvm-functions.c:619
#2  0x08053c82 in do_command (client=0x0, msg=0x9a9a9a0, msglen=30, buf=0xb6ec90e8, buflen=1481, retlen=0xb6ec90e4)
    at clvmd-command.c:127
#3  0x08057656 in process_remote_command (msg=0x9a9a9a0, msglen=30, fd=6, csid=0x9a9ab28 "\001") at clvmd.c:1384
#4  0x08057ae8 in process_work_item (arg=0xbf9d6478) at clvmd.c:1845
#5  lvm_thread_fn (arg=0xbf9d6478) at clvmd.c:1890
#6  0x00116919 in start_thread () from /lib/libpthread.so.0
#7  0x00208e1e in clone () from /lib/libc.so.6

Comment 2 Milan Broz 2010-05-26 13:40:08 UTC
I mean this is enough to reproduce:

# clvmd -S
# pvs
  EOF reading CLVMD
  Unable to obtain global lock.

Comment 4 RHEL Program Management 2010-05-26 13:57:57 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 6 Milan Broz 2010-06-07 13:18:04 UTC
This one should be fixed upstream, POST for now.

Comment 7 Corey Marthaler 2010-06-29 20:40:18 UTC
Fix verified in the following build:

lvm2-2.02.68-1.el6    BUILT: Thu Jun 24 10:38:40 CDT 2010
lvm2-libs-2.02.68-1.el6    BUILT: Thu Jun 24 10:38:40 CDT 2010
lvm2-cluster-2.02.68-1.el6    BUILT: Thu Jun 24 10:38:40 CDT 2010
udev-147-2.18.el6    BUILT: Fri Jun 11 07:47:21 CDT 2010
device-mapper-1.02.50-1.el6    BUILT: Thu Jun 24 10:38:40 CDT 2010
device-mapper-libs-1.02.50-1.el6    BUILT: Thu Jun 24 10:38:40 CDT 2010
device-mapper-event-1.02.50-1.el6    BUILT: Thu Jun 24 10:38:40 CDT 2010
device-mapper-event-libs-1.02.50-1.el6    BUILT: Thu Jun 24 10:38:40 CDT 2010
cmirror-2.02.68-1.el6    BUILT: Thu Jun 24 10:38:40 CDT 2010

[root@taft-01 ~]# clvmd -S
[root@taft-01 ~]# pvs
  PV         VG        Fmt  Attr PSize   PFree  
  /dev/sda2  vg_taft01 lvm2 a-    67.75g      0 
  /dev/sdb1            lvm2 a-   135.67g 135.67g
  /dev/sdc1            lvm2 a-   135.67g 135.67g
  /dev/sdd1            lvm2 a-   135.67g 135.67g
  /dev/sde1            lvm2 a-   135.67g 135.67g
  /dev/sdf1            lvm2 a-   135.67g 135.67g
  /dev/sdg1            lvm2 a-   135.67g 135.67g
  /dev/sdh1            lvm2 a-   135.67g 135.67g

Comment 8 releng-rhel@redhat.com 2010-11-10 21:07:56 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.