RE: RAID 1 without specifying devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
[mailto:kickstart-list-bounces@xxxxxxxxxx] On Behalf Of Johnny Ljunggren
Sent: Thursday, September 14, 2006 10:43 AM
To: kickstart-list@xxxxxxxxxx
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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux