Veritas-bu

Re: [Veritas-bu] Clearing DSSU's.

2009-02-04 17:54:39
Subject: Re: [Veritas-bu] Clearing DSSU's.
From: Ed Wilts <ewilts AT ewilts DOT org>
To: Matthew Stier <Matthew.Stier AT us.fujitsu DOT com>
Date: Wed, 4 Feb 2009 16:38:37 -0600
This script should help (for 6.5.*):

#!/bin/sh

usage() {
    echo "usage: `basename $0` storage_unit_path"
}

if [ $# -ne 1 ]
then
    usage
    exit 1
fi

cd $1
for BACKUP_ID in `ls -1 *.info *.img | sed -e 's/_C.*$//' | sort | uniq`; do
    copies=`bpimagelist -backupid $BACKUP_ID  2>/dev/null | awk '/^IMAGE/ {print $21}'`
    if [ -z "$copies" ]
    then
        echo $BACKUP_ID not found in catalog
    else
        if [ $copies -eq 1 ]
        then
            echo "$BACKUP_ID waiting (copies=$copies)"
        else
            echo "$BACKUP_ID destaged (copies=$copies)"
        fi
    fi
done


It's self-documenting :-)

   .../Ed

On Mon, Jan 26, 2009 at 3:24 PM, Matthew Stier <Matthew.Stier AT us.fujitsu DOT com> wrote:
Background: Solaris 10 master/media server with several filesystems mounted from SAN to act as DSSU's.  Backups are done using cron initiated backup scripts, which call the applicable policy. Whe the policy is completed, another script dumps each DSSU to tape.

Issue: Need to rebuild the filesystems hosting the DSSU's.  Since these tapes are already backed up to tape, what do I need to do to purge all the images?


Ed Wilts, RHCE, BCFP, BCSD, SCSP, SCSE
ewilts AT ewilts DOT org
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
<Prev in Thread] Current Thread [Next in Thread>