Whamcloud - gitweb
Add mds filesystem helper modules to setup and cleanup.
[fs/lustre-release.git] / lustre / tests / llmountcleanup.sh
1 #!/bin/sh
2
3 SRCDIR="`dirname $0`/"
4 . $SRCDIR/common.sh
5
6 $DBGCTL get_debug > /tmp/debug.1
7
8 if mount | grep '/mnt/lustre'; then
9         umount /mnt/lustre || fail "cannot unmount"
10 fi
11
12 killall acceptor
13 rmmod llite
14 rmmod mdc
15
16 $OBDCTL <<EOF
17 name2dev OSCDEV
18 cleanup
19 detach
20 name2dev LDLMDEV
21 cleanup
22 detach
23 name2dev RPCDEV
24 cleanup
25 detach
26 name2dev OSTDEV
27 cleanup
28 detach
29 name2dev OBDDEV
30 cleanup
31 detach
32 name2dev MDSDEV
33 cleanup
34 detach
35 quit
36 EOF
37
38 rmmod obdecho
39 rmmod mds_extN
40 rmmod mds_ext3
41 rmmod mds_ext2
42 rmmod mds
43 rmmod osc
44 rmmod ost
45 rmmod obdfilter
46 rmmod obdext2
47 rmmod ldlm
48 rmmod ptlrpc
49 rmmod obdclass
50 rmmod extN
51
52 $DBGCTL get_debug > /tmp/debug.2
53
54 $PTLCTL <<EOF
55 setup tcp
56 disconnect
57 del_uuid self
58 del_uuid mds
59 del_uuid ost
60 del_uuid ldlm
61 quit
62 EOF
63
64 rmmod kqswnal
65 rmmod ksocknal
66 rmmod portals
67
68 losetup -d ${LOOP}0
69 losetup -d ${LOOP}1
70 losetup -d ${LOOP}2
71 exit 0