Andreas Haupt wrote:

> Hello,
>
> I'm trying to let kickstart partition two ide disks. Here's an extract 
> of the kickstart file:
>
> #Disk partitioning information:
> clearpart --initlabel --drives hda hdb
> part   /boot        --ondisk hda --fstype ext2   --size     128 
> --asprimary
> part   pv.01        --ondisk hda                 --size       1 --grow
> part   /usr2        --ondisk hdb --fstype ext3   --size       1 
> --asprimary --grow
> volgroup vg00 pv.01
> logvol /afs_cache   --vgname vg00 --fstype ext3   --size    1024 
> --name afs_cach
> e
> logvol swap         --vgname vg00                  --size    1024 
> --name swap
> logvol /            --vgname vg00 --fstype ext3   --size    8192 
> --name root
> logvol /usr1        --vgname vg00 --fstype ext3   --size       1 
> --name usr1 --grow
>
> This doesn't work! The anaconda installer complains with:
>
> Error partitioning
> Could not allocate requested partition:
> Partioning failed. Could not allocate partitions as primary partition.
> Press 'OK' to reboot your system
>
> After removing the hdb entries (/usr2 partition and in clearpart) 
> everything works fine. But actually I want to have both disks 
> configured...
>
> What am I doing wrong here?


I think you need a coma between the 2 hard drive, so :

                            clearpart --initlabel --drives hda hdb

should be something like :

                             clearpart --drives=hda,hdb --initlabel

whitout the partition cleared, the subsequent partionning fail.

> Thanks in advance

Hope it helps.