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 869417 - is a --poolmetadata volume option required when converting a linear to pool
Summary: is a --poolmetadata volume option required when converting a linear to pool
Keywords:
Status: CLOSED DUPLICATE of bug 869402
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: lvm2
Version: 6.4
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Zdenek Kabelac
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-23 20:01 UTC by Corey Marthaler
Modified: 2012-11-27 19:41 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-27 19:41:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Corey Marthaler 2012-10-23 20:01:06 UTC
Description of problem:
[root@taft-04 ~]# pvscan
  PV /dev/sdb1   VG VG          lvm2 [135.66 GiB / 135.66 GiB free]
  PV /dev/sdc1   VG VG          lvm2 [135.66 GiB / 135.66 GiB free]
  PV /dev/sdd1   VG VG          lvm2 [135.66 GiB / 135.66 GiB free]

[root@taft-04 ~]# lvcreate -n lv1 -L 100M VG
  Logical volume "lv1" created
[root@taft-04 ~]# lvcreate -n lv2 -L 100M VG
  Logical volume "lv2" created

[root@taft-04 ~]# lvs -a -o +devices
  LV      VG    Attr      LSize   Pool Data%  Devices         
  lv1     VG    -wi-a---- 100.00m             /dev/sdb1(0)    
  lv2     VG    -wi-a---- 100.00m             /dev/sdb1(25)   

[root@taft-04 ~]#  lvconvert --thinpool VG/lv1
  Uknown metadata.

### Is --poolmetadata required?? If so can we enhance this error message to include the need for '--poolmetadata' to be present in the cmdline. I'm not sure since it wasn't required in the previous build (however that build resulted in bug 858874)

[root@taft-04 ~]#  lvconvert --thinpool VG/lv1 --poolmetadata VG/lv2
  Converted VG/lv1 to thin pool.

[root@taft-04 ~]# lvs -a -o +devices
  LV          VG    Attr      LSize   Pool Data%  Devices         
  lv1         VG    twi-a-t-- 100.00m        0.00 lv1_tdata(0)    
  [lv1_tdata] VG    Twi-aot-- 100.00m             /dev/sdb1(0)    
  [lv1_tmeta] VG    ewi-aot-- 100.00m             /dev/sdb1(25)   

[root@taft-04 ~]# lvcreate --virtualsize 500M --thinpool VG/lv1 -n virtvol1
  Logical volume "virtvol1" created
[root@taft-04 ~]# lvcreate --virtualsize 500M --thinpool VG/lv1 -n virtvol2
  Logical volume "virtvol2" created
[root@taft-04 ~]# lvs -a -o +devices
  LV          VG    Attr      LSize   Pool Data%  Devices         
  lv1         VG    twi-a-t-- 100.00m        0.12 lv1_tdata(0)    
  [lv1_tdata] VG    Twi-aot-- 100.00m             /dev/sdb1(0)    
  [lv1_tmeta] VG    ewi-aot-- 100.00m             /dev/sdb1(25)   
  virtvol1    VG    Vwi-a-t-- 500.00m lv1    0.01                 
  virtvol2    VG    Vwi-a-t-- 500.00m lv1    0.01                 


Version-Release number of selected component (if applicable):
2.6.32-330.el6.x86_64

lvm2-2.02.98-2.el6    BUILT: Tue Oct 16 05:15:59 CDT 2012
lvm2-libs-2.02.98-2.el6    BUILT: Tue Oct 16 05:15:59 CDT 2012
lvm2-cluster-2.02.98-2.el6    BUILT: Tue Oct 16 05:15:59 CDT 2012
udev-147-2.43.el6    BUILT: Thu Oct 11 05:59:38 CDT 2012
device-mapper-1.02.77-2.el6    BUILT: Tue Oct 16 05:15:59 CDT 2012
device-mapper-libs-1.02.77-2.el6    BUILT: Tue Oct 16 05:15:59 CDT 2012
device-mapper-event-1.02.77-2.el6    BUILT: Tue Oct 16 05:15:59 CDT 2012
device-mapper-event-libs-1.02.77-2.el6    BUILT: Tue Oct 16 05:15:59 CDT 2012
cmirror-2.02.98-2.el6    BUILT: Tue Oct 16 05:15:59 CDT 2012

Comment 1 Zdenek Kabelac 2012-10-24 08:43:52 UTC
Yes, for this moment the only supported conversion is  with giving thinpool LV device name and poolmetadata  LVM device name.

Probably better explanatory message could be added to avoid confusion.

lvconvert will have more capabilities in the next version.

Comment 4 Zdenek Kabelac 2012-11-27 19:41:08 UTC

*** This bug has been marked as a duplicate of bug 869402 ***


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