LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-28-2006, 01:54 PM   #1
Ezplan
Member
 
Registered: Dec 2003
Location: MA
Distribution: CentOS 6.8 & 7, Linux Mint
Posts: 66
Blog Entries: 1

Rep: Reputation: 15
scsi tape device problems of FC4


Hello All,

I'm trying to get back-up to tape going on a dual Opteron system running FC4 with SATA raid and a HP Storageworks DAT-72 external SCSI tape drive. The tape drive is not behaving well with I/O errors and I'm just not sure what to look for in diagnosing the issue. 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.

---------- END of dmesg


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

---------END of cat /proc/scsi/scsi.


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

----------END of lsmod.


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

---------END of cat /var/log/messages | grep scsi.

"mt -f /dev/nst0 rewind and weof" will move the tape, and so does "mt -f /dev/st0 rewind and weof"! That can't be right?!? Why am I seeing "tape at ...scsi 5...scsi 6...scsi 7..."?


Any help is appreciated, and sorry for all the log output!
 
Old 09-30-2006, 08:40 AM   #2
gh0st3r
LQ Newbie
 
Registered: Oct 2005
Distribution: Fedora Core 4
Posts: 7

Rep: Reputation: 0
Hi Ezplan,

The first thing to check is the hardware, make sure you have a proper connection, check the SCSI ID of the tape drive is set to 6 and also ensure you've got the terminal setup correct.

You may want to try a different SCSI cable and terminator if you have them handy.

Using st0 and nst0 will give you the same result, as they both refer to the same device. The only difference is that using st0 will rewind the tape after operation and nst0 won't (hence the reason it's called the non-rewinding tape device ).

Are you able to provide a few of the errors you are getting when you do the backup?
 
Old 09-30-2006, 08:41 AM   #3
gh0st3r
LQ Newbie
 
Registered: Oct 2005
Distribution: Fedora Core 4
Posts: 7

Rep: Reputation: 0
*you've got the terminal setup correct*
Sorry, that should read termination setup.
 
Old 10-03-2006, 10:05 AM   #4
Ezplan
Member
 
Registered: Dec 2003
Location: MA
Distribution: CentOS 6.8 & 7, Linux Mint
Posts: 66

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Hello gh0st3r,

Thanks for the input! The SCSI ID was set to 3. I changed it to 6 and that got rid of the multiple SCSI entries in dmesg: tape attached to scsi5....scsi6....scsi7....etc., but I'm still getting errors when I try to write to the tape:

Sep 26 11:29:10 pelican kernel: mptscsih: ioc0: attempting task abort! (sc=ffff810038fc4a80)
Sep 26 11:29:10 pelican kernel: mptscsih: ioc0: task abort: SUCCESS (sc=ffff810038fc4a80)
Sep 26 11:29:11 pelican kernel: mptscsih: ioc0: attempting target reset! (sc=ffff810038fc4a80)
Sep 26 11:29:22 pelican kernel: mptscsih: ioc0: target reset: SUCCESS (sc=ffff810038fc4a80)
Sep 26 11:51:08 pelican kernel: mptscsih: ioc0: attempting task abort! (sc=ffff81002f4f5a00)
Sep 26 11:51:08 pelican kernel: mptscsih: ioc0: task abort: SUCCESS (sc=ffff81002f4f5a00)
Sep 26 11:51:09 pelican kernel: mptscsih: ioc0: attempting target reset! (sc=ffff81002f4f5a00)
Sep 26 11:51:20 pelican kernel: mptscsih: ioc0: target reset: SUCCESS (sc=ffff81002f4f5a00)

I checked the HP website and found the warning: 'Do not attach scsi tape to same bus that has a disk RAID array installed...'

I know this system has RAID set up, but I thought it was SATA RAID. I'm going to wait until after hours and open the box up and see if in fact the disks and the tape are on the same bus. I can't tell from the dmesg output:

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.
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:1:0: Attached scsi disk sdb
scsi1 : sata_nv
scsi2 : sata_nv
scsi3 : sata_nv
scsi4 : sata_nv
scsi5 : ioc0: LSI53C1030, FwRev=01032700h, Ports=1, MaxQ=255, IRQ=50
st 5:0:6:0: Attached scsi tape st0<4>st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 4503599627370495


Again, thanks for the input. I'll post whatever I find out.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SCSI device drivers for tape drives tornatom Linux - Hardware 2 06-27-2005 05:45 PM
SCSI Tape - No such device- debian woody kimc Linux - Hardware 3 09-20-2004 08:26 AM
SCSI tape device detected but no response on st0 tungaw2001 Linux - Hardware 0 08-13-2003 01:15 AM
SCSI Tape Device Append Issue sbctec Linux - Hardware 3 05-05-2003 05:28 PM
Figuring out what SCSI device my tape drive is on chrisk5527 Linux - General 1 12-24-2002 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration