XFSQA cleanup, add per host config files.
authorNiv Sardi <xaiki@sgi.com>
Thu, 3 Jan 2008 05:15:27 +0000 (05:15 +0000)
committerNiv Sardi <xaiki@sgi.com>
Thu, 3 Jan 2008 05:15:27 +0000 (05:15 +0000)
    This patche adds a new file in ./configs for each host that was
    in the monolithic (ugly) common.config file.

    the files have been auto-generated and might contain some quircks.

    The in-source documentation has been updated as well.
Merge of master-melb:xfs-cmds:30293a by kenmcd.

common.config

index ea5fe412eb01b438330a6e12a18a84229dc22d28..741f65d0275c3f1c702c02773e91da5235d85b13 100644 (file)
@@ -4,6 +4,7 @@
 #
 # setup and check for config parameters, and in particular
 #
+# EMAIL -           email of the script runner.
 # TEST_DIR -        scratch test directory that is in an already
 #                   mounted XFS file system, needs to be be world
 #                   writeable
@@ -21,8 +22,9 @@
 # RMT_IRIXTAPE_DEV- the IRIX remote tape device for the xfsdump tests
 # RMT_TAPE_USER -   remote user for tape device
 #
-# - These can be added to known_hosts() below or a separate local
-#   configuration file can be used (using the HOST_OPTIONS variable).
+# - These can be added to $HOST_CONFIG_DIR (witch default to ./config) 
+#   below or a separate local configuration file can be used (using 
+#   the HOST_OPTIONS variable).
 # - This script is shared by the stress test system and the auto-qa
 #   system (includes both regression test and benchmark components).
 # - TEST_DEV & TEST_DIR must be assigned.
