2 # Utility script for creating a third snapshot.
4 # Copyright (C) 2001 Cluster File Systems, Inc.
6 # This code is issued under the GNU General Public License.
7 # See the file COPYING in this distribution
9 OBDDIR="`dirname $0`/.."
10 . $OBDDIR/demos/config.sh
12 [ ! -d $MNTSNAP/lost+found ] && $OBDDIR/demos/snapsetup.sh
14 $OBDDIR/demos/snaptest.sh
17 sleep 5 # let syslog logs get written
19 plog log "CREATING /dev/obd3 snapshot"
20 $OBDDIR/utils/obdcontrol -f << EOF
35 [ ! -d "$MNTSNAP2" ] && mkdir $MNTSNAP2
36 plog mount -t obdfs -oro,device=/dev/obd3 none $MNTSNAP2