Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
523c21987a4c13ffd91e1b5a622000b1afc21fac
[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 4
14
cleanup
15
detach
16
device 3
17
cleanup
18
detach
19
device 2
20
cleanup
21
detach
22
device 1
23
cleanup
24
detach
25
device 0
26
cleanup
27
detach
28
quit
29
EOF
30
31
rmmod obdecho
32
rmmod mds
33
rmmod osc
34
rmmod ost
35
rmmod obdfilter
36
rmmod obdext2
37
rmmod ldlm
38
rmmod ptlrpc
39
rmmod obdclass
40
41
$PTLCTL <<EOF
42
setup tcp
43
disconnect
44
del_uuid self
45
del_uuid mds
46
del_uuid ost
47
del_uuid ldlm
48
quit
49
EOF
50
51
rmmod kqswnal
52
rmmod ksocknal
53
rmmod portals
54
55
losetup -d ${LOOP}0
56
losetup -d ${LOOP}1
57
losetup -d ${LOOP}2