Hi, # /usr/openv/volmgr/bin/tpreq -m TEST00 -d hcart -p Scratch -f /tmp/TEST00 # dd if=/dev/nst0 bs=1024 count=1 VOL1TEST00NThIs Is A BP tApE hEaDer1+0 records in 1+0 records out 1024 bytes (1.0 kB) copied, 0.006064 seconds, 169 kB/s # /usr/openv/volmgr/bin/tpunmount /tmp/TEST00 # ps auxww | grep -i unload root 30342 3.6 0.1 166304 21760 ? S 03:53 0:00 bptm -unload -dn Drive05 -dp /dev/nst0 -dk 2000021 -m TEST00 -mk 4000001 -mds 16 -alocid 7146 -jobid -1303966093 -jm root 30611 0.0 0.0 60232 776 pts/0 R+ 03:53 0:00 grep -i unload #
It works, thanks! Justin. On Wed, 31 Aug 2011, Patrick wrote:
If you are on a real OS you can mount the tape and dd the first 1024 bytes. Otherwise you can mount the tape and look at the GUI, which should show both the external and internal label. For real OS: for label in label1 label2 label3 etc do tpreq -m $label [-d density] [-p poolname] -f /tmp/$label dd if=/tmp/$label bs=1024 count=1 tpunmount /tmp/$label done Regards, Patrick Whelan VERITAS Certified NetBackup Support Engineer for UNIX. VERITAS Certified NetBackup Support Engineer for Windows. netbac...@whelan-consulting.co.uk -----Original Message----- From: veritas-bu-boun...@mailman.eng.auburn.edu [mailto:veritas-bu-boun...@mailman.eng.auburn.edu] On Behalf Of Justin Piszcz Sent: 31 August 2011 11:30 To: veritas-bu Subject: [Veritas-bu] Check tape ID in tape header for each tape? Hi, I had get new labels put on some tapes that had incorrect specifications, which caused inventory problems in the past. Even though they are now scratch, if there is a mismatch it will freeze the tape, etc, is there a quick way to check the header on each tape to ensure the label and header match for the barcode ID? If not, I will have to bplabel each one and check for errors I suppose. Justin. _______________________________________________ Veritas-bu maillist - Veritas-bu@mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
_______________________________________________ Veritas-bu maillist - Veritas-bu@mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu