Whamcloud - gitweb
- Added UUID description to network document
[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 obdext2
32 rmmod ptlrpc
33 rmmod obdclass
34
35 $PTLCTL <<EOF
36 setup tcp
37 disconnect localhost
38 del_uuid self
39 del_uuid mds
40 del_uuid ost
41 quit
42 EOF
43
44 rmmod kqswnal
45 rmmod ksocknal
46 killall acceptor
47 rmmod portals
48
49 losetup -d ${LOOP}0
50 losetup -d ${LOOP}1
51 losetup -d ${LOOP}2