Hello . . (funny name, that :-)

On 3/30/2007 8:03 PM, . . wrote:
> I am trying to interface bacula with my storagetek L80 library.  * 
> configuration information will be at the bottom.
> Thanks for any help!.  Aproaching my deadline :(

Hard times, then... you'll need some time analyzing this, I think.

> Bacula:  2.0.3
> Centos:  4.4
> Drives:  ULTRIUM06242 LTO-1
> Library: Storagetek L80
> Interface cards: Adaptec

Did you verify the SCSI bus is ok? I.e., have you run tar, dd or cpio 
tests with the drives?

> - I can use mtx-changer to unload a loaded drive, but it takes forever.  
> It does unload the tape and put it into the correct slot after it errors

Probably your mtx-changer script needs some work. There are some likely 
places in there: Activate the wait_for_drive function, and make sure 
your tape is offline before mtx tries to unload it from the drive.

> Output of mtx-changer:
> ----------
> #  ./mtx-changer /dev/sg4 unload 2 /dev/nst0 0
> /dev/nst0: Input/output error
> Unloading Data Transfer Element into Storage Element 2...done

Is this output from an unmodified mtx-changer script?

> # mt -f /dev/nst0 offline
> /dev/nst0: Input/output error

Is a tape still loaded? You can check that with mtx.

> - when using bconsole to do a 'label barcodes' i get the following:

Ok, that can only work after mtx-changer works correctly.

...
> dmesg error:
>  >>>>>>>>>>>>>>>>>> Dump Card State Begins <<<<<<<<<<<<<<<<<
> scsi4: Dumping Card State while idle, at SEQADDR 0x9
> Card was paused
> ACCUM = 0x4, SINDEX = 0x7, DINDEX = 0x21, ARG_2 = 0x0
> HCNT = 0x0 SCBPTR = 0x0
> SCSIPHASE[0x0] SCSISIGI[0x0] ERROR[0x0] SCSIBUSL[0x0]
> LASTPHASE[0x1] SCSISEQ[0x12] SBLKCTL[0xa] SCSIRATE[0x0]
> SEQCTL[0x10] SEQ_FLAGS[0xc0] SSTAT0[0x0] SSTAT1[0x8]
> SSTAT2[0x0] SSTAT3[0x0] SIMODE0[0x8] SIMODE1[0xa4]
> SXFRCTL0[0x80] DFCNTRL[0x0] DFSTATUS[0x89]
> STACK: 0x0 0x163 0x178 0x3
> SCB count = 4
> Kernel NEXTQSCB = 3
> Card NEXTQSCB = 3
> QINFIFO entries:
> Waiting Queue entries:
> Disconnected Queue entries: 0:2
> QOUTFIFO entries:
> Sequencer Free SCB List: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 
> 20 21 22 23 24 25 26 27 28 29 30 31
> Sequencer SCB Info:
>   0 SCB_CONTROL[0x44] SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0x2]
>   1 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>   2 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>   3 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>   4 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>   5 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>   6 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>   7 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>   8 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>   9 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  10 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  11 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  12 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  13 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  14 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  15 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  16 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  17 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  18 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  19 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  20 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  21 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  22 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  23 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  24 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  25 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  26 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  27 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  28 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  29 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  30 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
>  31 SCB_CONTROL[0x0] SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
> Pending list:
>   2 SCB_CONTROL[0x40] SCB_SCSIID[0x7] SCB_LUN[0x0]
> Kernel Free SCB list: 1 0
> Untagged Q(0): 2
> DevQ(0:0:0): 0 waiting
> DevQ(0:1:0): 0 waiting
> 
> <<<<<<<<<<<<<<<<< Dump Card State Ends >>>>>>>>>>>>>>>>>>
> (scsi4:A:0:0): Device is disconnected, re-queuing SCB
> (scsi4:A:0:0): Abort Message Sent
> Recovery code sleeping
> (scsi4:A:0:0): SCB 2 - Abort Completed.
> Recovery SCB completes
> Recovery code awake
> aic7xxx_abort returns 0x2002

That *might* indicate a serious hardware problem - cables, terminators, 
or the HBA even - or it could be simple errors due to configuration 
problems. I can't tell.

> 
> bacula-sd.conf
> ---------------------
...
> Autochanger {
>   Name = Autochanger
>   Device = Drive-0
>   Device = Drive-1
>   Device = Drive-2
> #  Device = Drive-3
> #  Device = Drive-4
>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg4
> }

This looks rather like a slightly modified default configuration, so, if 
you've got the device right, I don't see reasons for problems.

> Device {
>   Name = Drive-0
>   Drive Index = 0
>   Media Type = LTO-2
>   Archive Device = /dev/nst0
>   LabelMedia = yes;
Do you want automatic labeling?
>   AutomaticMount = yes;               # when device opened, read it
>   Changer Device = /dev/sg4
comment the above line out.
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>   AutoChanger = yes;
>   # Enable the Alert command only if you have the mtx package loaded
> }
...

I don't see anything serious here.

The mtx-changer script probably needs some work for your devices, I'd 
start there. Try running it from the shell and observe what it does.

Arno

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to