Whamcloud - gitweb
Script to set up MDS using ext3 (basically llmount.sh with ext3 instead of
authoradilger <adilger>
Wed, 13 Mar 2002 19:07:20 +0000 (19:07 +0000)
committeradilger <adilger>
Wed, 13 Mar 2002 19:07:20 +0000 (19:07 +0000)
ext2 for MDS).  Will not work unless ext3 has been patched with a_ops=&ext3_ops
in fs/ext3/inode.c and fs/ext3/namei.c.  Not sure if that is the correct
solution yet or not.

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

diff --git a/lustre/tests/llext3.sh b/lustre/tests/llext3.sh
new file mode 100755 (executable)
index 0000000..211cfdf
--- /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
+
+new_fs ext2 /tmp/ost 10000
+OST=$LOOPDEV
+
+MDSFS=ext3
+new_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