Command to modify the barcode is below. Pretty easy to use it with a quick loop to set all the barcodes = media IDs.
/usr/openv/volmgr/bin/vmchange -barcode $MEDIA -m $MEDIA - John Nardello -----Original Message----- From: veritas-bu-boun...@mailman.eng.auburn.edu [mailto:veritas-bu-boun...@mailman.eng.auburn.edu] On Behalf Of stu52 Sent: Monday, April 20, 2009 10:32 AM To: VERITAS-BU@MAILMAN.ENG.AUBURN.EDU Subject: [Veritas-bu] Barcode rules OK...here's a question for everyone. I have come into a NBU 6.5.3 environment as a new backup admin. For some unknown reason they had no barcode rules defined, so all of the 8-character barcodes are getting the last 6 characters for the media database. Hence a barcode that has AP1000L3 is turned into a media code of 1000L3. When you do a vmquery -m 1000L3, it will show the full barcode, but that's not how it is indexed in the media database. So, the problem is if you change the barcode rules now, you will basically have an issue with tapes create prior to changing the rules. So, if you send off tape 1000L3 and change the barcode rules and then bring it back it will now be read as AP1000 and the media database will think it is a new (Scratch) tape instead of the tape with whatever data is associated with 1000L3. See the problem? Is there any way to basically change the existing media id's to the proper ones prior to implementing a proper set of barcode rules? Or is that a lost cause? The vmchange command doesn't seem to be able to do this. Has anyone run into this situation before? thanks. +---------------------------------------------------------------------- |This was sent by stu_lid...@yahoo.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +---------------------------------------------------------------------- _______________________________________________ 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