Re: [Veritas-bu] Quick Erase Script (Windows)
2009-11-10 14:14:18
Daniel, I use the follow script (nothing to do with scratch tapes) when space gets tight on our DDs and I want to pre-expire some NBU images.
----------------------------
#!/bin/sh
for tapeid in `cat delete-DD.txt`; do slot=`vmquery -m $tapeid | grep "robot slot"` slotn=`echo $slot | cut -b 13-` barcode=`echo $tapeid"L1"` date echo $barcode echo $slotn # Netbackup Expire the tape. bpexpdate -m $tapeid -d 0 -force vmdelete -m $tapeid -h b2u32 # # DD - Export/Delete/Add/Import the tape ssh -l sysadmin datadomain "vtl export DD-VTL slot $slotn" ssh -l sysadmin datadomain "vtl tape del $barcode" ssh -l sysadmin datadomain "vtl tape add $barcode capacity 100" ssh -l sysadmin datadomain "vtl import DD-VTL barcode $barcode" done ssh -l sysadmin datadomain "filesys clean start" -----------------------------
The L1 above is because we use LTO1 in the DD.
SSH keys are setup from one of our Linux Media Servers to do both the NBU and DD commands.
Randy
From: "Jimenez, Daniel" <Daniel.Jimenez AT owb DOT com> To: Jeff Lightner <jlightner AT water DOT com>; "veritas-bu AT mailman.eng.auburn DOT edu" <veritas-bu AT mailman.eng.auburn DOT edu> Sent: Tue, November 10, 2009 2:07:15 PM Subject: Re: [Veritas-bu] Quick Erase Script (Windows)
Jeff
Try running quick erases on your tapes after you run a filesys clean and then run a filesys clean again and see if you recover additional space on the DDR’s. This will tell you how efficiently you are using your tapes. In addition, this is information we received from our Data Domain representative and from other techs we have worked with so this takes us right back to why we need the script.
Daniel Jimenez
Data Protection Team
From: Jeff Lightner [mailto:jlightner AT water DOT com] Sent: Tuesday, November 10, 2009 11:00 AM To: Jimenez, Daniel; veritas-bu AT mailman.eng.auburn DOT edu Subject: RE: [Veritas-bu] Quick Erase Script (Windows)
We use Data Domain here and haven’t seen that.
Are you running image cleanup jobs in NBU?
From: Jimenez, Daniel [mailto:Daniel.Jimenez AT owb DOT com] Sent: Tuesday, November 10, 2009 1:45 PM To: Jeff Lightner; veritas-bu AT mailman.eng.auburn DOT edu Subject: RE: [Veritas-bu] Quick Erase Script (Windows)
Jeff
When you use Data Domain DDR’s if one of the tapes becomes scratch and is not re-used right away, they hold data that is not cleaned up on the DDR until they are used or quick erased so there can be a few GB’s or several hundred GB’s that can be sitting on the DDR that can be cleaned up. Which is why we are looking for a script.
Daniel Jimenez
Data Protection Team
From: Jeff Lightner [mailto:jlightner AT water DOT com] Sent: Tuesday, November 10, 2009 10:34 AM To: Jimenez, Daniel; veritas-bu AT mailman.eng.auburn DOT edu Subject: RE: [Veritas-bu] Quick Erase Script (Windows)
There’s no need to erase scratch tapes. When they are scratch then they will be overwritten the next time NBU uses them.
From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Jimenez, Daniel Sent: Tuesday, November 10, 2009 1:04 PM To: veritas-bu AT mailman.eng.auburn DOT edu Subject: [Veritas-bu] Quick Erase Script (Windows)
Hey guys
Does anyone have a quick erase script for Netbackup 6.5.3.1 (Windows 2003 Enterprise server)? I would like to be able to schedule the script to find all scratch tapes and run a quick erase on these tapes on a weekly basis. In addition, we have Unix utilities on the box so we can use these commands on the server. Any assistance would be appreciated, thanks.
Daniel Jimenez
Data Protection Team
Proud partner. Susan G. Komen for the Cure.
Please consider our environment before printing this e-mail or attachments.
---------------------------------- CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you. ---------------------------------- _______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|