Whamcloud - gitweb
Script to use an existing ext3 MDS setup. Useful for testing recoverability
authoradilger <adilger>
Fri, 22 Mar 2002 19:02:28 +0000 (19:02 +0000)
committeradilger <adilger>
Fri, 22 Mar 2002 19:02:28 +0000 (19:02 +0000)
of an MDS setup with llext3.sh.

lustre/tests/llrext3.sh [new file with mode: 0755]

diff --git a/lustre/tests/llrext3.sh b/lustre/tests/llrext3.sh
new file mode 100755 (executable)
index 0000000..d653804
--- /dev/null
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+SRCDIR="`dirname $0`"
+. $SRCDIR/common.sh
+
+setup
+
+$PTLCTL <<EOF
+mynid localhost
+setup tcp
+connect localhost 1234
+add_uuid self
+add_uuid mds
+add_uuid ost
+quit
+EOF
+
+old_fs ext2 /tmp/ost 10000
+OST=${LOOPDEV}
+
+MDSFS=ext3
+old_fs ${MDSFS} /tmp/mds 10000
+MDS=${LOOPDEV}
+
+echo 0xffffffff > /proc/sys/portals/debug
+
+$OBDCTL <<EOF
+device 0
+attach mds
+setup ${MDS} ${MDSFS}
+device 1
+attach obdext2
+setup ${OST}
+device 2
+attach ost
+setup 1
+device 3
+attach osc
+setup -1
+quit
+EOF
+
+mount -t lustre_light -o device=3 none /mnt/obd