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

>----------------------------------------------------
>Zobacz, jak? walk? stoczy superbohater, by ocali? siebie
>i swych bliskich. A najwi?ksza bitwa rozegra si? w jego duszy.
>SPIDER-MAN 3 w kinach od 4 maja.
>http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fspiderman3.html&sid=1122

-------------------------------------------------------------------------
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