Dear all,
I have IBM System Storage TS3100 Tape
Library with Ultrium 4 tapes. It Is connected to IBM SAS HBA controller (P/N
25R8060).
[root@tmmsk init.d]# lspci -vv | grep SCSI
13:00.0 SCSI storage controller: LSI
Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS (rev 02)
[root@tmmsk init.d]# uname -svrp
Linux 2.6.18-92.el5 #1 SMP Tue Apr 29
13:16:12 EDT 2008 i686
[root@tmmsk init.d]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release
5.2 (Tikanga)
[root@tmmsk init.d]# rpm -qa | grep bacula
bacula-mtx-2.4.2-1
bacula-mysql-2.4.2-1
The RPMs were taken from here: http://sourceforge.net/project/showfiles.php?group_id=50727&package_id=213714
------------------------------------------------------------------
Here follows the description of the problem
-------------------------------------------------------------------
Here is a part of bacula-sd.conf
==================
Autochanger
{
Name = Autochanger
Device = Drive-1
Changer Command = "/usr/lib/bacula/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg5
}
Device
{
Name = Drive-1
Drive Index = 0
Media Type = "Ultrium 4"
Archive Device = /dev/IBMtape0
AutomaticMount =
yes;
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = yes;
AutoChanger = yes;
Fast Forward Space File = no
Hardware End of Medium = no
BSF at EOM = yes
}
==================
Now when I am performing btape test, I get:
==============================================
===
Append files test ===
This
test is essential to Bacula.
I'm
going to write one record in file 0,
two records in file 1,
and three records in file 2
btape:
btape.c:475 Rewound "Drive-1" (/dev/IBMtape0)
btape:
btape.c:1577 Wrote one record of 64412 bytes.
btape:
btape.c:1579 Wrote block to device.
btape:
btape.c:505 Wrote 1 EOF to "Drive-1" (/dev/IBMtape0)
btape:
btape.c:1577 Wrote one record of 64412 bytes.
btape:
btape.c:1579 Wrote block to device.
btape:
btape.c:1577 Wrote one record of 64412 bytes.
btape:
btape.c:1579 Wrote block to device.
btape:
btape.c:505 Wrote 1 EOF to "Drive-1" (/dev/IBMtape0)
btape:
btape.c:1577 Wrote one record of 64412 bytes.
btape:
btape.c:1579 Wrote block to device.
btape:
btape.c:1577 Wrote one record of 64412 bytes.
btape:
btape.c:1579 Wrote block to device.
btape:
btape.c:1577 Wrote one record of 64412 bytes.
btape:
btape.c:1579 Wrote block to device.
btape:
btape.c:505 Wrote 1 EOF to "Drive-1" (/dev/IBMtape0)
btape:
btape.c:372 open device "Drive-1" (/dev/IBMtape0): OK
btape:
btape.c:475 Rewound "Drive-1" (/dev/IBMtape0)
btape:
btape.c:1097 Now moving to end of medium.
btape:
btape.c:526 Moved to end of medium.
We
should be in file 3. I am at file 3. This is correct!
Now
the important part, I am going to attempt to append to the tape.
btape:
btape.c:1577 Wrote one record of 64412 bytes.
btape:
btape.c:1579 Wrote block to device.
btape:
btape.c:505 Wrote 1 EOF to "Drive-1" (/dev/IBMtape0)
btape:
btape.c:475 Rewound "Drive-1" (/dev/IBMtape0)
Done appending, there should be no I/O errors
Doing
Bacula scan of blocks:
1
block of 64448 bytes in file 1
End of
File mark.
2
blocks of 64448 bytes in file 2
End of
File mark.
3
blocks of 64448 bytes in file 3
End of
File mark.
1
block of 64448 bytes in file 4
End of
File mark.
18-Aug
11:45 btape JobId 0: Error: block.c:999 Read error on fd=3 at file:blk 4:0 on
device "Drive-1" (/dev/IBMtape0). ERR=Input/output
error.
Total
files=4, blocks=7, bytes = 451,136
End
scanning the tape.
We
should be in file 4. I am at file 4. This is correct!
The
above Bacula scan should have output identical to what follows.
Please
double check it ...
===
Sample correct output ===
1
block of 64448 bytes in file 1
End of
File mark.
2
blocks of 64448 bytes in file 2
End of
File mark.
3
blocks of 64448 bytes in file 3
End of
File mark.
1
block of 64448 bytes in file 4
End of
File mark.
Total
files=4, blocks=7, bytes = 451,136
===
End sample correct output ===
If the
above scan output is not identical to the
sample
output, you MUST correct the problem
or
Bacula will not be able to write multiple Jobs to
the
tape.
==============================================
Those options in bold font above were
recommended by initial btape test (If I should send the btape test output
without those options, please let me know).
I am worried about that I/O Error. Could
you please help me to find what had caused it?
Best regards,
Vladislav Korotkov
IPTV Engineer
Red Hat Certified Engineer
CTI --
Communications. Technology. Innovations.
Phone:
+7 495 784-73-13 ext. 2616
Fax:
+7 495 784-73-14
E-mail: v.korotkov AT cti DOT ru
Web: www.cti.ru