Red Hat Bugzilla – Bug 987277
Installer can't automatically detect appropriate storage device for RHEL 6.4 x64 automated installation in UEFI mode
Last modified: 2013-07-31 14:22:25 EDT
Created attachment 777185 [details]
kickstart file for RHEL 6.4 x64 installation in UEFI mode
Description of problem:
When multiple storage devices exist in system that support UEFI, sometimes RHEL 6.4 x64 installer can't automatically detect appropriate storage device to execute installation under UEFI mode.
In my system, there are two storage devices, one is 500GB, another is 36MB. I use kickstart file(refer to attachment) to execute automated installation. In the kickstart file, two commands use dev name "sda":
bootloader --location=partition --driveorder=sda --append="crashkernel=auto rhgb quiet"
clearpart --all --drives=sda
Sometimes the installation succeed because I find that the 500GB device is named "/dev/sda" and the 36MB device is named "/dev/sdb" via console Ctrl+Alt+F2. But sometimes the installation failed because the 36MB device is named "/dev/sda" and the 500GB device is named "/dev/sdb". The message shows "Could not find enough free space for automatic partitioning"(refer to attachment).
I remove "--drives=sda" from clearpart command in kickstart file. The symptom
still exist. sometimes installation succeed, sometimes failed.
I remove "--drives=sda" and "--driveorder=sda", the installation failed. It shows "Could not create partition /boot/efi".
I don't know how the installer detect storage devices. How to let installer automatically select appropriate storage device for installation via kickstart?
Version-Release number of selected component (if applicable):
anaconda for RHEL 6.4 x64
Steps to Reproduce:
1. Prepare multiple storage devices on your system. Some devices are too small and can't be used for OS installation. Some devices are large and can be used for OS installation.
2. Use the specific kickstart file to install RHEL 6.4 x64 repeatedly.
Sometimes installation succeed, sometimes faild.
Installer automatically select appropriate storage device via kickstart file and the installation always succeed.
Created attachment 777186 [details]
screenshot for installation failed
Names like sda and sdb are not guaranteed. Use /dev/disk/by-path for stable names. You can use these in your kickstart file, as explained in the Migration Planning Guide for RHEL-6:
You can also use /dev/disk/by-id names.
While Red Hat welcomes bug reports on Red Hat products here in our public bugzilla database, please keep in mind that bugzilla is not a support tool or means of accessing support. If you would like technical support please visit our support portal at access.redhat.com or call us for information on subscription offerings to suit your needs.