Bug 654444
Summary: | ignoredisk statement behaviour has changed in RHEL6 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Gerardo Arceri <gea> |
Component: | anaconda | Assignee: | Anaconda Maintenance Team <anaconda-maint-list> |
Status: | CLOSED NOTABUG | QA Contact: | Release Test Team <release-test-team-automation> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 6.0 | CC: | mostroski, peter.sjoberg |
Target Milestone: | rc | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-11-18 22:13: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: |
Description
Gerardo Arceri
2010-11-17 21:21:06 UTC
This is documented in the migration guide: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Migration_Planning_Guide/ch02s02s02.html So what is the reason to fail when a ignored disk is not found ? I see no value-add in requiring a ignored disk to exist. Adding things like ignoredisk --drives=/dev/disk/by-path/pci-0000:0f:00.0-scsi-0:0:0:2 or even ignoredisk --drives=/dev/disk/by-path/pci-0000:0f:00.0-scsi-0:0:1:* fails just as bad as --drives=sdb when there is no :2 disk As explained on the page linked to from comment #2: "Kickstart will halt with an error in more cases than previous versions. For example, if you refer to a disk that does not exist, the installation will halt and inform you of the error. This is designed to help detect errors in Kickstart files before they lead to larger problems. As a side-effect, files that are designed to be generic across different machine configurations may fail more often. These should be dealt with on a case-by-case basis." If would like some help updating your kickstart file for RHEL 6.0, see the Kickstart documentation as well as the Migration Guide for RHEL 6.0. I agree with Peter and Gerardo. For RHEL5 kickstart builds I have relied on ignoredisk and nousbstorage to ensure that my USB Installation media is not wiped out by the clearpart --all directive, while permitting the same unmodified ks.cfg file to work if I chose to use CD/DVD installation media with no USB attached. I don't agree with the logic for outright failure if a wildcard specification for ignoredisk does not match. I understand the point made in the documentation that this is to prevent the possibility that an error in the ignoredisk specification could lead to other errors. However, I feel that this unreasonably limits some perfectly valid configuration scenarios for system administrators. I propose that an option be added to the ignoredisk directive to explicitly allow a no-match scenario to proceed without error, e.g: ignoredisk --drives=/dev/disk/by-path/pci-*-usb-* --allow-nomatches By allowing the "no match" case to be explictly permitted, you would give more flexibility to system administrators to do what works best for them. For what it's worth, I've worked around my problem using a %pre script to unload the usb_storage module, however such a workaround might not be possible in other scenarios. If you need another example: I have also frequently done builds where I need to ensure that the kickstart config ONLY wipes out and uses the first disk array on a system, where a system may or may not have multiple arrays configured. Again, it would be extremely beneficial to me to be able to use a generic kickstart config that ignores the second array IF it exists, but also proceeds successfully if it does not. That way I don't have to deal with the inevitable situation where I accidentally wipe out a disk array by using the wrong kickstart configuration for that particular hardware. I haven't gotten this far yet but maybe I can come up with a creative %pre script to address this. Maybe I will find --only-use to be sufficient. There is certainly value in having a simplified configuration available in the kickstart configuration options, as was previously available in RHEL5. Also, for what it's worth, the Migration Guide is very helpful explaining the new behavior but it seems that the Installation Guide should also explain this behavior. Thanks for your consideration! So as I understand this we have a few options 1 - have exactly the same hardware every where or have a specific ks.cfg for every server 2 - run a %pre script that checks if md0 is around and only then add it to the ignore list (that's assuming %pre isn't to late in the overall disk discovery) 3 - forget about ignore disk all together and handle the disk in %pre 1 - I don't see that in any place where you have more then one server (at what point you don't need kickstart anyway) 2 & 3 - why is there even an option to exclude a disk if I have to figure out everything my self first ? |