Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 844611

Summary: DiskLabelCommitError: Could not commit to disk /dev/mapper/mpathf
Product: Red Hat Enterprise Linux 6 Reporter: Xiaowei Li <xiaoli>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: atodorov, qcai
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:00f4dc5a4e4f7eef89ac4b465930a8a808a02d9e9d625f94f20ab4336f1ce479
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-26 02:59:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: anaconda-tb-z0n80D none

Description Xiaowei Li 2012-07-31 07:42:34 UTC
libreport version: 2.0.9
cmdline:        /usr/bin/python  /usr/bin/anaconda
executable:     /usr/bin/anaconda
exnFileName:    /tmp/anaconda-tb-z0n80D
hashmarkername: anaconda
kernel:         2.6.32-279.el6.x86_64
other involved packages: 
product:        Red Hat Enterprise Linux
reason:         DiskLabelCommitError: Could not commit to disk /dev/mapper/mpathf
release:        Cannot get release name.
time:           Tue 31 Jul 2012 03:41:16 AM EDT
version:        6.3

anaconda-tb-z0n80D: Binary file, 1197729 bytes

description:
:The following was filed automatically by anaconda:
:anaconda 13.21.176 exception report
:Traceback (most recent call first):
:  File "/usr/lib/anaconda/storage/formats/disklabel.py", line 258, in commit
:    raise DiskLabelCommitError(msg)
:  File "/usr/lib/anaconda/storage/devices.py", line 1413, in destroy
:    self.disk.originalFormat.commit()
:  File "/usr/lib/anaconda/storage/deviceaction.py", line 219, in execute
:    self.device.destroy()
:  File "/usr/lib/anaconda/storage/devicetree.py", line 718, in processActions
:    action.execute(intf=self.intf)
:  File "/usr/lib/anaconda/storage/__init__.py", line 349, in doIt
:    self.devicetree.processActions()
:  File "/usr/lib/anaconda/packages.py", line 110, in turnOnFilesystems
:    anaconda.id.storage.doIt()
:  File "/usr/lib/anaconda/dispatch.py", line 210, in moveStep
:    rc = stepFunc(self.anaconda)
:  File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
:    self.moveStep()
:  File "/usr/lib/anaconda/gui.py", line 1388, in nextClicked
:    self.anaconda.dispatch.gotoNext()
:DiskLabelCommitError: Could not commit to disk /dev/mapper/mpathf

environ:
:LC_NUMERIC=C
:LANGKEY=en
:LVM_SUPPRESS_FD_WARNINGS=1
:GCONF_GLOBAL_LOCKS=1
:PATH=/tmp/product:/tmp/updates:/usr/bin:/bin:/sbin:/usr/sbin:/mnt/sysimage/bin:/mnt/sysimage/usr/bin:/mnt/sysimage/usr/sbin:/mnt/sysimage/sbin:/mnt/sysimage/usr/X11R6/bin:/tmp/DD/bin:/tmp/DD/sbin:/tmp/DD/usr/bin:/tmp/DD/usr/bin:/sbin:/usr/sbin
:PIXMAPPATH=/tmp/updates/pixmaps/:/tmp/updates/:/tmp/product/pixmaps/:/tmp/product/:pixmaps/:/usr/share/anaconda/pixmaps/:/usr/share/pixmaps/:/usr/share/anaconda/:/usr/share/python-meh/
:HOME=/tmp
:DISPLAY=:1
:LANG=en_US.UTF-8
:TERM=vt100-nav
:TZ=America/New_York
:XAUTHORITY=//.Xauthority
:GLADEPATH=/tmp/updates/:/tmp/updates/ui/:ui/:/usr/share/anaconda/ui/:/usr/share/python-meh/
:LIBUSER_CONF=/tmp/libuser.yWNJoW
:LD_LIBRARY_PATH=/tmp/product:/tmp/updates:/lib64:/usr/lib64:/lib:/usr/lib:/tmp/DD/lib64:/tmp/DD/usr/lib64:/tmp/DD/lib:/tmp/DD/usr/lib
:GNOME_DISABLE_CRASH_DIALOG=1
:TERMINFO=/etc/linux-terminfo
:PYTHONPATH=/tmp/product:/tmp/updates/textw:/tmp/updates/iw:/tmp/updates:/tmp/updates
:LINGUAS=English
:DEBUG=
:LC_COLLATE=C
:MALLOC_PERTURB_=204
:MALLOC_CHECK_=2

