Bacula-users

Re: [Bacula-users] LIP reset occurred (0), device removed.

2013-08-20 12:48:54
Subject: Re: [Bacula-users] LIP reset occurred (0), device removed.
From: Iban Cabrillo <cabrillo AT ifca.unican DOT es>
To: Radosław Korzeniewski <radoslaw AT korzeniewski DOT net>
Date: Tue, 20 Aug 2013 18:45:39 +0200
Hi,
  this is the qlogic driver version:

  [    1.348682] qla2xxx [0000:07:00.0]-00fa:1: QLogic Fibre Channed HBA Driver: 8.03.07.12-k.
[    1.348686] qla2xxx [0000:07:00.0]-00fb:1: QLogic QLE2562 - QLogic 8Gb FC Dual-port HBA for System x.
[    1.348699] qla2xxx [0000:07:00.0]-00fc:1: ISP2532: PCIe (2.5GT/s x8) @ 0000:07:00.0 hdma+ host#=1 fw=5.06.05 (90d5).
[    1.348768] qla2xxx [0000:07:00.1]-001d: : Found an ISP2532 irq 19 iobase 0xffffc90000c68000.
[    1.348949] qla2xxx 0000:07:00.1: irq 44 for MSI/MSI-X
[    1.348956] qla2xxx 0000:07:00.1: irq 45 for MSI/MSI-X
[    1.349023] qla2xxx [0000:07:00.1]-0040:2: Configuring PCI space...
[    1.349028] qla2xxx 0000:07:00.1: setting latency timer to 64
[    1.361424] qla2xxx [0000:07:00.1]-0061:2: Configure NVRAM parameters...
[    1.369088] qla2xxx [0000:07:00.1]-0078:2: Verifying loaded RISC code...
[    1.369131] qla2xxx [0000:07:00.1]-0092:2: Loading via request-firmware.
[    1.400994] qla2xxx [0000:07:00.1]-00c0:2: Allocate (64 KB) for FCE...
[    1.401064] qla2xxx [0000:07:00.1]-00c3:2: Allocated (64 KB) EFT ...
[    1.401150] qla2xxx [0000:07:00.1]-00c5:2: Allocated (1350 KB) for firmware dump.
[    1.405503] scsi2 : qla2xxx
[    1.405763] qla2xxx [0000:07:00.1]-00fa:2: QLogic Fibre Channed HBA Driver: 8.03.07.12-k.
[    1.405767] qla2xxx [0000:07:00.1]-00fb:2: QLogic QLE2562 - QLogic 8Gb FC Dual-port HBA for System x.
[    1.405779] qla2xxx [0000:07:00.1]-00fc:2: ISP2532: PCIe (2.5GT/s x8) @ 0000:07:00.1 hdma+ host#=2 fw=5.06.05 (90d5).
......
[    2.928979] scsi 1:0:0:0: Sequential-Access IBM      ULT3580-TD3      93GP PQ: 0 ANSI: 3
[    2.935530] st: Version 20101219, fixed bufsize 32768, s/g segs 256
[    2.935861] st 1:0:0:0: Attached scsi tape st0
[    2.935864] st 1:0:0:0: st0: try direct i/o: yes (alignment 4 B)
[    3.939166] qla2xxx [0000:07:00.1]-500a:2: LOOP UP detected (8 Gbps).
[    3.997944] scsi 2:0:0:0: Sequential-Access IBM      ULT3580-TD5      C7RC PQ: 0 ANSI: 6
[    4.000531] scsi 2:0:0:1: Medium Changer    IBM      03584L32         B570 PQ: 0 ANSI: 6
[    4.012583] st 2:0:0:0: Attached scsi tape st1
[    4.012586] st 2:0:0:0: st1: try direct i/o: yes (alignment 4 B)
[    4.013947] osst :I: Tape driver with OnStream support version 0.99.4
[    4.013948] osst :I: $Id: osst.c,v 1.73 2005/01/01 21:13:34 wriede Exp $
[    4.014691] SCSI Media Changer driver v0.25
[    4.016286] ch0: type #1 (mt): 0x1+2 [medium transport]
[    4.016289] ch0: type #2 (st): 0x401+1601 [storage]
[    4.016291] ch0: type #3 (ie): 0x301+10 [import/export]
[    4.016293] ch0: type #4 (dt): 0x101+2 [data transfer]


[1:0:0:0]    tape    IBM      ULT3580-TD3      93GP  /dev/st0
[2:0:0:0]    tape    IBM      ULT3580-TD5      C7RC  /dev/st1
[2:0:0:1]    mediumx IBM      03584L32         B570  /dev/sch0

Some times the reset hapends whwn a few MBs are written  others after a couple of hundred MBs but only when we use the LTO5 ([2:0:0:0]    tape    IBM      ULT3580-TD5      C7RC  /dev/st1 ) the LT03 always works grate.

the linux kernel running is :
Linux bacula 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 GNU/Linux

and the bacula-sd configuration for LT05 tape:
Device {
  # The TSM3100's second t3pe drive
  Name = ULT3580-TD5
  Archive Device = /dev/nst1
  Device Type = Tape
  Media Type = LTO-5
  Autochanger = Yes
  # Changer Device = <inherited from Changer>
  Alert Command = "sh -c '/usr/sbin/tapeinfo -f /dev/sg1 | /bin/sed -n /TapeAlert/p"
  Drive Index = 0
  RemovableMedia = yes
  Random Access = no
  Maximum Block Size = 262144
  Maximum Network Buffer Size = 262144
  Maximum Spool Size = 20gb
  Maximum Job Spool Size = 10gb
  Spool Directory = /backup/spool
  AutomaticMount = Yes;
}

root@bacula:~# /usr/sbin/tapeinfo -f /dev/sg1
Product Type: Tape Drive
Vendor ID: 'IBM     '
Product ID: 'ULT3580-TD5     '
Revision: 'C7RC'
Attached Changer API: No
SerialNumber: '00078ABB4C'
MinBlock: 1
MaxBlock: 8388608
SCSI ID: 0
SCSI LUN: 0
Ready: yes
BufferedMode: yes
Medium Type: 0x58
Density Code: 0x58
BlockSize: 0
DataCompEnabled: yes
DataCompCapable: yes
DataDeCompEnabled: yes
CompType: 0x1
DeCompType: 0x1
Block Position: 582
Partition 0 Remaining Kbytes: -1
Partition 0 Size in Kbytes: -1
ActivePartition: 0
EarlyWarningSize: 0
NumPartitions: 0
MaxPartitions: 1

I appreciate any help. thanks in advance I.


2013/8/19 Radosław Korzeniewski <radoslaw AT korzeniewski DOT net>
Hello,

2013/8/19 Iban Cabrillo <cabrillo AT ifca.unican DOT es>
Hi, Any Idea?
  Seems something related to bacula, I have tried chaging the FC port, but  the result has been the same


FC LIP reset is not related to Bacula - IMHO. I had the same problem but with a changer device. The problem was a second server which accidentally accessed the same target (at random time). When I switch off the second server the problem was cured. Sure, your problem could has a different origin then my, and YMMV. BTW, what kernel tape driver do you use (Linux stock)?
 
best regards
--
Radosław Korzeniewski
radoslaw AT korzeniewski DOT net



--
####################################
Iban Cabrillo Bartolome
Instituto de Fisica de Cantabria (IFCA)
Santander, Spain
Tel: +34942200969
####################################
Bertrand Russell:
"El problema con el mundo es que los estúpidos están seguros de todo y los inteligentes están llenos de dudas"
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users