Hi,
10.09.2008 11:52, rrozek AT free DOT fr wrote:
> Thanks for your help
> the TS3200 is connected with fiber channel with qlogic adatper( driver
> qla2xxx)
Ok, that rules out a problem I encountered with Emulex HBAs. Instead I
know installations with qlogic HBAs, though these don't use IBM
libraries, so my reference configurations won't help us here.
> The server is in RedHat 5.2 .
Ok, fairly recent.
> We used the bacula version available on EPEL for RHEL 5 , so the version
> 2.3.0-10
Well, not absolutely up-to-date, but I don't know why this shouldn't
be ok. Note that 2.3 is a development version, so you might consider
upgrading to the latest released version 2.4.something.
> The driver for the tape library is
> lin_tape provided by IBM as an opensource module , we recompile it.
> and a binary sofware lin_taped which is non free but provided for RHEL5
As suggested by Simon, I also recommend trying your backups with the
default driver.
> The configuration for our drive is :
> Device {
> Name = Drive-1 #
> Drive Index = 0
> Media Type = ULT3580-TD4
> Archive Device = /dev/IBMtape0n
> AutomaticMount = yes; # when device opened, read it
> AlwaysOpen = yes;
> RemovableMedia = yes;
> RandomAccess = no;
> AutoChanger = yes
> # Enable the Alert command only if you have the mtx package loaded
> Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> #If you have smartctl, enable this, it has more info than tapeinfo
> #Alert Command = "sh -c 'smartctl -H -l error %c'"
> }
The configuration looks ok (note you'll have to change the "Archive
Device" when you switch to the standard driver - it should become
/dev/nst0, usually.
> tar and dd works correctly.
Ok, so we're probably seeing a problem with Baculas way to operate the
tape drive, not the kernel side of things.
Arno
> The tar works
>
> Quoting Arno Lehmann <al AT its-lehmann DOT de>:
>
>> Hi,
>
>> 10.09.2008 10:37, rrozek AT free DOT fr wrote:
>>> Hi,
>>> I try to implement bacula with a IBM TS3200 tape library and arrive to an
>> error
>>> message when
>>> I use the btape utility. I saw some people to encounter the same problem
>> but I
>>> never saw the solution.
>> Tell us more about your system...
>> How is the TS3200 connected?
>> Which HAB?
>> Which driver and version?
>> Which OS?
>> Which version of Bacula?
>> What do you get when testing with tar or dd?
>>
>> Arno
>>
>>> # btape Drive-1
>>> Tape block granularity is 1024 bytes.
>>> btape: butil.c:286 Using device: "Drive-1" for writing.
>>> 09-Sep 15:20 btape: 3301 Issuing autochanger "loaded? drive 0" command.
>>> 09-Sep 15:20 btape: 3302 Autochanger "loaded? drive 0", result: nothing
>> loaded.
>>> 09-Sep 15:20 btape: 3301 Issuing autochanger "loaded? drive 0" command.
>>> 09-Sep 15:20 btape: 3302 Autochanger "loaded? drive 0", result: nothing
>> loaded.
>>> btape: btape.c:368 open device "Drive-1" (/dev/IBMtape0n): OK
>>> *test
>>>
>>> === Write, rewind, and re-read test ===
>>>
>>> I'm going to write 1000 records and an EOF
>>> then write 1000 records and an EOF, then rewind,
>>> and re-read the data to verify that it is correct.
>>>
>>> This is an *essential* feature ...
>>>
>>> btape: btape.c:825 Wrote 1000 blocks of 64412 bytes.
>>> btape: btape.c:499 Wrote 1 EOF to "Drive-1" (/dev/IBMtape0n)
>>> btape: btape.c:841 Wrote 1000 blocks of 64412 bytes.
>>> btape: btape.c:499 Wrote 1 EOF to "Drive-1" (/dev/IBMtape0n)
>>> btape: btape.c:850 Rewind OK.
>>> 1000 blocks re-read correctly.
>>> Got EOF on tape.
>>> 1000 blocks re-read correctly.
>>> === Test Succeeded. End Write, rewind, and re-read test ===
>>>
>>>
>>> === Write, rewind, and position test ===
>>>
>>> I'm going to write 1000 records and an EOF
>>> then write 1000 records and an EOF, then rewind,
>>> and position to a few blocks and verify that it is correct.
>>>
>>> This is an *essential* feature ...
>>>
>>> btape: btape.c:937 Wrote 1000 blocks of 64412 bytes.
>>> btape: btape.c:499 Wrote 1 EOF to "Drive-1" (/dev/IBMtape0n)
>>> btape: btape.c:953 Wrote 1000 blocks of 64412 bytes.
>>> btape: btape.c:499 Wrote 1 EOF to "Drive-1" (/dev/IBMtape0n)
>>> btape: btape.c:962 Rewind OK.
>>> Reposition to file:block 0:4
>>> Block 5 re-read correctly.
>>> Reposition to file:block 0:200
>>> Block 201 re-read correctly.
>>> Reposition to file:block 0:999
>>> Block 1000 re-read correctly.
>>> Reposition to file:block 1:0
>>> btape: btape.c:1004 Reposition error.
>>> *
>>>
>>> Thanks for your Help .
>>> Richard
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Bacula-users mailing list
>>> Bacula-users AT lists.sourceforge DOT net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>
>> --
>> Arno Lehmann
>> IT-Service Lehmann
>> Sandstr. 6, 49080 Osnabrück
>> www.its-lehmann.de
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Bacula-users mailing list
>> Bacula-users AT lists.sourceforge DOT net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
--
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|