New kickstart builds fail with - Disk “sdb” given in part command does not exist.

https://access.redhat.com/solutions/3727751

Solution Verified - Updated June 14 2024 at 2:46 PM - English Environment Red Hat Enterprise Linux 6.x Red Hat Enterprise Linux 7.x Issue Attempting to build a server with kickstart fails with: Raw 10:21:20,671 ERR anaconda: storage configuration failed: The following problem occurred on line 37 of the kickstart file: Disk “sdb” given in part command does not exist. Resolution Correct the configuration to either remove the below line: Raw ignoredisk –only-use=sda Or, change it to include sdb as well: Raw ignoredisk –only-use=sda,sdb Root Cause Looking into the kickstart config, an option specified earlier in the file was: Raw ignoredisk –only-use=sda Looking at the documentation: Raw –only-use - Specifies a list of disks for the installation program to use. All other disks are ignored. For example, to use disk sda during installation and ignore all other disks:

ignoredisk –only-use=sda Diagnostic Steps The kickstart file with line numbers is as below: Raw … 6:cdrom 8:firstboot –enable 9:ignoredisk –only-use=sda <————————— 11:keyboard –vckeymap=us –xlayouts=’us’ 22:selinux –disabled 23:firewall –disabled 26:bootloader –location=mbr –driveorder=sda,sdb 30:clearpart –all –drives=sda,sdb –initlabel 33:ignoredisk –only-use=sda,sdb 36:part raid.sda0 –size 512 –asprimary –ondrive=sda 37:part raid.sdb0 –size 512 –asprimary –ondrive=sdb <————————— 40:part raid.sda2 –size 40960 –ondrive=sda 41:part raid.sdb2 –size 40960 –ondrive=sdb 44:part raid.sda1 –size 12288 –ondrive=sda … 74:%end The anaconda logs show: Raw 10:21:20,591 WARN anaconda: requested drive sdb in boot drive order doesn’t exist or cannot be used 10:21:20,593 DEBUG anaconda: new disk order: [u’sda’] 10:21:20,594 DEBUG anaconda: Bootloader: use ‘sda’ first disk from driveorder as boot drive, dry run True 10:21:20,671 ERR anaconda: storage configuration failed: The following problem occurred on line 37 of the kickstart file:

Disk “sdb” given in part command does not exist.

10:21:23,458 DEBUG anaconda: Entered hub: SummaryHub 10:21:23,495 INFO anaconda: fs space: 0 B needed: 1120.1 MiB 10:21:23,507 ERR anaconda: Not enough space in file systems for the current software selection. An additional 1120.1 MiB is needed. 10:21:23,511 INFO anaconda: Running Thread: AnaInputThread1 (139787846293248)

Updated: