Whamcloud - gitweb
- more LDLM refcount locking infrastructure
[fs/lustre-release.git] / lustre / demos / snapclean.sh
1 #! /bin/bash
2 # Utility script for cleaning up snapshots and removing modules.
3 #
4 # Copyright (C) 2001  Cluster File Systems, Inc.
5 #
6 # This code is issued under the GNU General Public License.
7 # See the file COPYING in this distribution
8
9 OBDDIR="`dirname $0`/.."
10 . $OBDDIR/demos/config.sh
11
12 plog umount $MNTOBD
13 plog umount $MNTSNAP
14
15 plog log "CLEANUP /dev/obd2 /dev/obd1"
16 $OBDDIR/utils/obdcontrol -f << EOF
17 device /dev/obd2
18 cleanup
19 detach
20 device /dev/obd1
21 cleanup
22 detach
23 quit
24 EOF
25
26 rmmod obdsnap
27
28 rm $SNAPTABLE
29 $OBDDIR/demos/obdfsclean.sh