Bug 1103381

Summary: LVM cache: Not all sub-LVs renamed when caching a RAID LV
Product: Red Hat Enterprise Linux 7 Reporter: Jonathan Earl Brassow <jbrassow>
Component: lvm2Assignee: Jonathan Earl Brassow <jbrassow>
lvm2 sub component: Cache Logical Volumes QA Contact: Cluster QE <mspqa-list>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: agk, cmarthal, heinzm, jbrassow, msnitzer, nperic, prajnoha, prockai, zkabelac
Version: 7.0   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lvm2-2.02.111-1.el7 Doc Type: Bug Fix
Doc Text:
No Documentation Needed. Cache was tech preview previously.
Story Points: ---
Clone Of: 1095843 Environment:
Last Closed: 2015-03-05 13:08:44 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: 1095843    
Bug Blocks: 1119326    

Comment 3 Corey Marthaler 2014-12-15 21:14:03 UTC
Fix verified in the latest rpms.


3.10.0-215.el7.x86_64
lvm2-2.02.114-2.el7    BUILT: Mon Dec  1 10:57:14 CST 2014
lvm2-libs-2.02.114-2.el7    BUILT: Mon Dec  1 10:57:14 CST 2014
lvm2-cluster-2.02.114-2.el7    BUILT: Mon Dec  1 10:57:14 CST 2014
device-mapper-1.02.92-2.el7    BUILT: Mon Dec  1 10:57:14 CST 2014
device-mapper-libs-1.02.92-2.el7    BUILT: Mon Dec  1 10:57:14 CST 2014
device-mapper-event-1.02.92-2.el7    BUILT: Mon Dec  1 10:57:14 CST 2014
device-mapper-event-libs-1.02.92-2.el7    BUILT: Mon Dec  1 10:57:14 CST 2014
device-mapper-persistent-data-0.4.1-2.el7    BUILT: Wed Nov 12 12:39:46 CST 2014
cmirror-2.02.114-2.el7    BUILT: Mon Dec  1 10:57:14 CST 2014



[root@host-119 ~]# lvs -a -o +devices
  LV                 Attr       LSize   Cpy%Sync Devices
  corigin            rwi-a-r---   2.00g 30.86    corigin_rimage_0(0),corigin_rimage_1(0)
  [corigin_rimage_0] Iwi-aor---   2.00g          /dev/sde1(1)
  [corigin_rimage_1] Iwi-aor---   2.00g          /dev/sda1(1)
  [corigin_rmeta_0]  ewi-aor---   4.00m          /dev/sde1(0)
  [corigin_rmeta_1]  ewi-aor---   4.00m          /dev/sda1(0)
[root@host-119 ~]# lvcreate --type cache-pool -L 100M -n pool cache_sanity /dev/sdh1
  Logical volume "pool" created.
[root@host-119 ~]# lvs -a -o +devices
  LV                 Attr       LSize   Cpy%Sync Devices
  corigin            rwi-a-r---   2.00g 74.41    corigin_rimage_0(0),corigin_rimage_1(0)
  [corigin_rimage_0] Iwi-aor---   2.00g          /dev/sde1(1)
  [corigin_rimage_1] Iwi-aor---   2.00g          /dev/sda1(1)
  [corigin_rmeta_0]  ewi-aor---   4.00m          /dev/sde1(0)
  [corigin_rmeta_1]  ewi-aor---   4.00m          /dev/sda1(0)
  [lvol0_pmspare]    ewi-------   8.00m          /dev/sdh1(0)
  pool               Cwi---C--- 100.00m          pool_cdata(0)
  [pool_cdata]       Cwi------- 100.00m          /dev/sdh1(4)
  [pool_cmeta]       ewi-------   8.00m          /dev/sdh1(2)
[root@host-119 ~]# lvconvert --yes --type cache --cachepool cache_sanity/pool cache_sanity/corigin
  Logical volume cache_sanity/corigin is now cached.
[root@host-119 ~]# lvs -a -o +devices
  LV                       Attr       LSize   Pool   Origin          Data%  Meta% Cpy%Sync Devices
  corigin                  Cwi-a-C---   2.00g [pool] [corigin_corig] 0.31   0.49  0.00     corigin_corig(0)
  [corigin_corig]          rwi-aoC---   2.00g                                     100.00   corigin_corig_rimage_0(0),corigin_corig_rimage_1(0)
  [corigin_corig_rimage_0] iwi-aor---   2.00g                                              /dev/sde1(1)
  [corigin_corig_rimage_1] iwi-aor---   2.00g                                              /dev/sda1(1)
  [corigin_corig_rmeta_0]  ewi-aor---   4.00m                                              /dev/sde1(0)
  [corigin_corig_rmeta_1]  ewi-aor---   4.00m                                              /dev/sda1(0)
  [lvol0_pmspare]          ewi-------   8.00m                                              /dev/sdh1(0)
  [pool]                   Cwi---C--- 100.00m                        0.31   0.49  0.00     pool_cdata(0)
  [pool_cdata]             Cwi-ao---- 100.00m                                              /dev/sdh1(4)
  [pool_cmeta]             ewi-ao----   8.00m                                              /dev/sdh1(2)

Comment 5 errata-xmlrpc 2015-03-05 13:08:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0513.html