Veritas-bu

[Veritas-bu] bpduplicate tapes Time Assigned missing

2003-12-10 11:48:07
Subject: [Veritas-bu] bpduplicate tapes Time Assigned missing
From: RLMarkham AT hafeleamericas DOT com (Markham, Richard)
Date: Wed, 10 Dec 2003 11:48:07 -0500
/opt/openv/netbackup/bin/admincmd/bpexpdate -d 0 -backupid $image -force
-copy 1

where $image value is aquired by awking the file generated by the code
portion below. Note: This is from ~your~ scripts in earlier posts.

 while read image
 do
    # Function: Supply bpimageid, returns 0=not-on-tape, else n=copy on tape
    #image=$1
    print -n $image
    pattern=`echo "/u31/rmback/PROD" | sed 's,\/,\\\/,g'`
    copy=`/opt/openv/netbackup/bin/admincmd/bpimagelist -backupid $image |\
          awk 'BEGIN {copy=0}
               {if ($1=="FRAG" && $9!~/^'$pattern'/) {copy=$2}}
               END {print copy}'`
    print " copies: "$copy
    if [ $copy != "2" ]; then
     READY=false
     print "Image: $image is not duplicated"
    fi
 done  < /scripts/images/rman_disk_images



Am I supposed to convert the duplicate copy to be the primary copy first,
manually??



-----Original Message-----
From: Donaldson, Mark [mailto:Mark.Donaldson AT experianems DOT com]
Sent: Tuesday, December 09, 2003 2:46 PM
To: 'Markham, Richard'; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] bpduplicate tapes Time Assigned missing


I've a v344 NB here on Sol 2.6 and was concerned with your note.

I just duplicated 8 images from my RMAN backups using the bpduplicate
command (source was tape, not disk, though). 

I just checked the duplicate tape and it does have a time assigned.

Not exactly your situation but close.  

How are you performing your duplications and expirations?  

Source:
============================================================================
====
media ID:              000270
media type:            DLT cartridge tape (11)
barcode:               000270
description:           ------
volume pool:           oracle_redo (20)
robot type:            TLD - Tape Library DLT (8)
robot number:          0
robot slot:            108
robot host:            backup0
volume group:          Overland
created:               Wed May 16 09:05:25 2001
assigned:              Thu Nov 27 12:15:39 2003
last mounted:          Tue Dec 09 12:35:49 2003
first mount:           Sun Jun 10 14:42:44 2001
expiration date:       ---
number of mounts:      241
max mounts allowed:    ---
status:                0x0
============================================================================
====

Destination (copy):
============================================================================
====
media ID:              000402
media type:            DLT cartridge tape (11)
barcode:               000402
description:           ------
volume pool:           Test (6)
robot type:            TLD - Tape Library DLT (8)
robot number:          0
robot slot:            73
robot host:            backup0
volume group:          Overland
created:               Wed Jul 30 17:17:13 2003
assigned:              Tue Dec 09 11:38:46 2003
last mounted:          Tue Dec 09 11:50:22 2003
first mount:           Sun Aug 03 11:50:51 2003
expiration date:       ---
number of mounts:      37
max mounts allowed:    ---
status:                0x0
============================================================================
====

-----Original Message-----
From: Markham, Richard [mailto:RLMarkham AT hafeleamericas DOT com]
Sent: Tuesday, December 09, 2003 11:08 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] bpduplicate tapes Time Assigned missing


I run Oracle/RMAN backups to a disk storage unit and duplicate these to
tapes.
I later expire the disk copies and verify availabily of the tape copy.  An
issue I have discovered is that these duplicate tapes do not have a time
assigned date which triggers our operators to think that the tape is free to
be scratched.  To add insult to injury, netbackup allows you to scratch
these
duplicate tapes.  Am I not doing something correctly here?

Netbackup 3.4.2
Solaris 8
Oracle 8.1.7.4

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu