Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
aa8f8b192a75da6bb5f5a519312f06c6e6166f4b
[fs/lustre-release.git]
/
lustre
/
tests
/
llmountcleanup.sh
1
#!/bin/sh
2
3
SRCDIR="`dirname $0`"
4
. $SRCDIR/common.sh
5
6
umount /mnt/lustre
7
8
killall acceptor
9
rmmod llite
10
rmmod mdc
11
12
$OBDCTL <<EOF
13
device 5
14
cleanup
15
detach
16
device 4
17
cleanup
18
detach
19
device 3
20
cleanup
21
detach
22
device 2
23
cleanup
24
detach
25
device 1
26
cleanup
27
detach
28
device 0
29
cleanup
30
detach
31
quit
32
EOF
33
34
rmmod obdecho
35
rmmod mds
36
rmmod osc
37
rmmod ost
38
rmmod obdfilter
39
rmmod obdext2
40
rmmod ldlm
41
rmmod ptlrpc
42
rmmod obdclass
43
44
$PTLCTL <<EOF
45
setup tcp
46
disconnect
47
del_uuid self
48
del_uuid mds
49
del_uuid ost
50
del_uuid ldlm
51
quit
52
EOF
53
54
rmmod kqswnal
55
rmmod ksocknal
56
rmmod portals
57
58
losetup -d ${LOOP}0
59
losetup -d ${LOOP}1
60
losetup -d ${LOOP}2