Bacula-users

Re: [Bacula-users] readlabel and btape

2011-02-15 13:57:15
Subject: Re: [Bacula-users] readlabel and btape
From: "Jeremiah D. Jester" <jjest AT u.washington DOT edu>
To: "'jma AT schaubroeck DOT be'" <jma AT schaubroeck DOT be>, "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 15 Feb 2011 10:49:10 -0800

Hi Jeremy,

 

Thanks for the reply.  These are new tapes. When I try to do a ‘label barcodes’ on the new tapes I get errors so I’ve been manually wiping them with the following commands.

[root@scrappy ~]# mtx -f /dev/sg2 load 1 0
[root@monk bacula]# mt -f /dev/nst0 rewind
[root@monk bacula]# mt -f /dev/nst0 weof

Is there more I should be doing?

 

Thanks,
JJ

 

 

 

Jeremiah Jester
Informatics Specialist

Microbiology – Katze Lab

206-732-6185

 

From: Jeremy Maes [mailto:jma AT schaubroeck DOT be]
Sent: Monday, February 14, 2011 11:46 PM
To: bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] readlabel and btape

 

Op 11/02/2011 23:39, Jeremiah D. Jester schreef:

I’m trying to determine that status of some of my tapes and I’m a little confused on the output. Anyone have any insight?

 

Thanks,JJ

 

[root@scrappy bacula]# ./bin/btape -c bacula-sd.conf /dev/nst0

Tape block granularity is 1024 bytes.

btape: butil.c:284 Using device: "/dev/nst0" for writing.

11-Feb 14:42 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.

11-Feb 14:42 btape JobId 0: 3302 Autochanger "loaded? drive 0", result is Slot 5.

btape: btape.c:476 open device "Drive1" (/dev/nst0): OK

*status dir

Bacula status: file=0 block=0

Device status: BOT ONLINE IM_REP_EN file=0 block=0

btape: btape.c:2133 Device status: 645. ERR=

*readlabel

btape: btape.c:525 Volume has no label.

 

Volume Label:

Id                : **error**VerNo             : 0

VolName           :

PrevVolName       :

VolFile           : 0

LabelType         : Unknown 0

LabelSize         : 0

PoolName          :

MediaType         :

PoolType          :

HostName          :

Date label written: -4712-01-01 at 00:00

*

 

 

What I see in your output is a status:
BOT (beginning of tape), online (tape in drive and drive ready for action), IM_REP_EN (Immediate report mode, tape drive might cache write instructions)

And a readlabel output that says your tape does not have a bacula label written to it (hence the strange garbled output).

So then the question is: Is this tape giving you any problems? Has it ever been written by bacula before the test? If so: you might want to consider the tape damaged, maybe try a btape test if it does not contain any valuable data.

Kind regards,
Jeremy

**** DISCLAIMER ****
http://www.schaubroeck.be/maildisclaimer.htm

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>