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 832145 - parted unsets device-mapper partitions' UUIDs when doing a commit to a device-mapper disk
Summary: parted unsets device-mapper partitions' UUIDs when doing a commit to a device...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: parted
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Brian Lane
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 782183 840685
TreeView+ depends on / blocked
 
Reported: 2012-06-14 16:24 UTC by Kendrick Gay
Modified: 2018-12-09 16:49 UTC (History)
3 users (show)

Fixed In Version: parted-2.1-19.el6
Doc Type: Bug Fix
Doc Text:
No documentation needed.
Clone Of:
Environment:
Last Closed: 2013-02-21 10:13:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
parted patch to get and set UUID (1.63 KB, patch)
2012-06-14 16:24 UTC, Kendrick Gay
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0407 0 normal SHIPPED_LIVE parted bug fix and enhancement update 2013-02-20 20:50:39 UTC

Description Kendrick Gay 2012-06-14 16:24:19 UTC
Created attachment 591869 [details]
parted patch to get and set UUID

Description of problem:

Regression involving parted with prevents 'dmsetup info -c' from including UUID for partitioned multipath devices.

In _dm_add_partition(), parted is setting the device name, but doesn't set the UUID.  This leaves the partition's UUID blank.  Other utilities (in particular, kpartx) set the UUID on creation of the partition's device node, so a kpartx -d/-a cycle results in the expected UUID.

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

2.1-17.el6.x86_64 

How reproducible:

Always.

Steps to Reproduce:
1. Enable multipathing
2. Create partition on mpath device with parted
3. Run 'dmsetup info -c' and review UUID column
  
Actual results:

No UUID printed under UUID column for partitioned mpath devices

Expected results:

UUID should be printed for all relevant devices.

Additional info:

Similar issue seem here:
https://bugzilla.redhat.com/show_bug.cgi?id=639138

Attaching customer-provided patch to case.

Comment 2 Brian Lane 2012-06-14 16:57:08 UTC
This isn't a regression, parted 2.1 has always had this problem. The fix has been in Fedora since F14 so is well tested and low impact.

Comment 3 sbhasker 2012-06-21 08:47:16 UTC
When can we expect an official patch

Comment 4 RHEL Program Management 2012-07-16 22:49:32 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.

Comment 6 Jan Stodola 2013-01-02 15:57:15 UTC
Reproduced with parted-2.1-18.el6 (RHEL-6.3):

[root@rtt7 ~]# parted /dev/mapper/mpatha mkpart primary 1 200
Information: You may need to update /etc/fstab.                           

[root@rtt7 ~]# dmsetup info -c
Name             Maj Min Stat Open Targ Event  UUID                                                                
vg_rtt7-LogVol00 253   3 L--w    1    1      0 LVM-r10pS6on7MooQb7FjOEcqThBMPAuXphdzqp3jHjOlyiEJQ9NeROZihTZ7NN9mjc5
mpathap1         253   4 L--w    0    1      0                                                                     
mpatha           253   2 L--w    1    1      1 mpath-36005076305ffc73d0000000000002007                             
vg_rtt7-LogVol02 253   1 L--w    1    3      0 LVM-r10pS6on7MooQb7FjOEcqThBMPAuXphdKTusJrxf3ffwNbvSVQz2uyfSRpihKYDY
vg_rtt7-LogVol01 253   0 L--w    1    1      0 LVM-r10pS6on7MooQb7FjOEcqThBMPAuXphdnHt5UBj4Jcn3rdUeWFWzdMXYZ4B34rD0
[root@rtt7 ~]#

Verified with parted-2.1-19.el6 (RHEL6.4-20121212.1):

[root@rtt7 ~]# parted /dev/mapper/mpatha print
Model: Linux device-mapper (multipath) (dm)
Disk /dev/mapper/mpatha: 8590MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End  Size  Type  File system  Flags

[root@rtt7 ~]# parted /dev/mapper/mpatha mkpart primary 1 200
Information: You may need to update /etc/fstab.                           

[root@rtt7 ~]# dmsetup info -c
Name             Maj Min Stat Open Targ Event  UUID                                                                
vg_rtt7-LogVol00 253   3 L--w    1    1      0 LVM-r10pS6on7MooQb7FjOEcqThBMPAuXphdzqp3jHjOlyiEJQ9NeROZihTZ7NN9mjc5
mpathap1         253   4 L--w    0    1      0 part1-mpath-36005076305ffc73d0000000000002007                       
mpatha           253   2 L--w    1    1      1 mpath-36005076305ffc73d0000000000002007                             
vg_rtt7-LogVol02 253   1 L--w    1    3      0 LVM-r10pS6on7MooQb7FjOEcqThBMPAuXphdKTusJrxf3ffwNbvSVQz2uyfSRpihKYDY
vg_rtt7-LogVol01 253   0 L--w    1    1      0 LVM-r10pS6on7MooQb7FjOEcqThBMPAuXphdnHt5UBj4Jcn3rdUeWFWzdMXYZ4B34rD0

Moving to VERIFIED.

Comment 8 errata-xmlrpc 2013-02-21 10:13:39 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.

http://rhn.redhat.com/errata/RHBA-2013-0407.html


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