Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Lots of bug fixes:
[fs/lustre-release.git]
/
lustre
/
demos
/
snapclean.sh
1
#! /bin/bash
2
# Utility script for cleaning up snapshots and removing modules.
3
OBDDIR="`dirname $0`/.."
4
. $OBDDIR/demos/config.sh
5
6
plog umount $MNTOBD
7
plog umount $MNTSNAP
8
9
plog log "CLEANUP /dev/obd2 /dev/obd1"
10
$OBDDIR/class/obdcontrol -f << EOF
11
device /dev/obd2
12
cleanup
13
detach
14
device /dev/obd1
15
cleanup
16
detach
17
quit
18
EOF
19
20
rmmod obdsnap
21
22
rm $SNAPTABLE
23
$OBDDIR/demos/obdfsclean.sh