@@ -144,467 +146,33 @@ esac
 
 known_hosts()
 {
-    case "$HOST" in
-        vimes)
-            # dedicated qa machine, used to be sheila
-            [ -z "$MODULAR" ] && MODULAR=1
-            EMAIL="ddiss@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/hdb1
-            [ -z "$TEST_LOGDEV" ] && TEST_LOGDEV=/dev/hdb3
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/hdb2
-            [ -z "$SCRATCH_LOGDEV" ] && SCRATCH_LOGDEV=/dev/hdb4
-            [ -z "$SCRATCH_RTDEV" ] && SCRATCH_RTDEV=/dev/sdb5
-            ;;
-        break)
-            MODULAR=1
-            EMAIL="nathans@larry"
-            SCRATCH_MNT=/mnt/scratch
-            #SCRATCH_DEV=/dev/sda6
-            SCRATCH_DEV=budgie:/mnt/scratch
-            TEST_DIR=/mnt/test
-            #TEST_DEV=/dev/sda5
-            TEST_DEV=budgie:/mnt/test
-            ;;
-        bruce)
-            MODULAR=0
-            EMAIL="nathans@larry"
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/sdb5
-            SCRATCH_RTDEV=/dev/sdc1
-            SCRATCH_LOGDEV=/dev/ram0
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/sdc3
-            TEST_RTDEV=/dev/sdb6
-            TEST_LOGDEV=/dev/ram1
-            #TAPE_DEV=/dev/st0
-            #RMT_TAPE_DEV=bruce:/dev/st0
-            #RMT_IRIXTAPE_DEV=snort:/dev/tape
-            #RMT_TAPE_USER=guest
-            ;;
-        frodo)
-            MODULAR=0
-            EMAIL="nathans@larry"
-            TEST_DEV=/dev/hda6
-            TEST_DIR=/mnt/test
-            SCRATCH_DEV=/dev/hda7
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_LOGDEV=/dev/hda9
-            ;;
-        goldfish)
-            MODULAR=0
-            TEST_DEV=/dev/hdc1
-            TEST_DIR=/mnt/xfs0
-            SCRATCH_DEV=/dev/hdc2
-            SCRATCH_MNT=/mnt/xfs1
-            SCRATCH_LOGDEV=/dev/hdc3
-            ;;
-        burst)
-            TEST_DIR=/xfs
-            TEST_DEV=/dev/hda3
-            SCRATCH_DEV=/dev/hda7
-            SCRATCH_MNT=/scratch
-            ;;
-        lumpy)
-            TEST_DEV=/dev/sdc5
-            TEST_DIR=/mnt/scratch_0
-            SCRATCH_DEV=/dev/sdc7
-            SCRATCH_MNT=/mnt/scratch_2
-            ;;
-        bongo)
-            TEST_DEV=/dev/hda8
-            TEST_DIR=/xfs1
-            SCRATCH_DEV=/dev/hda9
-            SCRATCH_MNT=/xfs2
-            SCRATCH_LOGDEV=/dev/hda10
-            SCRATCH_RTDEV=/dev/hda11
-            ;;
-        surly)
-            TEST_DEV=/dev/hda9
-            TEST_DIR=/mnt/xfs1
-            SCRATCH_DEV=/dev/hda8
-            SCRATCH_MNT=/mnt/xfs0
-            SCRATCH_LOGDEV=/dev/hda10
-            TAPE_DEV=/dev/st0
-            RMT_TAPE_DEV=fuzzy:/dev/st0
-            RMT_IRIXTAPE_DEV=blub:/dev/tape
-            RMT_TAPE_USER=guest
-            ;;
-        permit)
-            TEST_DEV=/dev/sdc1
-            TEST_DIR=/mnt/xfs0
-            SCRATCH_DEV=/dev/sdd1
-            SCRATCH_MNT=/mnt/xfs1
-            ;;
-        indra)
-            TEST_DEV=/dev/sdb1
-            TEST_DIR=/mnt/xfs0
-            SCRATCH_DEV=/dev/sdb2
-            SCRATCH_MNT=/mnt/xfs1
-            ;;
-        usermode)
-            TEST_DEV=/dev/ubd/1
-            TEST_DIR=/mnt/test
-            SCRATCH_DEV=/dev/ubd/2
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_RTDEV=/dev/ubd/3
-            SCRATCH_LOGDEV=/dev/ubd/4
-            ;;
-        lite)
-            TEST_DEV=/dev/sda1
-            TEST_DIR=/mnt/sda1
-            SCRATCH_DEV=/dev/sda2
-            SCRATCH_MNT=/mnt/sda2
-            SCRATCH_LOGDEV=/dev/sda3
-            SCRATCH_RTDEV=/dev/sda4
-            ;;
-        dmfnt2)
-            TEST_DEV=/dev/sda6
-            TEST_DIR=/mnt/test
-            SCRATCH_DEV=/dev/sdc6
-            SCRATCH_MNT=/mnt/scratch
-            TAPE_DEV=/dev/st0
-            RMT_TAPE_DEV=longhorn:/dev/tape
-            # RMT_IRIXTAPE_DEV=longhorn:/dev/tape
-            RMT_TAPE_USER=guest
-            ;;
-        lab343)
-            MODULAR=0
-            EMAIL="hch@sgi.com"
-            TEST_DEV=/dev/sdb1
-            SCRATCH_DEV=/dev/sdb2
-            SCRATCH_LOGDEV=/dev/sdb5
-            SCRATCH_RTDEV=/dev/sdb6
-            TEST_DIR=/qa/test
-            SCRATCH_MNT=/qa/scratch
-            ;;
-        dribble)
-            #dedicated qa machine
-            MODULAR=0
-            EMAIL="ddiss@sgi.com"
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/dsk/dks0d2s0
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/dsk/dks0d2s6
-            #TAPE_DEV=/dev/tape
-            #RMT_TAPE_DEV=icy:/dev/st0
-            #RMT_TAPE_USER=guest
-            ;;
-        carrot)
-            #dedicated qa machine, used to be dribble
-            MODULAR=0
-            EMAIL="ddiss@sgi.com"
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/dsk/dks0d2s0
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/dsk/dks0d2s6
-            #TAPE_DEV=/dev/tape
-            #RMT_TAPE_DEV=icy:/dev/st0
-            #RMT_TAPE_USER=guest
-            ;;
-        giro)
-            MODULAR=0
-            EMAIL="ddiss@sgi.com"
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/dsk/dks0d2s0
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/dsk/dks0d2s6
-            #TAPE_DEV=/dev/tape
-            #RMT_TAPE_DEV=icy:/dev/st0
-            #RMT_TAPE_USER=guest
-            ;;
-        cxfsirix1)
-            EMAIL="ajones@sgi.com"
-            TEST_DIR=/mnt/xfs_test0
-            TEST_DEV=/dev/cxvm/xfs_test0
-            SCRATCH_MNT=/mnt/xfs_test1
-            SCRATCH_DEV=/dev/cxvm/xfs_test1
-            ;;
-        hammer)
-            EMAIL="bnaujok@sgi.com"
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/sda5
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/sda6
-            ;;
-        emu)
-            MODULAR=0
-            EMAIL="vapo@sgi.com"
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/sdb1
-            SCRATCH_MNT=/mnt/scratch1
-            SCRATCH_DEV=/dev/sdb2
-            ;;
-        scaly)
-            EMAIL="bnaujok@sgi.com"
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/sdd3
-            #TEST_LOGDEV=/dev/sdd1
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/sdd4
-            #SCRATCH_LOGDEV=/dev/sdd2
-            ;;
-        gonzo1)
-            EMAIL="leenap@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/xfs_test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/lxvm/xfs_test
-            [ -z "$TEST_LOGDEV" ] && TEST_LOGDEV=/dev/sdb1
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/xfs_scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/lxvm/xfs_scratch
-            [ -z "$SCRATCH_LOGDEV" ] && SCRATCH_LOGDEV=/dev/sdb2
-            [ -z "$SCRATCH_RTDEV" ] && SCRATCH_RTDEV=/dev/sdb3
-           ;;
-        kermit1)
-            EMAIL="mohamedb@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/xfs_test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/lxvm/xfs_test
-            [ -z "$TEST_LOGDEV" ] && TEST_LOGDEV=/dev/sdb1
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/xfs_scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/lxvm/xfs_scratch
-            [ -z "$SCRATCH_LOGDEV" ] && SCRATCH_LOGDEV=/dev/sdb2
-            [ -z "$SCRATCH_RTDEV" ] && SCRATCH_RTDEV=/dev/sdb3
-           ;;
-        perf4150.engr.sgi.com)
-            EMAIL="leenap@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/xfs_test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/lxvm/xfs_test
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/xfs_scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/lxvm/xfs_scratch
-            ;;
-        rizzo1)
-            EMAIL="mohamedb@sgi.com"
-            TEST_DIR=/mnt/xfs_test
-            TEST_DEV=/dev/lxvm/xfs_test
-            SCRATCH_MNT=/mnt/xfs_scratch
-            SCRATCH_DEV=/dev/lxvm/xfs_scratch
-            ;;
-        gaspode)
-            #dedicated qa machine (has some values already set)
-            [ -z "$MODULAR" ] && MODULAR=1
-            EMAIL="ddiss@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/sdb1
-            [ -z "$TEST_LOGDEV" ] && TEST_LOGDEV=/dev/sdb3
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/sdb2
-            [ -z "$SCRATCH_LOGDEV" ] && SCRATCH_LOGDEV=/dev/sdb4
-            [ -z "$SCRATCH_RTDEV" ] && SCRATCH_RTDEV=/dev/sdb5
-            [ -z "$TAPE_DEV" ] && TAPE_DEV=/dev/st0
-            ;;
-       134.14.54.101)
-            #The IP for file system resource on HA cluster.
-           EMAIL="leenap@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/lxvm/test
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/lxvm/scratch
-            ;;
-        134.14.54.86)
-            #The IP for file system resource on HA cluster.
-            EMAIL="leenap@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/lxvm/test
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/lxvm/scratch
-            ;;
-       hellfire)
-            MODULAR=1
-            EMAIL="ajones@sgi.com"
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/sda3
-            TEST_LOGDEV=/dev/sda5
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/sda4
-            SCRATCH_LOGDEV=/dev/sda6
-            #SCRATCH_RTDEV=/dev/sda7
-            TAPE_DEV=/dev/st0
-            #RMT_IRIXTAPE_DEV=snort:/dev/tape
-            #RMT_TAPE_DEV=icy:/dev/st0
-            #RMT_TAPE_USER=guest
-            ;;
-        rooster)
-            MODULAR=1
-            EMAIL="ajones@sgi.com"
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/sdb1
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/sdb2
-            TAPE_DEV=/dev/st0
-            #RMT_IRIXTAPE_DEV=snort:/dev/tape
-            #RMT_TAPE_DEV=icy:/dev/st0
-            #RMT_TAPE_USER=guest
-            ;;
-        rosella)
-            MODULAR=1
-            EMAIL="ajones@sgi.com"
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/sdb1
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/sdb3
-            TAPE_DEV=/dev/st0
-            #RMT_IRIXTAPE_DEV=snort:/dev/tape
-            #RMT_TAPE_DEV=icy:/dev/st0
-            #RMT_TAPE_USER=guest
-            ;;
-        crackle)
-            #irix-crackle
-            TEST_DIR=/mnt/xfs
-            SCRATCH_MNT=/mnt/xfs2
-            TEST_DEV=/dev/dsk/dks0d1s3
-            SCRATCH_DEV=/dev/dsk/dks0d1s4
-            ;;
-        tinkle)
-            #irix-patchbox-tinkle
-            TEST_DEV=/dev/dsk/dks0d2s0
-            TEST_DIR=/mnt/xfs_test
-            SCRATCH_DEV=/dev/dsk/dks0d2s1
-            SCRATCH_MNT=/mnt/xfs_scratch
-            ;;
-        cocky)
-            MODULAR=1
-            EMAIL="ajones@sgi.com"
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/sdb1
-            TEST_LOGDEV=/dev/sdb3
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/sdb2
-            SCRATCH_LOGDEV=/dev/sdb4
-            #SCRATCH_RTDEV=/dev/sdb5
-            TAPE_DEV=/dev/st0
-            #RMT_IRIXTAPE_DEV=snort:/dev/tape
-            #RMT_TAPE_DEV=icy:/dev/st0
-            #RMT_TAPE_USER=guest
-            ;;
-        nobbs)
-            #dedicated qa machine, used to be porky
-            [ -z "$MODULAR" ] && MODULAR=1
-            EMAIL="ddiss@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/sdb1
-            [ -z "$TEST_LOGDEV" ] && TEST_LOGDEV=/dev/sdb3
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/sdb2
-            [ -z "$SCRATCH_LOGDEV" ] && SCRATCH_LOGDEV=/dev/sdb4
-            #[ -z "$SCRATCH_RTDEV" ] && SCRATCH_RTDEV=/dev/sdb7
-            #[ -z "$TAPE_DEV" ] && TAPE_DEV=/dev/st0
-            ;;
-        puffy)
-            MODULAR=1
-            EMAIL="tes@sgi.com"
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/sda7
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/sda8
-            TAPE_DEV=/dev/st0
-            ;;
-        galah)
-            MODULAR=1
-            EMAIL="ddiss@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/sdb1
-            [ -z "$TEST_LOGDEV" ] && TEST_LOGDEV=/dev/sdb3
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/sdb2
-            [ -z "$SCRATCH_LOGDEV" ] && SCRATCH_LOGDEV=/dev/sdb4
-            ;;
-        screamer)
-            #dedicated qa machine (has some values already set)
-            [ -z "$MODULAR" ] && MODULAR=1
-            EMAIL="ddiss@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/sdb1
-            #[ -z "$TEST_LOGDEV" ] && TEST_LOGDEV=/dev/sdb3
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/sdb2
-            #[ -z "$SCRATCH_LOGDEV" ] && SCRATCH_LOGDEV=/dev/sdb4
-            #[ -z "$SCRATCH_RTDEV" ] && SCRATCH_RTDEV=/dev/sdb5
-            ;;
-        linux-chatz)
-            #vmware on pc-chatz
-            MODULAR=1
-            EMAIL="chatz@sgi.com"
-            USE_EXTERNAL=yes
-            TEST_DIR="/mnt/data"
-            TEST_DEV=/dev/sdd
-            TEST_LOGDEV=/dev/sdb
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/sdg
-            SCRATCH_LOGDEV=/mnt/sde
-            ;;
-        chapter11)
-            [ -z "$MODULAR" ] && MODULAR=1
-            EMAIL="ddiss@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/sdb5
-            [ -z "$TEST_LOGDEV" ] && TEST_LOGDEV=/dev/sdb7
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/sdb6
-            [ -z "$SCRATCH_LOGDEV" ] && SCRATCH_LOGDEV=/dev/sdb8
-            [ -z "$SCRATCH_RTDEV" ] && SCRATCH_RTDEV=/dev/sdb9
-            ;;
-        dassi)
-            MODULAR=0
-            EMAIL="ddiss@sgi.com"
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/dsk/dks0d2s0
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/dsk/dks0d2s1
-            ;;
-        molten)
-            [ -z "$MODULAR" ] && MODULAR=1
-            EMAIL="ddiss@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/sdb5
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/sdb6
-            ;;
-        howler)
-            [ -z "$MODULAR" ] && MODULAR=1
-            EMAIL="allanr@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/sdb1
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/sdb2
-            ;;
-        flame)
-            #dedicated qa machine (has some values already set)
-            [ -z "$MODULAR" ] && MODULAR=1
-            EMAIL="ddiss@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/xfs_test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/lxvm/xfs_test
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/xfs_scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/lxvm/xfs_scratch
-            ;;
-        growler)
-            [ -z "$MODULAR" ] && MODULAR=1
-            EMAIL="ddiss@sgi.com"
-            [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/test
-            [ -z "$TEST_DEV" ] && TEST_DEV=/dev/sdb1
-            [ -z "$TEST_LOGDEV" ] && TEST_LOGDEV=/dev/sdb3
-            [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/scratch
-            [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/sdb2
-            [ -z "$SCRATCH_LOGDEV" ] && SCRATCH_LOGDEV=/dev/sdb4
-            ;;
-        melt)
-            MODULAR=1
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/sdb1
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/sdb2
-            ;;
-        mallet)
-            MODULAR=1
-            TEST_DIR=/mnt/test
-            TEST_DEV=/dev/sda3
-            SCRATCH_MNT=/mnt/scratch
-            SCRATCH_DEV=/dev/sda4
-            ;;
-        *)
-            echo "Error: need to define parameters for host $HOST"
-            exit 1
-            ;;
-    esac
+  [ "$HOST_CONFIG_DIR" ] || HOST_CONFIG_DIR=`pwd`/configs
+
+  [ -f $HOST_CONFIG_DIR/$HOST ]        && . $HOST_CONFIG_DIR/$HOST
+  [ -f $HOST_CONFIG_DIR/$HOST.config ] && . $HOST_CONFIG_DIR/$HOST.config
+
+  MC=""
+#  Non-Mandatory Config values.
+#  [ -z "$MODULAR" ]        && MC="$MC MODULAR"
+#  [ -z "$TEST_LOGDEV" ]    && MC="$MC TEST_LOGDEV"
+#  [ -z "$SCRATCH_LOGDEV" ] && MC="$MC SCRATCH_LOGDEV"
+#  [ -z "$SCRATCH_RTDEV" ]  && MC="$MC SCRATCH_RTDEV"
+
+  [ -z "$EMAIL" ]          && MC="$MC EMAIL"
+  [ -z "$TEST_DIR" ]       && MC="$MC TEST_DIR"
+  [ -z "$TEST_DEV" ]       && MC="$MC TEST_DEV"
+
+  [ -z "$SCRATCH_MNT" ]    && MC="$MC SCRATCH_MNT"
+  [ -z "$SCRATCH_DEV" ]    && MC="$MC SCRATCH_DEV"
+
+  [ "$MC" ] && (echo "Warning: need to define parameters for host $HOST";\
+               echo "       or set variables:"; \
+               echo "       $MC")
+#  if [ -e configs/$HOST.config ]
+#     then echo "Not carring, we have a configfile ($HOST_CONFIG_DIR/$HOST)"
+#  else 
+     [ "$MC" ] &&  exit 1
+#  fi
 }
 
 if [ -f "$HOST_OPTIONS" ]; then