Hi,

Primo: I checked out the SVN repository with no problem.
Will try to use it as a reference in the future.

Secundo: Forgot to tell about configuration. This is 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.

Ad rem:
I didn't give up with 2.0.2 yesterday. After btape failed
in second test. The error I got was:

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

btape: dev.c:2405 dev_get_os_pos

============================

I took at the code. Near line 2405 (ver. 2.0.2) found:

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

      stat = tape_ioctl(fd, MTIOCTOP, (char *)&mt_com);
      if (stat < 0 || !dev_get_os_pos(this, &mt_stat)) {
         berrno be;

============================

So, I made a "bad" change:

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

      stat = tape_ioctl(fd, MTIOCTOP, (char *)&mt_com);
!     dev_get_os_pos(this, &mt_stat);
!     if (stat < 0) {
         berrno be;

============================

Awful, but it works. Precisely, it still failed this test,
but btape continued with other ones. And the rest of tests
gave me hints how to correct my "Device" entries in
SD config. I got:

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

  Hardware End of Medium = No
  Fast Forward Space File = No
  BSF at EOM = yes

============================

Now, original btape works correctly. So, my little suggestion
about modifying btape util is to allow (query about) to
continue the tests even if one of the tests fails. Hints
are useful and help to correctly configure the drive...
unless you see them :-)


------

Summa:

The bad news is I still cannot use my TS3310. The problem
occurs when tape is reinserted into drive. Bacula cannot
add another job to the tape. The volume is marked with
"error" and the new one (from "Scratch" in my case)
is used. Everything works fine, jobs are stored correctly,
until newly used tape is removed from drive by changer.

Will tell more/ask later, plan to do more tests to get
more information which, I hope, could help you to help me :-)


Regards

Mariusz


Dnia 8-05-2007 o godz. 21:34 Kern Sibbald napisał(a):
> Hello,
> 
> One of your ioctl() calls seems to be broken or always returning
> a bad status.
> 
> Try using the btape in the trunk of the SVN.  It has a number
> of little fixes that could clarify your problem.  If you don't
> know how to use the SVN, the list can probably help you or
> wait until 2.1.8 is released in BETA later this week.
> 
> 
> >Date: Tue, 08 May 2007 09:30:56 +0200
> >From: "Mariusz Czulada" <[EMAIL PROTECTED]>
> >Subject: [Bacula-users] Odp:  Another problem with TS3310
> >To: "bacula-users" <bacula-users@lists.sourceforge.net>
> >Message-ID: <[EMAIL PROTECTED]>
> >Content-Type: text/plain; charset=iso-8859-2
> 
> >Hi again,
> 
> >I tried one more thing with btape, and this is the result:
> 
> >==============================================
> 
> >*rewind
> >btape: btape.c:469 Rewound "Dev:TS3310-drv0" (/dev/IBMtape1n)
> >*status
> > Bacula status: file=0 block=0
> > Device status: BOT ONLINE file=-1 block=0
> >btape: btape.c:1799 Device status: 133. ERR=dev.c:1298 ioctl MTFSF error
> >on "Dev:TS3310-drv0" (/dev/IBMtape1n). ERR=Success.
> 
> >*fsf
> >btape: dev.c:2405 dev_get_os_pos
> >btape: btape.c:1497 Bad status from fsf. ERR=dev.c:1298 ioctl MTFSF
> >error on "Dev:TS3310-drv0" (/dev/IBMtape1n). ERR=Success.
> 
> >*status
> > EOD Bacula status: file=0 block=0
> > Device status: ONLINE file=-1 block=1001
> >btape: btape.c:1799 Device status: 161. ERR=dev.c:1298 ioctl MTFSF error
> >on "Dev:TS3310-drv0" (/dev/IBMtape1n). ERR=Success.
> 
> >==========================
> 
> >Can this be more helpful? This is a critical issue for me, because the
> >main hardware component of this backup subsystem is currently useless.
> 
> >Dnia 7-05-2007 o godz. 14:46 Mariusz Czulada napisa?(a):
> >> Hi all,
> >> 
> >> I have another, more serious problem with my IBM library. Here is an
> >> output from btape:
> >> 
> >> -----------------------------------------
> >> 
> >> [EMAIL PROTECTED] sbin]# ../sbin/btape -c bacula-sd.conf -d 99
> >> /dev/IBMtape1n
> >> Tape block granularity is 1024 bytes.
> >> 
> >> [...]
> >> 
> >> btape: btape.c:368 open device "Dev:TS3310-drv0" (/dev/IBMtape1n): OK
> >> *test
> >> === Write, rewind, and re-read test ===
> >> 
> >> [...]
> >> 
> >> === Test Succeeded. End Write, rewind, and re-read test ===
> >> === Write, rewind, and position test ===
> >> 
> >> [...]
> >> > btape: btape.c:962 Rewind OK.
> >> Reposition to file:block 0:4
> >> btape: dev.c:1477 fsr 4
> >> Block 5 re-read correctly.
> >> Reposition to file:block 0:200
> >> btape: dev.c:1477 fsr 195
> >> Block 201 re-read correctly.
> >> Reposition to file:block 0:999
> >> btape: dev.c:1477 fsr 798
> >> Block 1000 re-read correctly.
> >> Reposition to file:block 1:0
> >> btape: dev.c:2405 dev_get_os_pos
> >> btape: btape.c:1004 Reposition error.
> >> 
> >> -----------------------------------------
> >> [...]
> >> -----------------------------------------
> >> 
> >> [EMAIL PROTECTED] sbin]# mt -f /dev/IBMtape1n tell
> >> At block 1001.
> >> 
> >> -----------------------------------------
> >> 
> 
> >Reagards,
> 
> >Mariusz

----------------------------------------------------
Ekstraliga żużlowa - sprawdź koniecznie kolejne rozgrywki! Kliknij:
http://klik.wp.pl/?adr=www.ekstraliga.wp.pl&sid=1129



-------------------------------------------------------------------------
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to