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 1503693 - extraction out of /dev prefixed name isn't working properly
Summary: extraction out of /dev prefixed name isn't working properly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.4
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Zdenek Kabelac
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-18 14:41 UTC by John Pittman
Modified: 2021-09-03 12:49 UTC (History)
10 users (show)

Fixed In Version: lvm2-2.02.176-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 15:22:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:0853 0 None None None 2018-04-10 15:23:07 UTC

Description John Pittman 2017-10-18 14:41:23 UTC
Description of problem:

Extraction out of /dev prefixed name isn't working properly

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

lvm2-2.02.171-8.el7
device-mapper-1.02.140-8.el7
kernel-3.10.0-681.el7

How reproducible:

- Error message indicated below with <=====?

[root@localhost ~]# vgcreate testvg /dev/sdb /dev/sdc
  Physical volume "/dev/sdb" successfully created.
  Physical volume "/dev/sdc" successfully created.
  Volume group "testvg" successfully created

[root@localhost ~]# lvcreate -L 900M -n slowdisk testvg /dev/sdb
  Logical volume "slowdisk" created.
[root@localhost ~]# lvcreate -L 400M -n cachedisk testvg /dev/sdc
  Logical volume "cachedisk" created.
[root@localhost ~]# lvcreate -L 100M -n metadisk testvg /dev/sdc
  Logical volume "metadisk" created.

[root@localhost ~]# lvconvert -y --type cache-pool /dev/testvg/cachedisk --poolmetadata /dev/testvg/metadisk
  WARNING: Converting logical volume testvg/cachedisk and testvg/metadisk to cache pool's data and metadata volumes with metadata wiping.
  THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)
  Converted testvg/cachedisk_cdata to cache pool.

[root@localhost ~]# lvs -a
  LV                VG     Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root              rhel   -wi-ao----  <6.67g                                                    
  swap              rhel   -wi-ao---- 820.00m                                                    
  cachedisk         testvg Cwi---C--- 400.00m                                                    
  [cachedisk_cdata] testvg Cwi------- 400.00m                                                    
  [cachedisk_cmeta] testvg ewi------- 100.00m                                                    
  [lvol0_pmspare]   testvg ewi------- 100.00m                                                    
  slowdisk          testvg -wi-a----- 900.00m  
  
[root@localhost ~]# lvconvert -y --type cache --cachepool /dev/testvg/cachedisk /dev/testvg/slowdisk
  VG name mismatch from position arg (testvg) and option arg ().  <=======?
  
[root@localhost ~]# dmsetup info -C
Name             Maj Min Stat Open Targ Event  UUID                                                                
rhel-swap        253   0 L--w    2    1      0 LVM-97gz0qcKkbyYE6dksaxG4Xdvf0N8Wd43wWaW8CIU71AYoi9T1JD151HmUvafk9Wy
rhel-root        253   1 L--w    1    1      0 LVM-97gz0qcKkbyYE6dksaxG4Xdvf0N8Wd430aAzxjTzEczPIdKPFKkBRm1dmttFdQk4
testvg-slowdisk  253   2 L--w    0    1      0 LVM-g10GkxS07ebJLolahA2ov5bQWNewOQJq6ImxNkBymq3TJuZG4rRX4Ep0g5Tfy7rb

[root@localhost ~]# lvconvert -y --type cache --cachepool testvg/cachedisk testvg/slowdisk
  Logical volume testvg/slowdisk is now cached.
  
[root@localhost ~]# lvs -a
  LV                VG     Attr       LSize   Pool        Origin           Data%  Meta%  Move Log Cpy%Sync Convert
  root              rhel   -wi-ao----  <6.67g                                                                     
  swap              rhel   -wi-ao---- 820.00m                                                                     
  [cachedisk]       testvg Cwi---C--- 400.00m                              0.14   0.10            0.00            
  [cachedisk_cdata] testvg Cwi-ao---- 400.00m                                                                     
  [cachedisk_cmeta] testvg ewi-ao---- 100.00m                                                                     
  [lvol0_pmspare]   testvg ewi------- 100.00m                                                                     
  slowdisk          testvg Cwi-a-C--- 900.00m [cachedisk] [slowdisk_corig] 0.14   0.10            0.00            
  [slowdisk_corig]  testvg owi-aoC--- 900.00m        
  
[root@localhost ~]# dmsetup info -C
Name                   Maj Min Stat Open Targ Event  UUID                                                                      
testvg-cachedisk_cmeta 253   4 L--w    1    1      0 LVM-g10GkxS07ebJLolahA2ov5bQWNewOQJqfHCj9o55c7ZS9M8IT6bHGnE5AHobqsuH-cmeta
testvg-slowdisk_corig  253   5 L--w    1    1      0 LVM-g10GkxS07ebJLolahA2ov5bQWNewOQJqIxjosHNXP3x6Z3arcD8pno5eXmHR0h2h-real 
rhel-swap              253   0 L--w    2    1      0 LVM-97gz0qcKkbyYE6dksaxG4Xdvf0N8Wd43wWaW8CIU71AYoi9T1JD151HmUvafk9Wy      
rhel-root              253   1 L--w    1    1      0 LVM-97gz0qcKkbyYE6dksaxG4Xdvf0N8Wd430aAzxjTzEczPIdKPFKkBRm1dmttFdQk4      
testvg-slowdisk        253   2 L--w    0    1      0 LVM-g10GkxS07ebJLolahA2ov5bQWNewOQJq6ImxNkBymq3TJuZG4rRX4Ep0g5Tfy7rb      
testvg-cachedisk_cdata 253   3 L--w    1    1      0 LVM-g10GkxS07ebJLolahA2ov5bQWNewOQJqO70OVWkyo6wRDcf77LzBW1fz8wTCQQrm-cdata