Comment 1 Xiaowei Li 2012-07-31 07:42:39 UTC
Created attachment 601457 [details]
File: anaconda-tb-z0n80D

Comment 3 Alexander Todorov 2012-08-06 07:52:52 UTC
(In reply to comment #0)
>
> :DiskLabelCommitError: Could not commit to disk /dev/mapper/mpathf
> 

Do you remember what was your setup and steps to reproduce?

Comment 4 Xiaowei Li 2012-08-06 16:38:36 UTC
(In reply to comment #3)
> (In reply to comment #0)
> >
> > :DiskLabelCommitError: Could not commit to disk /dev/mapper/mpathf
> > 
> 
> Do you remember what was your setup and steps to reproduce?

steps to reproduce:
1. install RHEL-6.3 on the boot lun(FC Lun) with lvm layout
2. shutdown the host 
3. resize the boot lun. expand the size from 50G to 60G
4. reinstall RHEL-6.3 to the boot lun with lvm layout
>> see the issue >>
>> some investigation >>
device-mapper: resume ioctl on mpathbp2p2 failed: Invalid argument
device-mapper: remove ioctl on mpathbp2p2 failed: No such device or address
device-mapper: resume ioctl on mpathbp2p2 failed: Invalid argument
device-mapper: remove ioctl on mpathbp2p2 failed: No such device or address
sh-4.1# multipath  -ll
mpathb (360a98000572d574a4e6f63706772594b) dm-0 NETAPP,LUN
size=60G features='2 pg_init_retries 50' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=4 status=active
| |- 3:0:1:0 sdg 8:96  active ready running
| `- 4:0:1:0 sdj 8:144 active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
  |- 3:0:0:0 sda 8:0   active ready running
  `- 4:0:0:0 sdd 8:48  active ready running
sh-4.1# ls -l /dev/sda*
brw-rw----. 1 root disk 8, 0 2012-08-06 08:23 /dev/sda
brw-rw----. 1 root disk 8, 1 2012-08-06 08:23 /dev/sda1
brw-rw----. 1 root disk 8, 2 2012-08-06 08:23 /dev/sda2
sh-4.1# ls -l /dev/mapper/
total 0
crw-rw----. 1 root root 10, 57 2012-08-06 08:23 control
lrwxrwxrwx. 1 root root      7 2012-08-06 12:26 mpathb -> ../dm-0
lrwxrwxrwx. 1 root root      7 2012-08-06 12:26 mpathbp1 -> ../dm-1
lrwxrwxrwx. 1 root root      7 2012-08-06 12:26 mpathbp2 -> ../dm-2
lrwxrwxrwx. 1 root root      7 2012-08-06 12:26 mpathbp2p1 -> ../dm-3
sh-4.1# kpartx -l /dev/mapper/mpathb
mpathb1 : 0 1024000 /dev/mapper/mpathb 2048
mpathb2 : 0 124803072 /dev/mapper/mpathb 1026048
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               2         501      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2             502       61440    62401536   83  Linux
Partition 2 does not end on cylinder boundary.

workaround:
use fdisk to remove the partitions then reboot the host to re-install the OS.

Comment 5 Dave Cantrell 2012-10-22 17:44:58 UTC
Is this problem still happening with a current 6.4 nightly build?

Comment 6 Xiaowei Li 2012-10-26 02:59:19 UTC
I am rethinking this issue. 

This issue is a corner case. I only hit it when i resizing the boot LUN then reinstall the OS to it.

Ths anaconda will report an error when try to create mpath device since the size of boot LUN is changed and the previous partition layout doesn't work. The users have to remove the partitions or re-format the boot lun before OS installation.

I think it's difficult for anaconda to cover all this exception so i will close this bug.