Bug 1373596

Summary: down conversion with a specified PV should use it
Product: Red Hat Enterprise Linux 7 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
lvm2 sub component: Changing Logical Volumes QA Contact: cluster-qe <cluster-qe>
Status: CLOSED NOTABUG Docs Contact:
Severity: low    
Priority: unspecified CC: agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, zkabelac
Version: 7.3   
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: 2016-09-06 19:01:30 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:

Description Corey Marthaler 2016-09-06 16:48:49 UTC
Description of problem:
I feel like this has come up before but I couldn't find an open bz.

[root@host-117 ~]# lvs -a -o +devices
  LV                    VG         Attr       LSize    Log               Cpy%Sync Devices
  centi_base            centipede  mwi-a-m--- 700.00m  [centi_base_mlog] 100.00   centi_base_mimage_0(0),centi_base_mimage_1(0)
  [centi_base_mimage_0] centipede  iwi-aom--- 700.00m                             /dev/sde2(0)
  [centi_base_mimage_1] centipede  iwi-aom--- 700.00m                             /dev/sdg2(0)
  [centi_base_mlog]     centipede  lwi-aom---   4.00m                             /dev/sdg2(175)

[root@host-117 ~]# lvconvert -m 0 centipede/centi_base /dev/sde2
  Logical volume centipede/centi_base converted.


# Shouldn't this linear now be on /dev/sde2?

[root@host-117 ~]# lvs -a -o +devices
  LV         VG         Attr       LSize    Log Cpy%Sync Devices
  centi_base centipede  -wi-a----- 700.00m               /dev/sdg2(0)


Version-Release number of selected component (if applicable):

3.10.0-497.el7.x86_64

lvm2-2.02.164-4.el7    BUILT: Wed Aug 31 08:47:09 CDT 2016
lvm2-libs-2.02.164-4.el7    BUILT: Wed Aug 31 08:47:09 CDT 2016
lvm2-cluster-2.02.164-4.el7    BUILT: Wed Aug 31 08:47:09 CDT 2016
device-mapper-1.02.133-4.el7    BUILT: Wed Aug 31 08:47:09 CDT 2016
device-mapper-libs-1.02.133-4.el7    BUILT: Wed Aug 31 08:47:09 CDT 2016
device-mapper-event-1.02.133-4.el7    BUILT: Wed Aug 31 08:47:09 CDT 2016
device-mapper-event-libs-1.02.133-4.el7    BUILT: Wed Aug 31 08:47:09 CDT 2016
device-mapper-persistent-data-0.6.3-1.el7    BUILT: Fri Jul 22 05:29:13 CDT 2016

Comment 2 Corey Marthaler 2016-09-06 19:01:30 UTC
I stand corrected, this works as designed.

From lvconvert man page:

       Convert a mirror LV to a linear LV, freeing physical extents from a specific PV:
       lvconvert --type linear vg/lvol1 /dev/sda