On Thursday 19 July 2007 16:51, Mariusz Czulada wrote:
> Hello,
>
> Dnia 19-07-2007 o godz. 14:36 Kern Sibbald napisał(a):
> > On Thursday 19 July 2007 13:49, Mariusz Czulada wrote:
> > > Hi all,
> > >
> > > I didn't give up so made my own investigation. Now it seems I found the
> > > source of my problem. I'll describe what I discovered. I need your help
> > > to verify if it is a good way and how to include required changes into
> > > bacula code.
> > >
> > > First reference materials:
> > >
> > > Programming reference (PRGOGREF):
> > > ftp://ftp.software.ibm.com/storage/devdrvr/Doc/IBM_Tape_Driver_PROGREF.
> > >pdf Setup and operator guide (SOG):
> > > ftp://ftp.software.ibm.com/storage/3576R1_SOG.pdf
> > >
> > > And a remainder of my environment:
> > >
> > > 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.
> > >
> > > -----------------
> > >
> > > [....]
> >
> > First to talk about the code above: this is very special case code that
> > is
> > machine dependent, and so it is not really appropriate to add to Bacula,
> > if
> > that is what you are suggesting, as Bacula tries where ever possible to
> > be platform neutral. In addition, most of the information you want above
> > is normally placed in the system log.
>
> Accept it.
>
> > Concerning the error code returned and the special case which shows that
> > an
> > EOT was reached. I believe that this is either that you have not
> > configured
> > the directives in your Device resource correctly for your tape driver
> > (not always easy) or a bug in the kernel scsi driver for that device.
> > Bacula should not receive an I/O error code if an EOT is reached.
>
> I assume that I could still misconfigured the devices. The truth is,
> that as a not very experienced bacula user I have problems with setting
> proper options, while checking all possible yes/no permutations is not
> reasonable. Thats why I was hoping for hints from users (almost all I
> set was 'btape test' based). Can hardly imagine that noone uses IBM
> drives/libraries nor QLogic HBAs.

If you have HBAs in the loop, this is the very first thing I would check. It 
is very likely they add caching to speed up throughput.  The key word 
is "caching" -- that is the question to ask IBM or QLogic is does it "cache", 
and if so how do I turn it off.

Regards,

Kern

>
> > I would recommend that you look at the existing Bacula code and assume
> > it is
> > correct, then figure out if there are any existing Bacula directives that
> > allow you to adapt Bacula to properly interpret the codes that are coming
> > back from the kernel driver. If this is not the case, then look at the
> > codes
> > that the Bacula device driver expects and complain to your OS supplier
> > that
> > his tape driver does not conform to Unix standards, which work perfectly
> > fine
> > on Linux, Solaris, and FreeBSD.
>
> For sure, my workaround will be Plan B.
>
> > One other thought, since you mention FC. You may be running with some
> > software or hardware that is caching the data and status codes between
> > the tape drive and Bacula. HP HBA's do so by default. Bacula works with
> > the drive in synchronous mode. If something buffers data and/or returned
> > status
> > codes, it will *never* work with Bacula -- Bacula will not see the LEOT
> > marker nor the EOT marker (status codes) at the correct time, so will
> > fail.
>
> This is a point I could find any info about. I checked Qlogic site, IBM
> site (FC card is in fact QLA2460, but IBM branded) but found nothing
> about synchronous mode. Perhaps it is named as different parameter or
> option, but could not identify it. If someone knows more about this HBA
> I will really apreciate your help.
>
> > Regards,
> >
> > Kern
> >
> > > TIA for your comments,
> > >
> > > Mariusz Czułada
> > >
> > > ----------------------------------------------------
> > > Już w ten piątek Ty i Ona o godz. 16:00 w Sopocie na molo! Będziesz?
>
> ----------------------------------------------------
> Zapraszamy na XXVI Festiwal Piknik Country Mrągowo 2007!
> W ostatni weekend lipca - wielkie muzyczne wydarzenie!
> http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fpiknikcountry.
>html&sid=1229
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bacula-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/bacula-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to