Networker

Re: [Networker] duplicate name; pick new name or delete old one

2007-09-27 02:16:05
Subject: Re: [Networker] duplicate name; pick new name or delete old one
From: A Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 27 Sep 2007 06:13:02 +0000
On Thu, Sep 27, 2007 at 12:04:59PM +1000, Rachel Polanskis wrote:
> I think I have a problem.
> 
> I am getting repeated instances of:
> 
> duplicate name; pick new name or delete old one
> 
> For freshly recycled and relabeled volumes.

When it lables a tape, it is only allowed to use a name that is in the
database if the tape it's labeling has that name (on the theory that it
can reuse it).

So if the barcode doesn't read properly (very common if it reads blank),
or the tape doesn't have the right media label, 
or if the tape has the right label, but the read fails,

Then you'll get that problem.

Next time you get the issue, I'd do this:

mminfo -av -r 'volume,barcode' -q 'volume=<blah>'.  Just make sure the
DB thinks the volume and barcode match.

Next I'd try reading the old tape directly:

nsrjb -p -S <slot>

That should spit out the media tape label.  Is is present?  If not, it
doesn't realize that *this* is the old tape and is being recycled.

I'm assuming you're not moving barcodes between tapes, right?

-- 
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER