I tried to using kickstart to do server upgrade from RHEL4.8 to RHEL 5.5 automatically, non-interactive.
I have two internal disks:
sda --- OS disk
sdb --- application disk
"sdb" is under LVM control, which has LVM info in second sector, I didn't do "parted" to label sdb before I run "pvcreate", so there is nothing on first sector on sdb, which caused the anaconda not happy, and kickstart did not honor "ignoredisk" option, I always got:
Welcome to Red Hat +--------------+ Warning +--------------+ | | | The partition table on device sdb ^ | | (ATA HITACHI HDS7225S 238465 MB) # | | was unreadable. : | | To create new partitions it must : | | be initialized, causing the loss : | | of ALL DATA on this drive. : | | : | | This operation will override any : | | previous installation choices : | | about which drives to ignore. : | | : | | Would you like to initialize this v | | | | +-----+ +----+ | | | Yes | | No | | | +-----+ +----+ | | | | | +---------------------------------------+
I need to select "No" to continue the upgrade. Which is annoying, I want automatically do the upgrade. BTW, after I select "No", the upgrade worked well.
Here is my kickstart profile:
lang en_US.UTF-8
keyboard us
ignoredisk --only-use=sda
bootloader --location=mbr
clearpart --none
upgrade
url --url
http://192.168.1.100/repository/rhel..._64/os/server/
skipx
text
reboot
and I tried the following options:
clearpart --none --drives=sda
clearpart --none without --initlabel --drives=sdb
and I did not get the initalize popped up window, but it did not hornor "without" either, it still touched the first sector of sdb, which I don't want it.
I need help to make the kickstart to ignore the disk "sdb" during upgrade process, or automatically feed "no" to the disk initialize question from the kickstart profile.