I started SD with -d999 -f options. Here is the part of log related to
problem:
...
Sd:pl-admbackup01: dev.c:709 rewind res=1 fd=6 "Dev:TS3310-drv0"
(/dev/IBMtape0n)
Sd:pl-admbackup01: dev.c:959 eod: doing fsf 1
Sd:pl-admbackup01: dev.c:1292 fsf
Sd:pl-admbackup01: dev.c:1339 FSF has cap_fsf
Sd:pl-admbackup01: dev.c:1349 Doing read before fsf
Sd:pl-admbackup01: dev.c:1387 Doing MTFSF
Sd:pl-admbackup01: dev.c:1420 Return 0 from FSF
Sd:pl-admbackup01: dev.c:1422 ST_EOF set on exit FSF
Sd:pl-admbackup01: dev.c:1427 Return from FSF file=1
Sd:pl-admbackup01: dev.c:959 eod: doing fsf 1
Sd:pl-admbackup01: dev.c:1289 ST_EOF set on entry to FSF
Sd:pl-admbackup01: dev.c:1292 fsf
Sd:pl-admbackup01: dev.c:1339 FSF has cap_fsf
Sd:pl-admbackup01: dev.c:1349 Doing read before fsf
Sd:pl-admbackup01: dev.c:1372 End of File mark from read. File=2
Sd:pl-admbackup01: dev.c:1376 Set ST_EOT
Sd:pl-admbackup01: dev.c:1420 Return 0 from FSF
Sd:pl-admbackup01: dev.c:1422 ST_EOF set on exit FSF
Sd:pl-admbackup01: dev.c:1425 ST_EOT set on exit FSF
Sd:pl-admbackup01: dev.c:1427 Return from FSF file=1
Sd:pl-admbackup01: dev.c:1455 bsf
Sd:pl-admbackup01: dev.c:998 EOD dev->file=1
Sd:pl-admbackup01: message.c:1075 Enter Jmsg type=6
--
Sd:pl-admbackup01: dev.c:709 rewind res=1 fd=6 "Dev:TS3310-drv0"
(/dev/IBMtape0n)
Sd:pl-admbackup01: dev.c:959 eod: doing fsf 1
Sd:pl-admbackup01: dev.c:1292 fsf
Sd:pl-admbackup01: dev.c:1339 FSF has cap_fsf
Sd:pl-admbackup01: dev.c:1349 Doing read before fsf
Sd:pl-admbackup01: dev.c:1387 Doing MTFSF
Sd:pl-admbackup01: dev.c:1420 Return 0 from FSF
Sd:pl-admbackup01: dev.c:1422 ST_EOF set on exit FSF
Sd:pl-admbackup01: dev.c:1427 Return from FSF file=1
Sd:pl-admbackup01: dev.c:959 eod: doing fsf 1
Sd:pl-admbackup01: dev.c:1289 ST_EOF set on entry to FSF
Sd:pl-admbackup01: dev.c:1292 fsf
Sd:pl-admbackup01: dev.c:1339 FSF has cap_fsf
Sd:pl-admbackup01: dev.c:1349 Doing read before fsf
Sd:pl-admbackup01: dev.c:1364 Set ST_EOT read errno=5. ERR=Input/output
error
Sd:pl-admbackup01: dev.c:1367 dev.c:1366 read error on "Dev:TS3310-drv0"
(/dev/IBMtape0n). ERR=Input/output error.
Sd:pl-admbackup01: dev.c:1420 Return -1 from FSF
Sd:pl-admbackup01: dev.c:1422 ST_EOF set on exit FSF
Sd:pl-admbackup01: dev.c:1425 ST_EOT set on exit FSF
Sd:pl-admbackup01: dev.c:1427 Return from FSF file=1
Sd:pl-admbackup01: dev.c:961 fsf error.
Sd:pl-admbackup01: message.c:1075 Enter Jmsg type=4
Sd:pl-admbackup01: message.c:605 Enter dispatch_msg type=4
msg=Sd:pl-admbackup01: J:RepositoryFull-ncxdata.2007-07-18_15.55.36
Error: Unable to position to end of data on device "Dev:TS3310-drv0"
(/dev/IBMtape0n): ERR=dev.c:1366 read error on "Dev:TS3310-drv0"
(/dev/IBMtape0n). ERR=Input/output error.
...
As mentioned earlier, first time it was ok, but on second time got
ST_EOT read errno=5.
I tried it with 10+ different tapes, so don't think it is a media problem.
Dnia 18-07-2007 o godz. 14:24 Mariusz Czulada napisał(a):
> Hi,
>
> Dnia 18-07-2007 o godz. 10:39 Arno Lehmann napisał(a):
> > Hi,
> >
> > 18.07.2007 10:10,, Mariusz Czulada wrote::
> > > Hi again,
> > >
> > > I still have problems with my IBM TS3310 library, so again ask for your
> > > help with this.
> > >
> > > I use an IBM xSeries host with CentOS 4.3. DDS-5 internal drive (working
> > > perfectly), and IBM TS3310 tape library, with two LTO-3 drives connected
> > > directly (i mean without FC switch) to two QLogic QLA2460 HBA. IBM tape
> > > drivers taken from IBM site. Catalog is created in PostgreSQL 8.1.5.
> > > Bacula 2.0.2. Both pg and bacula compiled from sources.
> > >
> > >
> > >
> > > After btape tests (went 100% OK) I added some suggested options to
> > > device definition, so now it looks like this:
> > >
> > > ...
> > > Device {
> > > Name = "Dev:TS3310-drv0"
> > > Device Type = tape
> > > Media Type = LTO-3
> > > Archive Device = /dev/IBMtape0n
> > > AutomaticMount = yes; # when device opened, read it
> > > AlwaysOpen = yes;
> > > RemovableMedia = yes;
> > > RandomAccess = no;
> > > Block positioning = no; # hint from btape
> > > Hardware End of Medium = No # hint from btape
> > > Fast Forward Space File = No # hint from btape
> > > BSF at EOM = yes # hint from btape
> >
> > This will only work when you also set Two EOFs at tape end, I think.
> >
>
> I added "TWO EOF=yes", but unfortunately, it didn't help. I got:
>
> 18-Jul 13:58 Sd:pl-admbackup01: J:RepositoryFull-ncx.2007-07-18_13.53.20
> Error: Unable to position to end of data on device "Dev:TS3310-drv0"
> (/dev/IBMtape0n): ERR=dev.c:1359 read error on "Dev:TS3310-drv0"
> (/dev/IBMtape0n). ERR=Input/output error.
>
> > Arno
> >
> > > Autochanger = yes;
> > > Drive Index = 0;
> > > }
> > >
> > > Device {
> > > Name = "Dev:TS3310-drv1"
> > > Device Type = tape
> > > Media Type = LTO-3
> > > Archive Device = /dev/IBMtape1n
> > > AutomaticMount = yes; # when device opened, read it
> > > AlwaysOpen = yes;
> > > RemovableMedia = yes;
> > > RandomAccess = no;
> > > Block positioning = no; # hint from btape
> > > Hardware End of Medium = No # hint from btape
> > > Fast Forward Space File = No # hint from btape
> > > BSF at EOM = yes # hint from btape
> > > Autochanger = yes;
> > > Drive Index = 1;
> > > }
> > >
> > > Autochanger {
> > > Name = "Achg:TS3310"
> > > Device = "Dev:TS3310-drv0"
> > > Device = "Dev:TS3310-drv1"
> > > Changer Device = /dev/sg6
> > > Changer Command = "/opt/bacula/etc/mtx-changer %c %o %S %a %d"
> > > }
> > > ...
> > >
> > >
> > > The problem appears when tape is reloaded - SD cannot correctly find end
> > > of tape and it marks volue as "Error". In attached file there is a part
> > > of debugged SD log with related elements. The curious case is that it
> > > not always fails! Sometimes one or two reloads works fine, job is
> > > appended to the volume, but after first error all further jobs fail to
> > > append.
> > >
> > > Lately, I tested 2.1.22, hoping for some fixes here, but still have same
> > > problems. I wonder if there is at least a workaround for this, i.e. with
> > > some additional device options.
> > >
> > > Thanks in advance for any help,
> > >
> > > Mariusz Czułada
> > >
>
> ----------------------------------------------------
> Wirtualna Polska zaprasza na Gdańsk Summer Festival.
> Koncerty gwiazd w Gdańsku!
> http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fsummerf.html&sid=1224
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bacula-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-users
----------------------------------------------------
Oto pierwsza męska para w historii łyżwiarstwa
figurowego! Zobacz ostrą jazdę po bandzie w komedii
OSTRZA CHWAŁY - w kinach od 20 lipca!
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fostrza_chwaly.html&sid=1221
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users