Bacula-users

[Bacula-users] Problem with error BB02 Buffer discarded

2015-09-15 05:44:49
Subject: [Bacula-users] Problem with error BB02 Buffer discarded
From: Sidsel Jensen <sidj AT dtu DOT dk>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 15 Sep 2015 09:38:52 +0000

Hi

I’ve been trying to restore from a tape, where the job was unfortunately purged from the Catalog in the bacula database.
I can restore from other tapes, without any problems inside bacula, so the data on the tapes should be OK.

But when using bls and bextract I keep getting the BB02 – buffer discarded error

bacula# bls -j -V TEE016L6 /dev/sa0

bls: butil.c:287 Using device: "/dev/sa0" for reading.

11-Sep 14:43 bls JobId 0: No slot defined in catalog (slot=0) for Volume "TEE016L6" on "Drive-1" (/dev/sa0).

11-Sep 14:43 bls JobId 0: Cartridge change or "update slots" may be required.

11-Sep 14:43 bls JobId 0: Ready to read from volume "TEE016L6" on device "Drive-1" (/dev/sa0).

Volume Record: File:blk=0:1 SessId=160 SessTime=1417442322 JobId=3 DataLen=180

11-Sep 14:43 bls JobId 0: Error: block.c:1143 Volume data error at 0:1! Short block of 65536 bytes on device "Drive-1" (/dev/sa0) discarded.

11-Sep 14:43 bls JobId 0: Error: read_record.c:151 block.c:1143 Volume data error at 0:1! Short block of 65536 bytes on device "Drive-1" (/dev/sa0) discarded.

11-Sep 14:43 bls JobId 0: Error: block.c:291 Volume data error at 0:1! Wanted ID: "BB02", got "øh >". Buffer discarded.

11-Sep 14:43 bls JobId 0: Error: read_record.c:151 block.c:291 Volume data error at 0:1! Wanted ID: "BB02", got "øh >". Buffer discarded.

11-Sep 14:43 bls JobId 0: Error: read_record.c:151 block.c:291 Volume data error at 0:1! Wanted ID: "BB02", got "^òñ". Buffer discarded.

11-Sep 14:43 bls JobId 0: Error: read_record.c:151 block.c:291 Volume data error at 0:1! Wanted ID: "BB02", got "—ž¸c". Buffer discarded.

11-Sep 14:43 bls JobId 0: Error: block.c:1143 Volume data error at 0:1! Short block of 65536 bytes on device "Drive-1" (/dev/sa0) discarded.

11-Sep 14:43 bls JobId 0: Error: read_record.c:151 block.c:1143 Volume data error at 0:1! Short block of 65536 bytes on device "Drive-1" (/dev/sa0) discarded.

11-Sep 14:43 bls JobId 0: Error: read_record.c:151 block.c:291 Volume data error at 0:1! Wanted ID: "BB02", got "T\J»". Buffer discarded.

11-Sep 14:43 bls JobId 0: Error: read_record.c:151 block.c:291 Volume data error at 0:1! Wanted ID: "BB02", got "£B}<". Buffer discarded.


I do have the following two statements in my tape-dev.conf:

<snip>

 Minimum block size = 64000

 Maximum blocksize = 256000

</snip>

But it looks like my tape-drive is already set to variable mode:

bacula# mt -f /dev/sa0 status

Mode      Density              Blocksize      bpi      Compression

Current:  0x5a                 variable       0        0x1

---------available modes---------

0:        0x5a                 variable       0        0x1

1:        0x5a                 variable       0        0x1

2:        0x5a                 variable       0        0x1

3:        0x5a                 variable       0        0x1

---------------------------------

Current Driver State: at rest.

---------------------------------

File Number: 0Record Number: 0 Residual Count 0


Bextract gives the same error as bls:

/usr/local/sbin/bextract -i /tmp/gandalf-restore -V TEE016L6\|TEE017L6\|TEE019L6\|TEE002L6\|TEE000L6 /dev/sa0 /tmp/Gandalf

11-Sep 15:14 bextract JobId 0: Error: read_record.c:151 block.c:291 Volume data error at 0:1! Wanted ID: "BB02", got "˜êǍ". Buffer discarded.


How do I fix this?


— 
Kind Regards,
Sidsel Jensen

------------------------------------------------------------------------------
_______________________________________________
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] Problem with error BB02 Buffer discarded, Sidsel Jensen <=