Actual results:

Strange error message

Expected results:

Unsure.  Either a descriptive error message or /dev expansion.

Comment 4 Zdenek Kabelac 2017-10-24 14:19:48 UTC
Fixed with upstream commit:
(regression from version 2.02.169)

https://www.redhat.com/archives/lvm-devel/2017-October/msg00057.html

Comment 6 Marian Csontos 2017-10-25 07:37:59 UTC
Test - lvconvert with /dev/ with internal cachepool device:

[ 0:02] lvcreate -L 2 -n $lv1 $vg [ 0:02] #lvconvert-cache.sh:96+ lvcreate -L 2 -n LV1 @PREFIX@vg [ 0:02] WARNING: This metadata update is NOT backed up. [ 0:02] Logical volume "LV1" created. [ 0:02] lvcreate --type cache-pool -l 1 -n ${lv1}_cachepool "$DM_DEV_DIR/$vg" [ 0:02] #lvconvert-cache.sh:97+ lvcreate --type cache-pool -l 1 -n LV1_cachepool /dev/@PREFIX@vg [ 0:02] Using default stripesize 64.00 KiB. [ 0:02] WARNING: This metadata update is NOT backed up. [ 0:02] Logical volume "LV1_cachepool" created. [ 0:03] lvconvert --cache --cachepool "$DM_DEV_DIR/$vg/${lv1}_cachepool" --cachemode writeback -Zy "$DM_DEV_DIR/$vg/$lv1" [ 0:03] #lvconvert-cache.sh:98+ lvconvert --cache --cachepool /dev/@PREFIX@vg/LV1_cachepool --cachemode writeback -Zy /dev/@PREFIX@vg/LV1 [ 0:03] WARNING: This metadata update is NOT backed up. [ 0:03] Logical volume @PREFIX@vg/LV1 is now cached. [ 0:03] lvremove -f $vg [ 0:03] #lvconvert-cache.sh:99+ lvremove -f @PREFIX@vg [ 0:03] Flushing 0 blocks for cache @PREFIX@vg/LV1. [ 0:03] WARNING: This metadata update is NOT backed up. [ 0:03] Logical volume "LV1_cachepool" successfully removed [ 0:03] Logical volume "LV1" successfully removed

Comment 8 Roman Bednář 2017-11-30 12:53:17 UTC
Marking verified with latest rpms. Converting a volume to cache now works with /dev prefix as well.

BEFORE PATCH:
# lvconvert -y --type cache --cachepool /dev/cache_sanity/CPOOL /dev/cache_sanity/linear
  VG name mismatch from position arg (cache_sanity) and option arg ().



AFTER_PATCH:
# lvconvert -y --type cache --cachepool /dev/cache_sanity/CPOOL /dev/cache_sanity/linear
# lvs -a -o lv_name,vg_name,pool_lv
  LV              VG            Pool   
  [CPOOL]         cache_sanity         
  [CPOOL_cdata]   cache_sanity         
  [CPOOL_cmeta]   cache_sanity         
  linear          cache_sanity  [CPOOL]
  [linear_corig]  cache_sanity         
  [lvol0_pmspare] cache_sanity   



3.10.0-799.el7.x86_64

lvm2-2.02.176-4.el7    BUILT: Wed Nov 15 11:21:19 CET 2017
lvm2-libs-2.02.176-4.el7    BUILT: Wed Nov 15 11:21:19 CET 2017
lvm2-cluster-2.02.176-4.el7    BUILT: Wed Nov 15 11:21:19 CET 2017
lvm2-lockd-2.02.176-4.el7    BUILT: Wed Nov 15 11:21:19 CET 2017
lvm2-python-boom-0.8-4.el7    BUILT: Wed Nov 15 11:23:09 CET 2017
cmirror-2.02.176-4.el7    BUILT: Wed Nov 15 11:21:19 CET 2017
device-mapper-1.02.145-4.el7    BUILT: Wed Nov 15 11:21:19 CET 2017
device-mapper-libs-1.02.145-4.el7    BUILT: Wed Nov 15 11:21:19 CET 2017
device-mapper-event-1.02.145-4.el7    BUILT: Wed Nov 15 11:21:19 CET 2017
device-mapper-event-libs-1.02.145-4.el7    BUILT: Wed Nov 15 11:21:19 CET 2017
device-mapper-persistent-data-0.7.3-3.el7    BUILT: Tue Nov 14 12:07:18 CET 2017
sanlock-3.5.0-1.el7    BUILT: Wed Apr 26 16:37:30 CEST 2017
sanlock-lib-3.5.0-1.el7    BUILT: Wed Apr 26 16:37:30 CEST 2017
vdo-6.1.0.55-10    BUILT: Fri Nov 17 21:03:36 CET 2017
kmod-kvdo-6.1.0.55-9.el7    BUILT: Fri Nov 17 22:48:23 CET 2017

Comment 11 errata-xmlrpc 2018-04-10 15:22:16 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://access.redhat.com/errata/RHEA-2018:0853


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