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 1593461 - splitting mirrors using VG on cmdline results in segfault
Summary: splitting mirrors using VG on cmdline results in segfault
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.6
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: David Teigland
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-20 22:44 UTC by Corey Marthaler
Modified: 2021-09-03 12:50 UTC (History)
8 users (show)

Fixed In Version: lvm2-2.02.179-3.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 11:03:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3193 0 None None None 2018-10-30 11:04:28 UTC

Description Corey Marthaler 2018-06-20 22:44:04 UTC
Description of problem:

SCENARIO - [split_mirror_using_vg_in_new_name]
Create a 3-way mirror and split off image using the VG name in the new split off image
host-086.virt.lab.msp.redhat.com: lvcreate --type mirror -m 3 -n split_using_vg_name -L 300M split_image
Waiting until all mirror|raid volumes become fully syncd...
   1/1 mirror(s) are fully synced: ( 100.00% )
Sleeping 15 sec


  split_using_vg_name            split_image   mwi-a-m--- 300.00m    [split_using_vg_name_mlog] 100.00   split_using_vg_name_mimage_0(0),split_using_vg_name_mimage_1(0),split_using_vg_name_mimage_2(0),split_using_vg_name_mimage_3(0)
  [split_using_vg_name_mimage_0] split_image   iwi-aom--- 300.00m                                        /dev/sda1(0)
  [split_using_vg_name_mimage_1] split_image   iwi-aom--- 300.00m                                        /dev/sdb1(0)
  [split_using_vg_name_mimage_2] split_image   iwi-aom--- 300.00m                                        /dev/sdc1(0)
  [split_using_vg_name_mimage_3] split_image   iwi-aom--- 300.00m                                        /dev/sdd1(0)
  [split_using_vg_name_mlog]     split_image   lwi-aom---   4.00m                                        /dev/sdf1(0)



split image by including VG name in the newly split off image...
host-086.virt.lab.msp.redhat.com: lvconvert --yes --splitmirrors 1 --name split_image/new split_image/split_using_vg_name
couldn't split off using VG name

