I used Bacula 7.4.5 successfully for around 2 years with an IBM
ULTRIUM-HH7 SAS drive and FlexStor II autoloader (Neoseries) on Arch
Linux. Backups and restores worked perfectly.
Last month I upgraded to Bacula 9.2.2. Backups worked without error but
I noticed "list volumes" reporting a 25 TB volume (not 6 TB as usual). A
subsequent test restore failed due to a volume data error.
I followed the Bacula troubleshooting web page [1], trying mt defblksize
0 then a btape test. This reported the same error.
Downgrading back to Bacula 7.4.5 did not resolve the issue.
I upgraded to Bacula 9.4.1 but the issue remains.
A log of the commands and configuration is below.
Any suggestions on what to try next much appreciated. Thanks.
[root@fs1 etc]# mt -f /dev/nst0 defblksize 0
[root@fs1 etc]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x5c (no translation).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
[root@fs1 etc]# btape -c /etc/bacula/bacula-sd.conf /dev/nst0
Tape block granularity is 1024 bytes.
btape: butil.c:290-0 Using device: "/dev/nst0" for writing.
btape: btape.c:478-0 open device "LTO-7" (/dev/nst0): OK
*test
=== Write, rewind, and re-read test ===
I'm going to write 10000 records and an EOF
then write 10000 records and an EOF, then rewind,
and re-read the data to verify that it is correct.
This is an *essential* feature ...
btape: btape.c:1161-0 Wrote 10000 blocks of 64412 bytes.
btape: btape.c:612-0 Wrote 1 EOF to "LTO-7" (/dev/nst0)
btape: btape.c:1177-0 Wrote 10000 blocks of 64412 bytes.
btape: btape.c:612-0 Wrote 1 EOF to "LTO-7" (/dev/nst0)
btape: btape.c:1219-0 Rewind OK.
29-Dec 11:19 btape JobId 0: Fatal error: block_util.c:425 Volume data
error at 0:0! Wanted ID: "BB02", got "". Buffer discarded.
btape: btape.c:1236-0 Read block 1 failed! ERR=block_util.c:425 Volume
data error at 0:0! Wanted ID: "BB02", got "". Buffer discarded.
[root@fs1 etc]# lsscsi -g
[11:0:1:0] tape IBM ULTRIUM-HH7 H5B3 /dev/st0 /dev/sg3
[11:0:1:1] mediumx BDT FlexStor II 5.40 /dev/sch0 /dev/sg4
Autochanger {
Name = Autochanger
Device = LTO-7
Changer Device = /dev/sg4
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
}
Device {
Name = LTO-7
Media Type = LTO-7
Archive Device = /dev/nst0
AutomaticMount = yes;
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
Spool Directory = "/tmp"
Maximum Spool Size = 10GB
Maximum File Size = 10GB
AutoChanger = yes
}
[1]
https://www.bacula.org/9.4.x-manuals/en/problems/Testing_Your_Tape_Drive_Wit.html#SECTION00431000000000000000
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users