Whamcloud - gitweb
- hacked up script for easy testing of two mdc two mountpoints.
authorbraam <braam>
Tue, 26 Nov 2002 20:59:44 +0000 (20:59 +0000)
committerbraam <braam>
Tue, 26 Nov 2002 20:59:44 +0000 (20:59 +0000)
lustre/tests/llmount2-hack.sh [new file with mode: 0644]
lustre/tests/llmountcleanup2-hack.sh [new file with mode: 0644]

diff --git a/lustre/tests/llmount2-hack.sh b/lustre/tests/llmount2-hack.sh
new file mode 100644 (file)
index 0000000..d17805a
--- /dev/null
@@ -0,0 +1,26 @@
+#!/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
diff --git a/lustre/tests/llmountcleanup2-hack.sh b/lustre/tests/llmountcleanup2-hack.sh
new file mode 100644 (file)
index 0000000..b2996cf
--- /dev/null
@@ -0,0 +1,25 @@
+#!/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