diff --git a/xCAT-server/share/xcat/install/rh/service.raid1.rhel6.ppc64.tmpl b/xCAT-server/share/xcat/install/rh/service.raid1.rhel6.ppc64.tmpl new file mode 100644 index 000000000..8cf0428e3 --- /dev/null +++ b/xCAT-server/share/xcat/install/rh/service.raid1.rhel6.ppc64.tmpl @@ -0,0 +1,145 @@ +#egan@us.ibm.com +# +cmdline + +lang en_US +network --bootproto dhcp + +# +# Where's the source? +# nfs --server hostname.of.server or IP --dir /path/to/RH/CD/image +# +#nfs --server #XCATVAR:INSTALL_NFS# --dir #XCATVAR:INSTALL_SRC_DIR# +url --url http://#TABLE:noderes:$NODE:nfsserver#/install/#TABLE:nodetype:$NODE:os#/#TABLE:nodetype:$NODE:arch# + +#device ethernet e100 +keyboard "us" + +# +# Clear the MBR +# +zerombr yes + +# +# Wipe out the disk +# +clearpart --all --initlabel +#clearpart --linux +key --skip + +# +# Customize to fit your needs +# + +#No RAID +#/boot really significant for this sort of setup nowadays? +#part None --fstype "PPC PReP Boot" --size 8 +#part /boot --size 50 --fstype ext4 + +#part swap --size 1024 +#part / --size 1 --grow --fstype ext4 + +#RAID 0 /scr for performance +#part / --size 1024 --ondisk sda +#part swap --size 512 --ondisk sda +#part /var --size 1024 --ondisk sdb +#part swap --size 512 --ondisk sdb +#part raid.01 --size 1 --grow --ondisk sda +#part raid.02 --size 1 --grow --ondisk sdb +#raid /scr --level 0 --device md0 raid.01 raid.02 + +#Full RAID 1 Sample +part None --fstype "PPC PReP Boot" --size 8 --ondisk sda --asprimary +part None --fstype "PPC PReP Boot" --size=8 --ondisk sdb --asprimary + + +part raid.01 --size 200 --fstype ext4 --ondisk sda +part raid.02 --size 200 --fstype ext4 --ondisk sdb +raid /boot --level 1 --device md0 raid.01 raid.02 + +part raid.11 --size 1024 --ondisk sda +part raid.12 --size 1024 --ondisk sdb +raid swap --level 1 --device md1 raid.11 raid.12 + +part raid.21 --size 1 --fstype ext4 --grow --ondisk sda +part raid.22 --size 1 --fstype ext4 --grow --ondisk sdb +raid / --level 1 --device md2 raid.21 raid.22 + +# +# bootloader config +# --append +# --useLilo +# --md5pass +# +bootloader + +# +# install or upgrade +# +install + +# +# text mode install (default is graphical) +# +text + +# +# firewall +# +firewall --disabled + +# +# Select a zone +# Add the --utc switch if your hardware clock is set to GMT +# +#timezone US/Hawaii +#timezone US/Pacific +#timezone US/Mountain +#timezone US/Central +#timezone US/Eastern +timezone --utc "#TABLE:site:key=timezone:value#" + +# +# Don't do X +# +skipx + + +# +# To generate an encrypted root password use: +# +# perl -e 'print crypt("blah","Xa") . "\n";'p +# openssl passwd -apr1 -salt xxxxxxxx password +# +# where "blah" is your root password. +# +#rootpw --iscrypted XaLGAVe1C41x2 +#rootpw XaLGAVe1C41x2 --iscrypted +rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password# + +# +# NIS setup: auth --enablenis --nisdomain sensenet +# --nisserver neptune --useshadow --enablemd5 +# +# OR +auth --useshadow --enablemd5 + +# +# SE Linux +# +selinux --disabled + +# +# Reboot after installation +# +reboot + +# +#end of section +# +%packages +#INCLUDE_DEFAULT_PKGLIST# +%pre +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh# +%post +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh# diff --git a/xCAT/postscripts/setbootfromdisk b/xCAT/postscripts/setbootfromdisk index 9d33dbd4a..f8e4760aa 100755 --- a/xCAT/postscripts/setbootfromdisk +++ b/xCAT/postscripts/setbootfromdisk @@ -24,6 +24,16 @@ if [[ $OS = "Linux" ]]; then fi BOOTDEVICE=`echo $BOOTENTRY | awk '{print $1}'` + + #software raid, assume sda and sdb + if echo $BOOTDEVICE | grep "md" + then + logger -t xcat setbootfromdisk: Setting sda sdb to be the default bootup device + echo "setbootfromdisk: setting up sda sdb to be the default bootup device" + bootlist -m normal sda sdb + exit 0 + fi + if [[ -z $BOOTDEVICE ]]; then logger -t xcat setbootfromdisk: cannot find the booting device else