Veritas-bu

[Veritas-bu] Simple question - Display Tape Header

2005-05-10 18:35:13
Subject: [Veritas-bu] Simple question - Display Tape Header
From: rob AT worman DOT org (Rob Worman)
Date: Tue, 10 May 2005 17:35:13 -0500
you can use dd to view the tape header.

e.g. "dd if=/dev/rmt/1cbn of=/tmp/header.out bs=1024 count=1"

the NBU database header is ascii text, so a "cat /tmp/header.out"
might look something like this:


VERSION 1 UNCOMPRESSED
NBmaster
NBUDB0
02/26/02 01:07:11
32768
3
IMAGE1 = NBmaster:/usr/openv/netbackup/db
IMAGE2 = NBmaster:/usr/openv/volmgr/database
IMAGE3 = NBmaster:/usr/openv/var


whereas the "normal" NBU header format is binary, so you'll have
to do something like "od -c /tmp/header.out", which looks like:


0000000 V O L 1 A B C 1 2 3 \0 \0 \0 \0 \0 \0
0000020 \0 \0 \0 \0 \0 \0 \0 001 \0 \0 \0 \r < t 017 325
0000040 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
0000060 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 013
0000100 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 004 \0 \0 \0 \0 \0
0000120 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
*
0000160 T h I s I s A B P t A p
0000200 E h E a D e r \0 \0 \0 \0 \0 \0 \0 \0
0000220 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
*
0002000
0002000


HTH
rob


On Tue, May 10, 2005 at 12:58:43PM -0700 or thereabouts, Mike Day wrote:
> What command do I use to read a tapes header ... specifically to
> determine if the tape is a catalog tape?  I need to try to figure out if
> someone changed some offsite catalog tapes to SCRATCH from the console
> without using the script we have to do the two part process of
> converting a catalog tape.   
> 
> I just found this error message in my logs "FREEZING media id 000132, it
> contains NetBackup database backup data and cannot be used for backups"
> and need to look at my 10 or so other frozen tapes to see if others were
> also previously used as catalog tapes.
> 
> Thanks,
> 
> Michael H. Day 
> Inovis Systems Engineer 
> 
> 
> 
> _______________________________________________
> 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>