Hello,

Well, the test command is failing on a fsf command (forward space file). This 
means that there is something incorrectly set in the tape driver.  Since you 
have an IBM system, it is possible that they have put your drive in SysV mode 
rather than BSD mode.  Bacula works only in BSD mode, which is the default 
for Linux.  Please see the Tape Testing chapter of the manual for details on 
verifying and setting the mode.

Regards,

Kern

On Thursday 25 October 2007 15:20, Mariusz Czulada wrote:
> Hi,
>
> According to given suggestions, I set devices in configuration files and
> upgraded almost everything I could. Of corse (damn it) still nothing
> works as it should. Since it took some months since my first posts, I'll
> try to describe my problem from the start, and stop at first failure so
> far.
>
> To remind, my system is:
> * xSeries 346, CentOS 4.4 (like RH ES4)
> * Two DS4000 FC 4 Gb PCI-X Single Port HBA;
>   in system identified as QLogic QLA2460
>   - PCI-X 2.0 to 4Gb FC, Single Channel
> * TS3310 library, with two ULT3580-TD3 drives,
>   connected directly (1 to 1) to HBAs.
>
> I upgraded QLogic firmware, patched kernel, upgraded QLogic drivers and
> IBM tape tools. Now I have:
> * QLogic BIOS BIOS Version: 1.29, FCode: 1.27, EFI: 1.09, Firmware:
> 4.00.30
> * kernel: 2.6.9-55.ELsmp
> * qla2xxx drivers: 8.01.07.15
> * lin_tape (IBM tape driver) 1.7.1
>
> I installed bacula 2.2.4 + my '-dt' patch. Configured with
> "--prefix=/opt/bacula --with-postgresql=/opt/pgsql-8.1/ --with-openssl".
>
> My tape devices are /dev/IBMtape0n and /dev/IBMtape1n. Autochanger is
> accessible through /dev/sg6:
>
> ******************************************************
>
> [EMAIL PROTECTED] ~]# tapeinfo -f /dev/sg4
> Product Type: Tape Drive
> Vendor ID: 'IBM     '
> Product ID: 'ULT3580-TD3     '
> Revision: '69U2'
> Attached Changer: No
> SerialNumber: 'xxxxxxxxxx'
> MinBlock:1
> MaxBlock:16777215
> SCSI ID: 0
> SCSI LUN: 0
> Ready: yes
> BufferedMode: yes
> Medium Type: 0x38
> Density Code: 0x44
> BlockSize: 0
> DataCompEnabled: yes
> DataCompCapable: yes
> DataDeCompEnabled: yes
> CompType: 0x1
> DeCompType: 0x1
> Block Position: 2
>
> [EMAIL PROTECTED] ~]# tapeinfo -f /dev/sg5
> Product Type: Tape Drive
> Vendor ID: 'IBM     '
> Product ID: 'ULT3580-TD3     '
> Revision: '69U2'
> Attached Changer: No
> SerialNumber: 'xxxxxxxxxx'
> MinBlock:1
> MaxBlock:16777215
> SCSI ID: 0
> SCSI LUN: 0
> Ready: no
>
> [EMAIL PROTECTED] ~]# tapeinfo -f /dev/sg6
> Product Type: Medium Changer
> Vendor ID: 'IBM     '
> Product ID: '3576-MTL        '
> Revision: '320G'
> Attached Changer: No
> SerialNumber: 'xxxxxxxxxxxx'
> SCSI ID: 0
> SCSI LUN: 1
> Ready: yes
>
> [EMAIL PROTECTED] ~]# mt -f /dev/IBMtape0n status
> SCSI 2 tape drive:
> File number=-1, block number=0, partition=0.
> Tape block size 0 bytes. Density code 0x44 (no translation).
> Soft error count since last status=0
> General status bits on (41000000):
>  BOT ONLINE
>
> [EMAIL PROTECTED] ~]# mt -f /dev/IBMtape1n status
> SCSI 2 tape drive:
> File number=-1, block number=-1, partition=0.
> Tape block size 0 bytes. Density code 0x44 (no translation).
> Soft error count since last status=0
> General status bits on (40000):
>  DR_OPEN
>
> ******************************************************
>
> I set my bacula-sd.conf according to your suggesion. This is a part
> related to my library:
>
> ******************************************************
>
> 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;
> #  Hardware End of Medium = No
> #  Fast Forward Space File = No
> #  BSF at EOM = yes
> #  TWO EOF = Yes
>   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;
> #  Hardware End of Medium = No
> #  Fast Forward Space File = No
> #  BSF at EOM = yes
> #  TWO EOF = Yes
>   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"
> }
>
> ******************************************************
>
> Now started again with btape. Test went ok, but some steps were repeated
> with extra options. Finally I got following recomendation:
>
> ******************************************************
>
> It looks like the test worked this time, please add:
>
>     Hardware End of Medium = No
>     Fast Forward Space File = No
>     BSF at EOM = yes
>
> to your Device resource in the Storage conf file.
>
> ******************************************************
>
> In attachement there is a log of btape output, run with '-d100 -dt'. If
> some other debug level could be more suitable let me know.
>
> The problem is that previously I used these options, and bacula-sd still
> had problems with writing to tapes.
>
> ------
>
> On IBM site there is a document about IBM tape
> ftp://ftp.software.ibm.com/storage/devdrvr/Doc/IBM_Tape_Driver_PROGREF.pdf.
> Starting from page 117 there is an information regarding linux system. I
> read it once but I no almost nothing about bacula internals not how to
> use mt devices. Not sure if it is important or helpful, but if you
> could, please, spend a few minutes on this, perhaps you will find sth.
> what IBM makes "some other way" and what causes such problems?
>
> Regards,
>
> Mariusz Czulada
>
> ----------------------------------------------------
> UDOSTĘPNIONA Strefa marzeń magii i cudów Artist in Wonderland
> http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Faliasek.html&sid
>=72

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to