Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 444957

Summary: vgrename is broken in cluster lvm
Product: Red Hat Enterprise Linux 4 Reporter: Milan Broz <mbroz>
Component: lvm2Assignee: Milan Broz <mbroz>
Status: CLOSED ERRATA QA Contact: Corey Marthaler <cmarthal>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: agk, ccaulfie, dwysocha, edamato, heinzm, jbrassow, mbroz, prockai, pvrabec
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0776 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-24 20:08:12 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:
Bug Depends On: 450474    
Bug Blocks:    

Description Milan Broz 2008-05-02 10:52:06 UTC
vgrename doesn't work properly without refreshing cache (clvmd -R)

# clvmd -R
# lvchange -a n vg_bar/lv3
# vgrename vg_bar vg_bar1
  Volume group "vg_bar" successfully renamed to "vg_bar1"
# vgs
  VG       #PV #LV #SN Attr   VSize   VFree
  vg_bar1    4   4   0 wz--nc 399.98G 399.91G
# lvchange -a y vg_bar1/lv3
  Error locking on node bar-01: Volume group for uuid not found:
zX0qcpeD9um1FqePa7fZweGlUWs80lWucDmIanTFxtVKRlkDiFScxSI6oX54v6nr
  Error locking on node bar-03: Volume group for uuid not found:
zX0qcpeD9um1FqePa7fZweGlUWs80lWucDmIanTFxtVKRlkDiFScxSI6oX54v6nr
  Error locking on node bar-02: Volume group for uuid not found:
zX0qcpeD9um1FqePa7fZweGlUWs80lWucDmIanTFxtVKRlkDiFScxSI6oX54v6nr

# rpm -q lvm2
lvm2-2.02.36-1.el4

From code:
	/* FIXME lvmcache corruption - vginfo duplicated instead of renamed */
	persistent_filter_wipe(cmd->filter);
	lvmcache_destroy(cmd, 1);

Missing cache invalidation on remote nodes?

Comment 4 Milan Broz 2008-06-09 20:09:20 UTC
Fixed in lvm2-2.02.37-1.el4

Comment 6 Corey Marthaler 2008-06-27 14:37:26 UTC
This fix has been verified in lvm2-2.02.37-3.el4.

Comment 8 errata-xmlrpc 2008-07-24 20:08:12 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0776.html