--- /dev/null
+#!/bin/sh
+# suggested boilerplate for test script
+
+LCONF=${LCONF:-../utils/lconf}
+NAME=${NAME:-local2}
+
+config=$NAME.xml
+mkconfig=./$NAME.sh
+
+if [ ! -f $config -o $mkconfig -nt $config ]; then
+ sh $mkconfig $config || exit 1
+fi
+
+${LCONF} -v --reformat --gdb $config || exit 2
+
+../utils/lctl <<EOF
+newdev
+attach osc OSC2_localhost OSC2_localhost_UUID
+setup OBD_localhost_UUID NET_localhost_tcp_UUID
+newdev
+attach mdc MDC2_mds1 MDC2_uuid
+setup mds1_UUID NET_localhost_tcp_UUID
+quit
+EOF
+
+mount -t lustre_lite -o osc=OSC2_localhost_UUID,mdc=MDC2_uuid none /mnt/lustre2
--- /dev/null
+#!/bin/sh
+
+umount /mnt/lustre2
+umount /mnt/lustre1
+../utils/lctl <<EOF
+name2dev OSC2_localhost
+cleanup
+detach
+name2dev MDC2_mds1
+cleanup
+detach
+quit
+EOF
+
+LCONF=${LCONF:-../utils/lconf}
+NAME=${NAME:-local}
+
+config=$NAME.xml
+mkconfig=./$NAME.sh
+
+if [ ! -f $config -o $mkconfig -nt $config ]; then
+ sh $mkconfig $config || exit 1
+fi
+
+${LCONF} --cleanup --dump /tmp/debug $config