Veritas-bu

[Veritas-bu] tape vs image duplication

2004-04-13 13:02:11
Subject: [Veritas-bu] tape vs image duplication
From: david.chapa AT adic DOT com (David Chapa)
Date: Tue, 13 Apr 2004 11:02:11 -0600
If you plan on scripting this, personally I would generate a list of all
the images that are candidates for duplication and sort them by media
ID.

Sound like you want to trigger off of schedule type (full)

bpduplicate -hoursago $HOURSAGO -st full -PM 2>/dev/null >> $IMAGES

The -PM allows you to preview images that would be duplicated for the
criteria specified.

Then I would sort by date and time

cat $IMAGES | sort -k 1,2 > $IMGS_TO_DUPLICATE

Then I would do something like this:

MEDIAID=""
cat $IMGS_TO_DUPLICATE | while read SDATE STIME EDATE ETIME id sched
class
do
if [ "$MEDIAID" != "$id" ];then
echo $SDATE $STIME $EDATE $ETIME $id $sched $class > $TEMP/$id_dupfile
else
echo $SDATE $STIME $EDATE $ETIME $id $sched $class >> $TEMP/$id_dupfile
fi
MEDIAID=$id
done

Now you have all of the images that are contained on the mediaIDs in
separate files.  I would then run as many duplication streams as you'd
like reading the info form the *_dupfile to process the images to be
duplicated.

cat $id_dupfile | while read SDATE STIME EDATE ETIME MEDIA_ID SCHEDULE
CLASS
do
bpduplicate -s $SDATE $STIME -e $EDATE $ETIME -sl $SCHEDULE -id
$MEDIA_ID \
-class $CLASS -dstunit $STUNIT -dp $POOL \
-L $LOGFILE.$id  > /dev/null 2>&1
done


If it were me, that's what I would do....because if you do it like this,
scripted, you are less likely to hit a race condition where a
bpduplicate process is requesting the same SOURCE media id that is in
use by another bpduplicate process.  If you want to preserve your MPX
then you definitely want to do it by mediaID with the -mpx switch.

***WARNING - plug ahead***

OR you could use Pathlight VX, ADIC's virtual tape library solution,
write two copies using ITC (inline tape copy, which is included in the
base product of 5.0) and if you are using VERITAS Vault, you can use the
EJECT portion of the tool to eject the second media that was written to
say your Duplication pool and it will be exported via our embedded path
to physical tape.  Now you have two copies of your full backup without
having to impact your media servers a second time.  The data is written
once to Pathlight VX and the second data movement is handled by our own
data movers, which minimizes the impact to your infrastructure.  The
resulting physical media is in NetBackup's native format, so you can
read that tape independent of Pathlight VX for DR purposes if necessary.

***plug over***


HTH
David

David A. Chapa * Technical Advisor * ADIC * 720.249.5836 * 720.272.8452
cell *  david.chapa AT adic DOT com

The FUTURE is HERE - http://www.adic.com/gopathlightvx


-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Jann Toole
Sent: Monday, April 12, 2004 2:56 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Cc: jannr AT cesa.opbu.xerox DOT com
Subject: [Veritas-bu] tape vs image duplication


Hey,
I am starting to test backup duplication options. The plan is
to pull the FULL (level 0) backup tapes out of the library as 
soon as they are full (capacity). 
If I duplicate by class/schedule for everything that would have
had a FULL backup the night before, will this process keep mpx
format? (using the -mpx flag)..

Would it be faster to duplicate by media id or by class/schedule?

Any advice/input would be most greatly appreciated..

Thanks..
Jann

FYI: I am going to VISION


=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~
=-=~=-
=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~
=-=~=-
=   Jann Toole                          E-mail:
Jann.Toole AT office.xerox DOT com
=   System Administrator                Voice: (503) 685-3642    
=   m/s 61-001                          FAX: (503) 685-3880   
=   PO BOX 1000                  
=   Wilsonville OR 97070-1000   
=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~
=-=~=-
=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~=-=~
=-=~=-


_______________________________________________
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>