Bacula-users

[Bacula-users] database claims tape has data, but tape is empty

2011-07-19 19:12:24
Subject: [Bacula-users] database claims tape has data, but tape is empty
From: mark.bergman AT uphs.upenn DOT edu
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 19 Jul 2011 18:49:40 -0400
I'm running bacula 5.02, writing to tape. Bacula correctly recognizes tapes in
the library by barcode, and database entries exist for each piece of media.
However, some of the tapes may not be labeled (this may be due to a fault in
our in-house script that labels new media).

The odd thing is that bacula shows the unlabeled tapes as being in specific
pools (not "Scratch", as originally assigned), and shows the volume status as
"Append".

Here are some command excerpts to illustrate the issue:

------- tape with barcode 003234, from slot 9 is loaded in drive 1 ------
mtx -f /dev/changer-ml6000 status |head
  Storage Changer /dev/changer-ml6000:2 Drives, 40 Slots ( 6 Import/Export )
Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag = 003230 
Data Transfer Element 1:Full (Storage Element 9 Loaded):VolumeTag = 003234      
                    

------- btape shows that there's no label ------------------
./btape -v -c /opt/bacula/etc/bacula-sd.conf ml6000-drv1
Tape block granularity is 1024 bytes.
btape: butil.c:284 Using device: "ml6000-drv1" for writing.
19-Jul 18:30 btape JobId 0: 3301 Issuing autochanger "loaded? drive 1" command.
19-Jul 18:31 btape JobId 0: 3302 Autochanger "loaded? drive 1", result is Slot 
9.
btape: btape.c:476 open device "ml6000-drv1" (/dev/tape1-ml6000): OK
*status
 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

------------- "dd" finds no data on the tape ---------------------
[root@sbia-infr1 bin]# mt -f /dev/tape1-ml6000 rewind
[root@sbia-infr1 bin]# dd if=/dev/tape1-ml6000  of=/tmp/tape_003234.dump
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.011468 seconds, 0.0 kB/s
[root@sbia-infr1 bin]# file /tmp/tape_003234.dump
/tmp/tape_003234.dump: empty


------------- bacula thinks that the tape has already been used -------------
printf "query\n15\n" | ./bconsole | egrep "VolStatus|003234"
| MediaId | VolumeName | GB          | Storage | Slot | Pool        | MediaType 
| VolStatus |
|   1,008 | 003234     | 302.4804    | ml6000  |    9 | Incremental | LTO2      
| Append    |


Any ideas?

Mark

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
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>
  • [Bacula-users] database claims tape has data, but tape is empty, mark . bergman <=