Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update configurations to set up LDLM where needed.
[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
40
rmmod osc
41
rmmod ost
42
rmmod obdfilter
43
rmmod obdext2
44
rmmod ldlm
45
rmmod ptlrpc
46
rmmod obdclass
47
rmmod extN
48
49
$DBGCTL get_debug > /tmp/debug.2
50
51
$PTLCTL <<EOF
52
setup tcp
53
disconnect
54
del_uuid self
55
del_uuid mds
56
del_uuid ost
57
del_uuid ldlm
58
quit
59
EOF
60
61
rmmod kqswnal
62
rmmod ksocknal
63
rmmod portals
64
65
losetup -d ${LOOP}0
66
losetup -d ${LOOP}1
67
losetup -d ${LOOP}2
68
exit 0