[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: RAID 1 without specifying devices
- From: "Shabazian, Chip" <Chip Shabazian bankofamerica com>
- To: Discussion list about Kickstart <kickstart-list redhat com>
- Subject: RE: RAID 1 without specifying devices
- Date: Thu, 14 Sep 2006 11:04:50 -0700
I've made my installs generic by doing some work in the %pre, then using
%include /tmp/partinfo in the command section.
something like this is what I use in the %pre
# Determine how many drives we have
set $(list-harddrives)
let numd=$#/2
d1=$1
d2=$3
# Use this scheme for two or more drives
if [ $numd -ge 2 ] ; then
cat << EOF >> /tmp/partinfo
YOUR SETUP --ondisk=$d1
YOUR SETUP --ondisk=$d2
EOF
else
# Use this scheme for one drive
cat << EOF >> /tmp/partinfo
YOUR SETUP --ondisk=$d1
EOF
fi
-----Original Message-----
From: kickstart-list-bounces redhat com
[mailto:kickstart-list-bounces redhat com] On Behalf Of Johnny Ljunggren
Sent: Thursday, September 14, 2006 10:43 AM
To: kickstart-list redhat com
Subject: RAID 1 without specifying devices
Hello all
I'm usually installing my systems with Software RAID 1 and have up to
now specified the hard drives to be used by their device names (/dev/hda
etc...), ie part raid.01 --bytes-per-inode=4096 --fstype="raid"
--ondisk=hda --size=10000
Is there a way to create the RAID without specifying --ondisk?
There will always be two disks on these systems, but not necessarily in
the same position each time.
Johnny C
_______________________________________________
Kickstart-list mailing list
Kickstart-list redhat com
https://www.redhat.com/mailman/listinfo/kickstart-list
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]