Updated cloner3 install, and HPL settings.
Kyle Sheumaker [Mon, 15 Oct 2012 16:32:37 +0000 (11:32 -0500)]
etc/cloner3/cloner_server.sh
etc/cloner3/installer.sh
etc/cloner3/prep_disks.sh
etc/library.sh
usr/local/breakin/hpl/HPL-bottom.txt
usr/local/breakin/hpl/HPL-middle.txt

index 9995557..1e96237 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-. /tmp/cmdline
+. /tmp/cmdline.dat
 
 
 PORT=13200
index 8c172b1..7f9f5f1 100755 (executable)
@@ -194,7 +194,18 @@ do
                        echo "root (hd0,0)" > /cloner/mnt/grub.txt
                        echo "setup (hd0)" >> /cloner/mnt/grub.txt
 
-                       chroot /cloner/mnt ""/sbin/grub --device-map=/boot/grub/device.map --no-floppy --batch < /cloner/mnt/grub.txt"" \ 
+                       GRUB_BIN_PATH=""
+                       if [ -x /cloner/mnt/sbin/grub ]
+                       then
+                               GRUB_BIN_PATH="/sbin/grub"
+                       elif  [ -x /cloner/mnt/usr/sbin/grub ]
+                       then
+                               GRUB_BIN_PATH="/usr/sbin/grub"
+                       else
+                               clone_fatal_error "Can't find the grub binary on mounted filesystem, no bootloader installed"
+                       fi
+
+                       chroot /cloner/mnt ""$GRUB_BIN_PATH --device-map=/boot/grub/device.map --no-floppy --batch < /cloner/mnt/grub.txt"" \ 
                                >> /tmp/stdout.log 2>> /tmp/stderr.log
                        if [ "$?" = "0" ]
                        then
index 4f2f9bc..5ff589d 100755 (executable)
@@ -90,7 +90,7 @@ then
                                PED_DEV_MODEL=`echo $line | cut -d":" -f7`
                
                                msg -n "Creating ${ANSI_BLUE}${PED_DEV_LABEL}${ANSI_DONE} label on $PED_DEV_NAME"
-                               server_log "Creating ${PED_DEV_LABEL} on ${PED_DEV_NAME}" "${_node}"
+                               server_log "Creating ${PED_DEV_LABEL} label on ${PED_DEV_NAME}" "${_node}"
                                CMD="mklabel $PED_DEV_LABEL"
                                /usr/sbin/parted -s $PED_DEV_NAME $CMD
                
@@ -272,7 +272,7 @@ then
                PV_UUID=`echo $line | awk '{print $3}'`
 
                msg -n "Setting UUID on ${ANSI_BLUE}${PV_DEVICE}${ANSI_DONE}"
-               server_log "Setting LVM UUID on {$PV_DEVICE}" "${_node}"
+               server_log "Setting LVM UUID on ${PV_DEVICE}" "${_node}"
 
                /usr/bin/lvm pvcreate -ff -y --uuid ${PV_UUID} \
                        --restorefile /cloner/setup/lvm.${PV_VG} \
index e7d7bd3..006429b 100755 (executable)
@@ -36,6 +36,11 @@ then
        . /tmp/network.dhcp
 fi
 
+if [ -e /tmp/cmdline.dat ]
+then
+       . /tmp/cmdline.dat
+fi
+
 
 msg() {
        ARG1=$1
@@ -108,6 +113,13 @@ modprobe_module() {
 
        MODULE_NAME=${1}
 
+       if [ "${MODULE_NAME}" = "${_skip_module}" ]
+       then
+               msg -n "Skipping module ${ANSI_BLUE}${MODULE_NAME}${ANSI_DONE}"
+               ok_msg
+               return 0
+       fi
+
        msg -n "Trying to load ${ANSI_BLUE}${MODULE_NAME}${ANSI_DONE}"
        /sbin/modprobe "${MODULE_NAME}"  >> /tmp/stdout.log 2>> /tmp/stderr.log
        if [ "$?" = "1" ];
index eed7aa8..05546c2 100644 (file)
@@ -1,16 +1,16 @@
 16.0         threshold
 1            # of panel fact
-0            PFACTs (0=left, 1=Crout, 2=Right)
+2            PFACTs (0=left, 1=Crout, 2=Right)
 1            # of recursive stopping criterium
-2            NBMINs (>= 1)
+4            NBMINs (>= 1)
 1            # of panels in recursion
 2            NDIVs
 1            # of recursive panel fact.
-0 1 2        RFACTs (0=left, 1=Crout, 2=Right)
+1            RFACTs (0=left, 1=Crout, 2=Right)
 1            # of broadcast
-0            BCASTs (0=1rg,1=1rM,2=2rg,3=2rM,4=Lng,5=LnM)
+1            BCASTs (0=1rg,1=1rM,2=2rg,3=2rM,4=Lng,5=LnM)
 1            # of lookahead depth
-0            DEPTHs (>=0)
+1            DEPTHs (>=0)
 2            SWAP (0=bin-exch,1=long,2=mix)
 64           swapping threshold
 0            L1 in (0=transposed,1=no-transposed) form
index 5655a73..60ca680 100644 (file)
@@ -1,4 +1,4 @@
 1            # of NBs
-80     NBs
+128            NBs
 0            PMAP process mapping (0=Row-,1=Column-major)
 1            # of process grids (P x Q)