[ 4229.754798] lvconvert[8476]: segfault at 0 ip 0000561e64380b35 sp 00007ffc400b8ee0 error 4 in lvm[561e64298000+1d9000]

Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `lvconvert --yes --splitmirrors 1 --name split_image/new split_image/split_using'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000557f25635b35 in _split_mirror_images (lv=lv@entry=0x557f27bf7e68, split_name=split_name@entry=0x7ffdd55acf25 "new", split_count=split_count@entry=1, 
    removable_pvs=removable_pvs@entry=0x557f27bf7400) at metadata/mirror.c:713
713             if (!strcmp(lv->vg->lock_type, "dlm"))
(gdb) bt
#0  0x0000557f25635b35 in _split_mirror_images (lv=lv@entry=0x557f27bf7e68, split_name=split_name@entry=0x7ffdd55acf25 "new", split_count=split_count@entry=1, 
    removable_pvs=removable_pvs@entry=0x557f27bf7400) at metadata/mirror.c:713
#1  0x0000557f25638490 in lv_split_mirror_images (lv=lv@entry=0x557f27bf7e68, split_name=0x7ffdd55acf25 "new", split_count=1, removable_pvs=removable_pvs@entry=0x557f27bf7400)
    at metadata/mirror.c:2197
#2  0x0000557f25592226 in _lvconvert_mirrors_aux (cmd=cmd@entry=0x557f27b24020, lv=lv@entry=0x557f27bf7e68, lp=lp@entry=0x7ffdd55ac620, new_mimage_count=new_mimage_count@entry=3, new_log_count=1, 
    pvh=0x557f27bf7400, operable_pvs=0x557f27bf7400) at lvconvert.c:976
#3  0x0000557f25592a60 in _lvconvert_mirrors (cmd=cmd@entry=0x557f27b24020, lv=lv@entry=0x557f27bf7e68, lp=lp@entry=0x7ffdd55ac620) at lvconvert.c:1239
#4  0x0000557f255932de in _convert_striped_mirror (lp=0x7ffdd55ac620, lv=0x557f27bf7e68, cmd=0x557f27b24020) at lvconvert.c:1624
#5  _convert_striped (lp=<optimized out>, lv=<optimized out>, cmd=<optimized out>) at lvconvert.c:1705
#6  _lvconvert_raid_types (cmd=0x557f27b24020, lv=0x557f27bf7e68, lp=0x7ffdd55ac620) at lvconvert.c:1781
#7  0x0000557f255b8b4d in process_each_lv_in_vg (cmd=cmd@entry=0x557f27b24020, vg=vg@entry=0x557f27bf7340, arg_lvnames=arg_lvnames@entry=0x7ffdd55ac500, tags_in=tags_in@entry=0x7ffdd55ac4b0, 
    stop_on_error=stop_on_error@entry=0, handle=handle@entry=0x557f27b6a848, check_single_lv=check_single_lv@entry=0x0, 
    process_single_lv=process_single_lv@entry=0x557f25593740 <_lvconvert_split_mirror_images_single>) at toollib.c:3233
#8  0x0000557f255ba08f in _process_lv_vgnameid_list (process_single_lv=0x557f25593740 <_lvconvert_split_mirror_images_single>, check_single_lv=0x0, handle=0x557f27b6a848, arg_tags=0x7ffdd55ac4b0, 
    arg_lvnames=0x7ffdd55ac4d0, arg_vgnames=0x7ffdd55ac4c0, vgnameids_to_process=0x7ffdd55ac4f0, read_flags=1048576, cmd=0x557f27b24020) at toollib.c:3697
#9  process_each_lv (cmd=cmd@entry=0x557f27b24020, argc=argc@entry=1, argv=<optimized out>, one_vgname=one_vgname@entry=0x0, one_lvname=one_lvname@entry=0x0, read_flags=read_flags@entry=1048576, 
    handle=handle@entry=0x557f27b6a848, check_single_lv=check_single_lv@entry=0x0, process_single_lv=process_single_lv@entry=0x557f25593740 <_lvconvert_split_mirror_images_single>) at toollib.c:3855
#10 0x0000557f25595afc in lvconvert_split_mirror_images_cmd (cmd=0x557f27b24020, argc=<optimized out>, argv=<optimized out>) at lvconvert.c:4708
#11 0x0000557f255a189f in lvm_run_command (cmd=0x557f27b24020, argc=1, argv=0x7ffdd55acad8) at lvmcmdline.c:3001
#12 0x0000557f255a2b2e in lvm2_main (argc=7, argv=0x7ffdd55acaa8) at lvmcmdline.c:3581
#13 0x00007f1bc536d3d5 in __libc_start_main (main=0x557f2557ec00 <main>, argc=7, ubp_av=0x7ffdd55acaa8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdd55aca98)
    at ../csu/libc-start.c:274
#14 0x0000557f2557ec2e in _start ()


Version-Release number of selected component (if applicable):
3.10.0-906.el7.x86_64

lvm2-2.02.179-1.el7    BUILT: Mon Jun 18 01:12:41 CDT 2018
lvm2-libs-2.02.179-1.el7    BUILT: Mon Jun 18 01:12:41 CDT 2018
lvm2-cluster-2.02.179-1.el7    BUILT: Mon Jun 18 01:12:41 CDT 2018
lvm2-lockd-2.02.179-1.el7    BUILT: Mon Jun 18 01:12:41 CDT 2018
lvm2-python-boom-0.8.5-6.el7    BUILT: Mon Jun 18 01:16:13 CDT 2018
cmirror-2.02.179-1.el7    BUILT: Mon Jun 18 01:12:41 CDT 2018
device-mapper-1.02.148-1.el7    BUILT: Mon Jun 18 01:12:41 CDT 2018
device-mapper-libs-1.02.148-1.el7    BUILT: Mon Jun 18 01:12:41 CDT 2018
device-mapper-event-1.02.148-1.el7    BUILT: Mon Jun 18 01:12:41 CDT 2018
device-mapper-event-libs-1.02.148-1.el7    BUILT: Mon Jun 18 01:12:41 CDT 2018


How reproducible:
Everytime

Comment 3 Zdenek Kabelac 2018-06-22 10:49:06 UTC
Fixed in stable branch with this commit:

https://www.redhat.com/archives/lvm-devel/2018-June/msg00175.html

Comment 5 Roman Bednář 2018-07-20 14:09:54 UTC
Verified.


SCENARIO - [split_mirror_using_vg_in_new_name]
Create a 3-way mirror and split off image using the VG name in the new split off image
virt-365: lvcreate --type mirror -m 3 -n split_using_vg_name -L 300M split_image
Waiting until all mirror|raid volumes become fully syncd...
   1/1 mirror(s) are fully synced: ( 100.00% )
Sleeping 15 sec

split image by including VG name in the newly split off image...
virt-365: lvconvert --yes --splitmirrors 1 --name split_image/new split_image/split_using_vg_name

Deactivating LV split_image/new on virt-365... and removing
Deactivating LV split_image/split_using_vg_name on virt-365... and removing

------------------- Summary ---------------------
Testcase                                 Result    
--------                                 ------    
generic_setup                            PASS      
split_image_split_mirror_using_vg_i      PASS      
cleanup                                  PASS  




3.10.0-915.el7.x86_64

lvm2-2.02.179-4.el7    BUILT: Tue Jun 26 15:35:45 CEST 2018
lvm2-libs-2.02.179-4.el7    BUILT: Tue Jun 26 15:35:45 CEST 2018
lvm2-cluster-2.02.179-4.el7    BUILT: Tue Jun 26 15:35:45 CEST 2018
cmirror-2.02.179-4.el7    BUILT: Tue Jun 26 15:35:45 CEST 2018
device-mapper-1.02.148-4.el7    BUILT: Tue Jun 26 15:35:45 CEST 2018
device-mapper-libs-1.02.148-4.el7    BUILT: Tue Jun 26 15:35:45 CEST 2018
device-mapper-event-1.02.148-4.el7    BUILT: Tue Jun 26 15:35:45 CEST 2018
device-mapper-event-libs-1.02.148-4.el7    BUILT: Tue Jun 26 15:35:45 CEST 2018
device-mapper-persistent-data-0.7.3-3.el7    BUILT: Tue Nov 14 12:07:18 CET 2017
vdo-6.1.1.99-2.el7    BUILT: Thu Jun 21 05:36:06 CEST 2018
kmod-kvdo-6.1.1.99-1.el7    BUILT: Thu Jun 21 05:40:52 CEST 2018
cryptsetup-2.0.3-1.el7    BUILT: Wed Jun 20 17:26:29 CEST 2018
cryptsetup-libs-2.0.3-1.el7    BUILT: Wed Jun 20 17:26:29 CEST 2018

Comment 7 errata-xmlrpc 2018-10-30 11:03:47 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/RHBA-2018:3193


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