Whamcloud - gitweb
Re-enable writes only after MDS has been shut down.
[fs/lustre-release.git] / lustre / tests / llmountcleanup.sh
1 #!/bin/sh
2
3 SRCDIR="`dirname $0`"
4 . $SRCDIR/common.sh
5
6 umount /mnt/obd
7
8 rmmod llight
9 rmmod mdc
10
11 $OBDCTL <<EOF
12 device 3
13 cleanup
14 detach
15 device 2
16 cleanup
17 detach
18 device 1
19 cleanup
20 detach
21 device 0
22 cleanup
23 detach
24 quit
25 EOF
26
27 rmmod obdecho
28 rmmod mds
29 rmmod osc
30 rmmod ost
31 rmmod obdfilter
32 rmmod obdext2
33 rmmod ldlm
34 rmmod ptlrpc
35 rmmod obdclass
36
37 $PTLCTL <<EOF
38 setup tcp
39 disconnect
40 del_uuid self
41 del_uuid mds
42 del_uuid ost
43 quit
44 EOF
45
46 rmmod kqswnal
47 rmmod ksocknal
48 killall acceptor
49 rmmod portals
50
51 losetup -d ${LOOP}0
52 losetup -d ${LOOP}1
53 losetup -d ${LOOP}2