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 scripts to use name2dev.
[fs/lustre-release.git]
/
lustre
/
tests
/
llmountcleanup.sh
1
#!/bin/sh
2
3
SRCDIR="`dirname $0`"
4
. $SRCDIR/common.sh
5
6
$DEBCTL get_debug > /tmp/debug
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
48
$PTLCTL <<EOF
49
setup tcp
50
disconnect
51
del_uuid self
52
del_uuid mds
53
del_uuid ost
54
del_uuid ldlm
55
quit
56
EOF
57
58
rmmod kqswnal
59
rmmod ksocknal
60
rmmod portals
61
62
losetup -d ${LOOP}0
63
losetup -d ${LOOP}1
64
losetup -d ${LOOP}2