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