Hello All,

I'm setting up Bacula 1.38.11 with Postgresql on a dual Opteron system
running FC4 and a HP Storageworks DAT-72 external SCSI tape drive. The
tape drive is not behaving well and I'm trying to isolate whether it's a
Bacula issue or my system. I'm hoping list members can enlighten me as
to what might be going on by looking through these log files---

Following are scsi references in my dmesg:

........3w-9xxx: scsi0: AEN: INFO (0x04:0x0053): Battery capacity test
is overdue:.
scsi0 : 3ware 9000 Storage Controller
3w-9xxx: scsi0: Found a 3ware 9000 Storage Controller at 0xfcffd000,
IRQ: 217.
3w-9xxx: scsi0: Firmware FE9X 2.08.00.006, BIOS BE9X 2.03.01.052, Ports: 4.
  Vendor: AMCC      Model: 9500S-4LP  DISK   Rev: 2.08
  Type:   Direct-Access                      ANSI SCSI revision: 03
SCSI device sda: 312477696 512-byte hdwr sectors (159989 MB)
SCSI device sda: drive cache: none
SCSI device sda: 312477696 512-byte hdwr sectors (159989 MB)
SCSI device sda: drive cache: none
 sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi disk sda
  Vendor: AMCC      Model: 9500S-4LP  DISK   Rev: 2.08
  Type:   Direct-Access                      ANSI SCSI revision: 03
SCSI device sdb: 312477696 512-byte hdwr sectors (159989 MB)
SCSI device sdb: drive cache: none
SCSI device sdb: 312477696 512-byte hdwr sectors (159989 MB)
SCSI device sdb: drive cache: none
 sdb: sdb1
sd 0:0:1:0: Attached scsi disk sdb
libata version 1.20 loaded.
sata_nv 0000:00:07.0: version 0.8
ACPI: PCI Interrupt Link [APSI] enabled at IRQ 23
GSI 17 sharing vector 0xE1 and IRQ 17
ACPI: PCI Interrupt 0000:00:07.0[A] -> Link [APSI] -> GSI 23 (level,
low) -> IRQ 225
PCI: Setting latency timer of device 0000:00:07.0 to 64
ata1: SATA max UDMA/133 cmd 0x9F0 ctl 0xBF2 bmdma 0xCC00 irq 225
ata2: SATA max UDMA/133 cmd 0x970 ctl 0xB72 bmdma 0xCC08 irq 225
ata1: SATA link down (SStatus 0)
scsi1 : sata_nv
ata2: SATA link down (SStatus 0)
scsi2 : sata_nv
ACPI: PCI Interrupt Link [APSJ] enabled at IRQ 22
GSI 18 sharing vector 0xE9 and IRQ 18
ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [APSJ] -> GSI 22 (level,
low) -> IRQ 233
PCI: Setting latency timer of device 0000:00:08.0 to 64
ata3: SATA max UDMA/133 cmd 0x9E0 ctl 0xBE2 bmdma 0xB800 irq 233
ata4: SATA max UDMA/133 cmd 0x960 ctl 0xB62 bmdma 0xB808 irq 233
ata3: SATA link down (SStatus 0)
scsi3 : sata_nv
ata4: SATA link down (SStatus 0)
scsi4 : sata_nv
Fusion MPT base driver 3.03.04
Copyright (c) 1999-2005 LSI Logic Corporation
Fusion MPT SPI Host driver 3.03.04
ACPI: PCI Interrupt Link [APC3] enabled at IRQ 18
GSI 19 sharing vector 0x32 and IRQ 19
ACPI: PCI Interrupt 0000:01:09.0[A] -> Link [APC3] -> GSI 18 (level,
low) -> IRQ 50
mptbase: Initiating ioc0 bringup
ioc0: 53C1030: Capabilities={Initiator,Target}
scsi5 : ioc0: LSI53C1030, FwRev=01032700h, Ports=1, MaxQ=255, IRQ=50
  Vendor: HP        Model: C7438A            Rev: ZP5A
  Type:   Sequential-Access                  ANSI SCSI revision: 03
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
st: Version 20050830, fixed bufsize 32768, s/g segs 256
st 5:0:3:0: Attached scsi tape st0<4>st0: try direct i/o: yes (alignment
512 B), max page reachable by HBA 4503599627370495......

.......Fusion MPT base driver 3.03.04
Copyright (c) 1999-2005 LSI Logic Corporation
Fusion MPT SPI Host driver 3.03.04
ACPI: PCI Interrupt 0000:01:09.0[A] -> Link [APC3] -> GSI 18 (level,
low) -> IRQ 50
mptbase: Initiating ioc0 bringup
ioc0: 53C1030: Capabilities={Initiator,Target}
scsi6 : ioc0: LSI53C1030, FwRev=01032700h, Ports=1, MaxQ=255, IRQ=50
  Vendor: HP        Model: C7438A            Rev: ZP5A
  Type:   Sequential-Access                  ANSI SCSI revision: 03
st 6:0:3:0: Attached scsi tape st0<4>st0: try direct i/o: yes (alignment
512 B), max page reachable by HBA 4503599627370495
st0: Block limits 1 - 16777215 bytes.



