Re: [Veritas-bu] Quick Erase Script (Windows)
2009-11-10 15:47:56
On Tue, Nov 10, 2009 at 11:14:12AM -0800, Randy Doering wrote:
> 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.
>
> ----------------------------
> ????? 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"
I'm sure what you're doing works fine. But you can replace everything
above with a single 'bplabel' command, and you don't have to run an
inventory afterward. (And it'll work with any VTL)
--
Darren
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|