We need to repeatably reinstall on systems whilst leaving an attached disk or disks unmodified. The kickstart file we use includes: clearpart --drives=sda --all --initlabel part /boot --fstype ext3 --size=512 --ondisk=sda part pv.1 --size=0 --grow --ondisk=sda volgroup vg0 --pesize=32768 pv.1 logvol / --fstype ext3 --name=root --vgname=vg0 --size=15360 logvol swap --fstype swap --name=swap --vgname=vg0 --size=8192 and in general this works. However, if anaconda doesn't understand the other disk (eg. it has a GPT label, or it's a raw LVM pv), it aborts, even though it's not supposed to touch that disk at all. Additionally, in the case of sdb with a GPT label and an LVM vg (name vg1), an interactive install offers the choices of 'ignore' and 'format'. Choosing ignore results in the following unhandled exception: SystemError: pvcreate failed for <fsset.PartitionDevice instance at ...> from anaconda/fsset.py line 1996 in setupDevice. To reproduce: 1. Kickstart a non-interactive install on a two disk system using only the first disk as above 2. Manually populate the second disk with eg. GPT label and data 3. Retry the install, which will fail. Desired behaviour: Silently ignore the disks which aren't required for the install.
requested by Jams Antill
Hi, I came across this bug, when searching BZ for something similar. I noticed that this can be fixed with the undocumented "ignoredisk --drives=<disk>,<...>" option. Although this option didn't work too well with the 'clearpart' directive (bug #186438), it is fixed now in RHEL4 U5 regards, - steve
Yes, ignoredisk is the answer (it's undocumented as it was added in a RHEL4 update)