Whamcloud - gitweb
- name switch: "light" --> "lite"
[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 3
14 cleanup
15 detach
16 device 2
17 cleanup
18 detach
19 device 1
20 cleanup
21 detach
22 device 0
23 cleanup
24 detach
25 quit
26 EOF
27
28 rmmod obdecho
29 rmmod mds
30 rmmod osc
31 rmmod ost
32 rmmod obdfilter
33 rmmod obdext2
34 rmmod ldlm
35 rmmod ptlrpc
36 rmmod obdclass
37
38 $PTLCTL <<EOF
39 setup tcp
40 disconnect
41 del_uuid self
42 del_uuid mds
43 del_uuid ost
44 quit
45 EOF
46
47 rmmod kqswnal
48 rmmod ksocknal
49 rmmod portals
50
51 losetup -d ${LOOP}0
52 losetup -d ${LOOP}1
53 losetup -d ${LOOP}2