Rudi Ahlers wrote:
Michael DeHaan wrote:
Rudi Ahlers wrote:
Hi all
I would like to put together a kickstart script which will allow me
to install CentOS on many different platforms, regardless of the
number & types of drive installed. If the system has 3 drives, I'd
like to setup RAID 1 + 1 hot spare, for example. If it has 4 HDD's,
then I'd like to setup RAID10, and for 10 HDD's, RAID 50.
So, after trying many different options, I still can't get it to
work, but recently found the following website,
http://evuraan.blogspot.com/2005/02/auto-finding-your-hard-drives-for.html
which basically outlines a way to determine how many drives are in
the machine, but it's very basic.
This script is a bit overkill. From cobbler's snippets directory, I
have this for default drive selection code. You will have do a bit
more get RAID auto-configured, but that is left as an exercise for
the reader.
%include /tmp/partinfo
%pre
# Determine how many drives we have
set \$(list-harddrives)
let numd=\$#/2
d1=\$1
d2=\$3
cat << EOF > /tmp/partinfo
part / --fstype ext3 --size=1024 --grow --ondisk=\$d1 --asprimary
part swap --size=1024 --ondisk=\$d1 --asprimary
EOF
I've tried that example already, as well, but the partitions never get
created, with the more advanced code below:
This is not the problem of $(list-harddrives) but more likely what you
were doing in your kickstart.
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list