Bug 1373596 - down conversion with a specified PV should use it
Summary: down conversion with a specified PV should use it
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.3
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: LVM and device-mapper development team
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-06 16:48 UTC by Corey Marthaler
Modified: 2021-09-03 12:40 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-06 19:01:30 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.