The output of cat /proc/scsi/scsi:


Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: AMCC     Model: 9500S-4LP  DISK  Rev: 2.08
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 01 Lun: 00
  Vendor: AMCC     Model: 9500S-4LP  DISK  Rev: 2.08
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi8 Channel: 00 Id: 03 Lun: 00
  Vendor: HP       Model: C7438A           Rev: ZP5A
  Type:   Sequential-Access
                 ANSI SCSI revision: 03
 
 
Partial output of lsmod:


Module                  Size  Used by
............

snd_intel8x0,snd_ac97_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore              45025  1 snd
snd_page_alloc         46289  2 snd_intel8x0,snd_pcm
forcedeth              60869  0
tg3                   140101  0
floppy                107993  0
st                     77289  2
ext3                  179665  2
jbd                   100073  1 ext3
mptspi                 43209  0
mptscsih               74145  1 mptspi
mptbase                90209  2 mptspi,mptscsih
sata_nv                44101  0
libata                 98265  1 sata_nv
3w_9xxx                70753  4
sd_mod                 53697  6
scsi_mod              195321  7
usb_storage,st,mptspi,mptscsih,libata,3w_9xxx,sd_mod



Output of cat /var/log/messages | grep scsi after a reboot:


Sep 25 17:30:45 pelican kernel: scsi5 : ioc0: LSI53C1030,
FwRev=01032700h, Ports=1, MaxQ=255, IRQ=50
Sep 25 17:30:45 pelican kernel: st 5:0:3:0: Attached scsi tape
st0<4>st0: try direct i/o: yes (alignment 512 B), max page reachable by
HBA 4503599627370495
Sep 25 17:39:34 pelican kernel: scsi6 : ioc0: LSI53C1030,
FwRev=01032700h, Ports=1, MaxQ=255, IRQ=50
Sep 25 17:39:34 pelican kernel: st 6:0:3:0: Attached scsi tape
st0<4>st0: try direct i/o: yes (alignment 512 B), max page reachable by
HBA 4503599627370495
Sep 25 17:39:35 pelican scsi.agent[3608]: tape at
/devices/pci0000:00/0000:00:09.0/0000:01:09.0/host6/target6:0:3/6:0:3:0
Sep 25 17:46:21 pelican kernel: scsi7 : ioc0: LSI53C1030,
FwRev=01032700h, Ports=1, MaxQ=255, IRQ=50
Sep 25 17:46:21 pelican kernel: st 7:0:3:0: Attached scsi tape
st0<4>st0: try direct i/o: yes (alignment 512 B), max page reachable by
HBA 4503599627370495
Sep 25 17:46:21 pelican scsi.agent[3897]: tape at
/devices/pci0000:00/0000:00:09.0/0000:01:09.0/host7/target7:0:3/7:0:3:0
Sep 25 17:51:19 pelican kernel: scsi8 : ioc0: LSI53C1030,
FwRev=01032700h, Ports=1, MaxQ=255, IRQ=50
Sep 25 17:51:19 pelican kernel: st 8:0:3:0: Attached scsi tape
st0<4>st0: try direct i/o: yes (alignment 512 B), max page reachable by
HBA 4503599627370495
Sep 25 17:51:20 pelican scsi.agent[4153]: tape at
/devices/pci0000:00/0000:00:09.0/0000:01:09.0/host8/target8:0:3/8:0:3:0


Btape "test" runs fine as does mt -f /dev/nst0 rewind and weof, and
actually so does mt -f /dev/st0 rewind and weof!

Btape "fill" generates the following error:

Wrote Volume label for volume "TestVolume1".
Wrote Start of Session label.
11:26:41 Begin writing Bacula records to tape ...
25-Sep 11:41 btape: btape Error: block.c:538 Write error at 1:1 on
device "DAT-72" (/dev/nst0). ERR=Input/output error.
25-Sep 11:41 btape: btape Error: Error writing final EOF to tape. This
Volume may not be readable.
dev.c:1542 ioctl MTWEOF error on "DAT-72" (/dev/nst0). ERR=Input/output
error.
btape: btape.c:2301 Last block at: 1:0 this_dev_block_num=1
btape: btape.c:2335 End of tape 1:1. VolumeCapacity=64,512. Write rate =
0.1 KB/s
25-Sep 11:41 btape: ERROR in record.c:297 Failed ASSERT: remlen >=
WRITE_RECHDR_LENGTH
25-Sep 11:41 btape: Fatal Error because: Bacula interrupted by signal
11: Segmentation violation
Kaboom! btape, btape got signal 11. Attempting traceback.
Kaboom! exepath=/etc/bacula
Calling: /etc/bacula/btraceback /etc/bacula/btape 0
execv: /etc/bacula/btraceback failed: ERR=No such file or directory
Traceback complete, attempting cleanup ...

Damaged buffers found at btape.c:284
 discovery of data overrun.
 Buffer address: 57c620
Damaged buffer:   64528 bytes allocated at line 118 of btape block.c
25-Sep 11:41 btape: ABORTING due to ERROR in smartall.c:413
Damaged buffer found. Called from btape.c:284
Segmentation fault
[EMAIL PROTECTED] bacula]#

Any help is appreciated, and sorry for all the log output! 
-- 
Tom Plancon
CAD/IS Manager
BKA Architects, Inc.
142 Crescent St.
Brockton, MA 02302
508-583-5603
[EMAIL PROTECTED]

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