Veritas-bu

[Veritas-bu] Force Tapes to Expire

2002-04-17 11:08:37
Subject: [Veritas-bu] Force Tapes to Expire
From: alevin AT audible DOT com (Adam Levin)
Date: Wed, 17 Apr 2002 11:08:37 -0400 (EDT)
On Wed, 17 Apr 2002, Carlos Perales wrote:
> Do any of you know how to properly/immediatly expire tapes ?
> I need to expire tapes daily and set them ready for use immediatly after I ran
> the command.
> I've tried expiring all images in the tape, however the tapes are not
> unnasiggned immediatly.
> Any ideas ?

I recently had to do this, I think (assuming I understand the problem).

Background: our tape library was misconfigured, but just slightly, so we
were getting I/O errors (media read/write/position).

I wanted to take those tapes, expire the images on them, erase them,
remove them from the media database, and re-insert them as if they were
brand new.

First, you need to do the expire:
/usr/openv/netbackup/bin/admincmd/bpexpdate -d 0 -ev mediaid

Then, delete the tape:
/usr/openv/volmgr/bin/vmdelete -m mediaid
(I haven't figured out how to stop it from asking me if I'm sure I want to
do this.)

Then, you re-add the tape either from the GUI (compare robot contents to
database) or with vmadd.

That should do it, I think.

-Adam

Adam Levin, Senior Unix Systems Administrator | http://www.audible.com/
Audible, Inc.
Wayne, NJ, 07470                                              "Bonsai!"
973-837-2797     


<Prev in Thread] Current Thread [Next in Thread>