Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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......
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!
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?
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.