Bug 615040
Summary: | Multipathd not enabled on boot, although installed with multipath | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Jim Lester <jim.lester> |
Component: | anaconda | Assignee: | David Cantrell <dcantrell> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Release Test Team <release-test-team-automation> |
Severity: | high | Docs Contact: | |
Priority: | low | ||
Version: | 6.0 | CC: | agk, bmarzins, borgan, christophe.varoqui, ddumas, dwysocha, egoggin, heinzm, jstodola, junichi.nomura, kueda, lmb, mbroz, notting, prockai, syeghiay, tao, tranlan |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | anaconda-13.21.63-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-11-10 19:51:00 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: |
Description
Jim Lester
2010-07-15 20:10:22 UTC
This issue has been proposed when we are only considering blocker issues in the current Red Hat Enterprise Linux release. It has been denied for the current Red Hat Enterprise Linux release. ** If you would still like this issue considered for the current release, ask your support representative to file as a blocker on your behalf. Otherwise ask that it be considered for the next Red Hat Enterprise Linux release. ** I would consider not being able to have more than one volume multipathed from a SAN a blocking issue for Enterprise customers. That is basic operation for deployment of boot from SAN servers. Can you attach your config files? This looks like it's a dracut problem, or possibly an anaconda one. When you install with multipathed root/boot, you need to have the multipath devices set up in the initramfs. If user_friendly_names is set, multipath keeps track of which devices should have which names by keeping a mapping in /etc/multipath/bindings. If the devices in the initramfs version of this file don't have the same mappings in the actual version of this fine, you can be problems. To solve this problem, you need to make sure that whatever devices you have in the initramfs version of this file, you also have in the actual file, with the same user_friendly names. This file gets updated when a device is created, so the initramfs can run into problems if it creates any multipath device that it is able to, instead of just the ones it needs to. I'm not sure if it does this, but if it does, then this could cause other problems. I'm going to reassign this to dracut. If that isn't the proper place to fix this, please reassign it. I believe I have identified part of the problem. The boxes that are giving us trouble do not have multipathd enabled at boot. By if we enable multipathd to be part of the run level than behavior is as expected and the new volume is assigned mpathb or higher. [root@smithwicks ~]# chkconfig --list multipathd multipathd 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@smithwicks ~]# cat /etc/multipath.conf # multipath.conf written by anaconda defaults { user_friendly_names yes } blacklist { devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*" devnode "^hd[a-z]" devnode "^dcssblk[0-9]*" device { vendor "DGC" product "LUNZ" } device { vendor "IBM" product "S/390.*" } # don't count normal SATA devices as multipaths device { vendor "ATA" } # don't count 3ware devices as multipaths device { vendor "3ware" } device { vendor "AMCC" } # nor highpoint devices device { vendor "HPT" } device { vendor TEAC product DVD-ROM_DV28EV } } multipaths { multipath { uid 0 alias mpatha gid 0 wwid 36000d3100003d50000000000000003c4 mode 0600 } } (In reply to comment #6) > I believe I have identified part of the problem. The boxes that are giving us > trouble do not have multipathd enabled at boot. By if we enable multipathd to > be part of the run level than behavior is as expected and the new volume is > assigned mpathb or higher. so.. NOTABUG? I guess I would consider it to be a bug that the multipathd daemon isn't automatically configured to start on boot when a multipath install is done. Especially since it can lead to such problems. (In reply to comment #8) > I guess I would consider it to be a bug that the multipathd daemon isn't > automatically configured to start on boot when a multipath install is done. > Especially since it can lead to such problems. That would be an anaconda bug, then. anaconda makes sure the device-mapper-multipath package (which contains multipathd) is installed if you are using mpath devices, but we do not enable or disable services from anaconda. The packages themselves have to do that, otherwise anaconda would have to be in the business of enabling services for each runlevel and for different types of installs. It's far easier to have the packages do that themselves. Reassigning to device-mapper-multipath. I'm not sure what you want multipath to do here. Normally, multipathing gets enabled after install and multipathd is chkconfig'd on then. However for multipath root/boot systems, anaconda is already setting up multipathing. Is it hard for anaconda to also chkconfig multipathd on when it does this? I could have the device-mapper-multipath always chkconfig multipathd on. If there is no /etc/multipath.conf it will blacklist all devices, so it shouldn't do anything. I would rather have put than change in earlier, since it effects all users, if thats that route we're going. Besides, all I'd be doing is running chkconfig as a post-install script. If the device-mapper-multipath package can do that, surely anaconda can do it as well. However, anaconda is in a position to know when it's the right thing to do (only when you are already setting up multipathing in anaconda). It's my understanding that packaging best practices advise against turning on the service automatically from a %post script. anaconda can currently enable services as listed by kickstart, but it has no further mechanism for specifying additional services on a storage-specific basis. However, we do have something for specifying which packages should be installed. It seems trivial to add the same support for services too. Thanks for testing. I also tested this issue on build RHEL6.0-20100811.2 with anaconda-13.21.74-1.el6, multipathd was enabled and running after restart. Moving to VERIFIED. Red Hat Enterprise Linux 6.0 is now available and should resolve the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |