Veritas-bu

[Veritas-bu] How to determine which drive was used for backup

2006-02-02 11:42:32
Subject: [Veritas-bu] How to determine which drive was used for backup
From: Mark.Donaldson AT cexp DOT com (Mark.Donaldson AT cexp DOT com)
Date: Thu, 2 Feb 2006 09:42:32 -0700
A backup can use more than one tape drive, as the fragments are written,
they can span tapes. Netbackup makes no attempt to mount the next tape to be
written on the same device as the previous tape.  

Therefore the drive information is related to the image fragments, not
simply the image.

Tape number written to is field 9 of the bpimagelist "FRAG" lines.
Device-written-on (DWO) is field 14 of the same record (note, this is the
drive index number for the media server that wrote this image.

Example (client, image, &policy with copy, fragment, tape & DWO).  
This could, of course, be made much prettier:

>bpimagelist -hoursago 1 | \
  awk '$1=="IMAGE" {print "Client:",$2,"Policy:",$7,"Image:",$6} 
       $1=="FRAG"{print "Copy:",$2,"Frag:",$3,"Media:",$9,"DWO:",$14}'

Client: sg-09 Policy: NT_2 Image: sg-09_1138895840
Copy: 1 Frag: 1 Media: 003541 DWO: 6
Copy: 1 Frag: 2 Media: 003541 DWO: 6
Copy: 1 Frag: 3 Media: 003541 DWO: 6
Copy: 1 Frag: 4 Media: 003541 DWO: 6
Copy: 1 Frag: 5 Media: 003541 DWO: 6
Copy: 1 Frag: 6 Media: 003541 DWO: 6
Copy: 2 Frag: 1 Media: 005017 DWO: 3
Copy: 2 Frag: 2 Media: 005017 DWO: 3
Copy: 2 Frag: 3 Media: 005017 DWO: 3
Copy: 2 Frag: 4 Media: 005017 DWO: 3
Copy: 2 Frag: 5 Media: 005017 DWO: 3
Copy: 2 Frag: 6 Media: 005017 DWO: 3

Client: ap-61 Policy: P_NAS2_FS Image: ap-61_1138887927
Copy: 1 Frag: 1 Media: 003615 DWO: 8
Copy: 1 Frag: 2 Media: 003615 DWO: 8
Copy: 1 Frag: 3 Media: 003615 DWO: 8
Copy: 1 Frag: 4 Media: 003615 DWO: 8
Copy: 1 Frag: 5 Media: 003615 DWO: 8
Copy: 1 Frag: 6 Media: 003615 DWO: 8
Copy: 1 Frag: 7 Media: 005175 DWO: 2
Copy: 1 Frag: 8 Media: 005175 DWO: 2
Copy: 1 Frag: 9 Media: 005175 DWO: 2
Copy: 1 Frag: 10 Media: 005175 DWO: 2
Copy: 1 Frag: 11 Media: 005175 DWO: 2
Copy: 1 Frag: 12 Media: 005175 DWO: 2

The second example, if you notice, spanned tapes & switched drives in the
process.

-M

-----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 Warren 
Hulley
Sent: Thursday, February 02, 2006 1:39 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] How to determine which drive was used for backup




Hi All 
I would just like to know if there is a way to see which drive was used for
a specific policy / backup. 
I know that if you get an error, say and 84 error it gives you the drive
index. But with successful backups it doesn't give you the drive index.
Any help would be fantastic. 
Kind Regards 
Warren