Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

IBM ULTRIUM-TD3 tape drive configuration issue


  • Please log in to reply
No replies to this topic

#1 PetarSickey

PetarSickey

  • Members
  • 151 posts
  • OFFLINE
  •  
  • Local time:05:17 AM

Posted 28 July 2017 - 07:41 AM

I have an IBM LTO ULTRIUM-TD3 tape drive (23R4762, ) that got moved off an unknown server system and onto a Pentium 4 2.8GHz machine (an Optiplex GX520).  I have an Adaptec 29160 7892A chipset controller (Ultra 160).  I can give more details if needed but for now, I just have a couple questions, based on my problem and a dmesg log (similar info is in var/log/messages file).  Nearly all command work for the tape drive except is seems, 16 byte commands - the 2 in question are READ ATTRIBUTES and WRITE ATTRIBUTES.  I have sent these commands down using either the sg3 utils method of ioctl(fd, SG_IO, ...) and also the STIOCMD approach of ioctl.  It doesn't seem to matter much, I get a COMMAND ABORT on those two commands either way.  Most or all other commands work fine.  I can easily dump the MAM memory cartridge with sg_read_buffer or a similar C-coded command.  I am trying to go through each part of my system and start diagnosing why the 16 byte command are not working, yet I don't yet see a specific "command too long" error as some people see.  And I can think of places to start my search and I also have some odd things to discuss that may or may not be related.
 
1) When I installed lin_tape/lin_taped, it removed my st0 device.  I don't really care about this, since I still have a generic device sg3, and I have IBMtape0, and the no rewind devices in my /proc/scsi/lin_tape directory.  So I have devices that I can send commands to and they generally run fine.  Upon booting, the following errors take place (around line 78 and then again around lin e 110.  A similar error occurs if I send a READ ATTRIBUTE or WRITE ATTRIBUTE - I am skipping this for now since I want to make sure that I solve these boot up errors first.
This is the output of dmesg | grep scsi:
scsi host0: ata_piix
[    1.952100] scsi host1: ata_piix
[    2.104377] scsi host2: ata_piix
[    2.104694] scsi host3: ata_piix
[    2.113846] scsi 0:0:0:0: CD-ROM            TSSTcorp CD-RW   TS-H292B DE03 PQ: 0 ANSI: 5
[    2.150057] scsi host4: usb-storage 1-8:1.0
[    2.284520] scsi 2:0:1:0: Direct-Access     ATA      WDC WD3200AAJS-6 3A01 PQ: 0 ANSI: 5
[    3.354585] scsi 4:0:0:0: Direct-Access     PNY      USB 2.0 FD       1100 PQ: 0 ANSI: 4
[    3.354811] scsi 4:0:0:0: alua: supports implicit and explicit TPGS
[    3.356185] scsi 4:0:0:0: alua: No target port descriptors found
[    3.356193] scsi 4:0:0:0: alua: not attached
[    6.380345] sr 0:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
[    6.380647] sr 0:0:0:0: Attached scsi CD-ROM sr0
[   15.917153] sr 0:0:0:0: Attached scsi generic sg0 type 5
[   15.918522] sd 2:0:1:0: Attached scsi generic sg1 type 0
[   15.918649] sd 4:0:0:0: Attached scsi generic sg2 type 0
[   31.892034] scsi host5: Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
[   31.892614] scsi5: Slave Alloc 0
[   31.893057] (scsi5:A:0:0): Received WDTR 1 filtered to 0
[   31.893065] (scsi5:A:0:0): Target Initiated WDTR
[   31.893071] (scsi5:A:0:0): Sending WDTR 0
[   31.893085] scsi target5:0:0: FAST-5 SCSI 1.0 MB/s ST (1020 ns, offset 255)
[   31.893091] scsi5: target 0 using 8bit transfers
[   31.893602] (scsi5:A:0:0): Received SDTR period c, offset 7f
[   31.893610] scsi target5:0:0: asynchronous
[   31.893612] scsi5: target 0 using asynchronous transfers
[   31.893659] (scsi5:A:0:0): Target Initiated SDTR
[   31.893662] (scsi5:A:0:0): Sending SDTR period 45, offset 0
[   31.896256] scsi 5:0:0:0: Sequential-Access IBM      ULTRIUM-TD3      6B20 PQ: 0 ANSI: 3
[   31.896266] scsi 5:0:0:0: Information Units disabled by blacklist
[   31.896270] scsi 5:0:0:0: Slave Configure
[   31.896274] scsi target5:0:0: asynchronous
[   31.896283] scsi target5:0:0: Beginning Domain Validation
[   31.901004] (scsi5:A:0:0): Sending WDTR 1
[   31.901558] (scsi5:A:0:0): Received WDTR 1 filtered to 1
[   31.901567] scsi target5:0:0: FAST-5 WIDE SCSI 2.0 MB/s ST (1020 ns, offset 255)
[   31.901570] scsi5: target 0 using 16bit transfers
[   31.901619] (scsi5:A:0:0): Sending SDTR period 45, offset 0
[   31.902121] (scsi5:A:0:0): Received SDTR period 45, offset 0
[   31.902128] scsi target5:0:0: wide asynchronous
[   31.902130] scsi5: target 0 using asynchronous transfers
[   31.905728] (scsi5:A:0:0): Sending SDTR period c, offset 7f
[   31.906472] (scsi5:A:0:0): Received SDTR period c, offset 7f
[   31.906481] scsi target5:0:0: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 127)
[   31.906484] scsi5: target 0 synchronous at 20.0MHz, offset = 0x7f
[   31.909849] scsi target5:0:0: Domain Validation skipping write tests
[   31.909855] scsi target5:0:0: Ending Domain Validation
[   31.914761] scsi5: Slave Alloc 1
[   32.171075] scsi5: Selection Timeout on A:1. 0 SCBs aborted
[   32.171217] scsi5: Slave Alloc 2
[   32.427541] scsi5: Selection Timeout on A:2. 0 SCBs aborted
[   32.427667] scsi5: Slave Alloc 3
[   32.683989] scsi5: Selection Timeout on A:3. 0 SCBs aborted
[   32.684108] scsi5: Slave Alloc 4
[   32.940430] scsi5: Selection Timeout on A:4. 0 SCBs aborted
[   32.940555] scsi5: Slave Alloc 5
[   33.196877] scsi5: Selection Timeout on A:5. 0 SCBs aborted
[   33.196992] scsi5: Slave Alloc 6
[   33.453331] scsi5: Selection Timeout on A:6. 0 SCBs aborted
[   33.453455] scsi5: Slave Alloc 8
[   33.709777] scsi5: Selection Timeout on A:8. 0 SCBs aborted
[   33.709896] scsi5: Slave Alloc 9
[   33.966218] scsi5: Selection Timeout on A:9. 0 SCBs aborted
[   33.966339] scsi5: Slave Alloc 10
[   34.222659] scsi5: Selection Timeout on A:10. 0 SCBs aborted
[   34.222773] scsi5: Slave Alloc 11
[   34.479092] scsi5: Selection Timeout on A:11. 0 SCBs aborted
[   34.479211] scsi5: Slave Alloc 12
[   34.735540] scsi5: Selection Timeout on A:12. 0 SCBs aborted
[   34.735693] scsi5: Slave Alloc 13
[   34.992020] scsi5: Selection Timeout on A:13. 0 SCBs aborted
[   34.992152] scsi5: Slave Alloc 14
[   35.248473] scsi5: Selection Timeout on A:14. 0 SCBs aborted
[   35.248589] scsi5: Slave Alloc 15
[   35.504909] scsi5: Selection Timeout on A:15. 0 SCBs aborted
[   35.505773] scsi 5:0:0:0: Attached scsi generic sg3 type 1
[   35.536739] st 5:0:0:0: Attached scsi tape st0
[   35.588535] sysfs: cannot create duplicate filename '/class/scsi_tape'
[   35.588538] Modules linked in: stmp(OE+) pfo(OE) st arc4 rt2800usb rt2x00usb rt2800lib crc_ccitt rt2x00lib mac80211 iTCO_wdt iTCO_vendor_support ppdev cfg80211 rfkill snd_intel8x0 snd_ac97_codec ac97_bus snd_seq aic7xxx(OE) dcdbas pcspkr scsi_transport_spi snd_seq_device lpc_ich sg i2c_i801 mfd_core snd_pcm parport_pc parport shpchp snd_timer snd soundcore nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables ext4 mbcache jbd2 sr_mod cdrom sd_mod crc_t10dif crct10dif_generic crct10dif_common ata_generic pata_acpi usb_storage i915 i2c_algo_bit video drm_kms_helper serio_raw ata_piix libata drm tg3 ptp pps_core i2c_core dm_mirror dm_region_hash dm_log dm_mod
[   35.588791] kobject_add_internal failed for scsi_tape with -EEXIST, don't try to register things with the same name in the same directory.
[   35.588794] Modules linked in: stmp(OE+) pfo(OE) st arc4 rt2800usb rt2x00usb rt2800lib crc_ccitt rt2x00lib mac80211 iTCO_wdt iTCO_vendor_support ppdev cfg80211 rfkill snd_intel8x0 snd_ac97_codec ac97_bus snd_seq aic7xxx(OE) dcdbas pcspkr scsi_transport_spi snd_seq_device lpc_ich sg i2c_i801 mfd_core snd_pcm parport_pc parport shpchp snd_timer snd soundcore nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables ext4 mbcache jbd2 sr_mod cdrom sd_mod crc_t10dif crct10dif_generic crct10dif_common ata_generic pata_acpi usb_storage i915 i2c_algo_bit video drm_kms_helper serio_raw ata_piix libata drm tg3 ptp pps_core i2c_core dm_mirror dm_region_hash dm_log dm_mod
[   48.404574] lin_tape: scsi bus:0, channel:0, id:0, lun:0
[   48.404593] lin_tape: scsi bus:2, channel:0, id:1, lun:0
[   48.404611] lin_tape: scsi bus:4, channel:0, id:0, lun:0
[   48.407306] lin_tape: tape_send_scsi_cmd entry.
[   48.407309] lin_tape: tape_send_scsi_io entry
[   48.407314] lin_tape: tape_execute_scsi_command entry: 0x12 
[   48.410353] lin_tape: tape_execute_scsi_command exit: 0x0
[   48.410374] lin_tape: tape_send_scsi_io exit: 0
[   48.410378] lin_tape: tape_send_scsi_cmd exit: 0
[   48.410389] lin_tape: tape_send_scsi_cmd entry.
[   48.410392] lin_tape: tape_send_scsi_io entry
[   48.410397] lin_tape: tape_execute_scsi_command entry: 0x12 
[   48.411884] lin_tape: tape_execute_scsi_command exit: 0x0
[   48.411908] lin_tape: tape_send_scsi_io exit: 0
[   48.411912] lin_tape: tape_send_scsi_cmd exit: 0
[   48.412768] lin_tape: tape_execute_scsi_command entry: 0x12 
[   48.414422] lin_tape: tape_execute_scsi_command exit: 0x0
[   48.581117] lin_tape: tape_execute_scsi_command entry: 0x12 
[   48.589070] lin_tape: tape_execute_scsi_command exit: 0x0
[   48.589163] lin_tape: tape_execute_scsi_command entry: 0x12 
[   48.591648] (scsi5:A:0:0): Sending WDTR 1
[   48.592287] (scsi5:A:0:0): Received WDTR 1 filtered to 1
[   48.592309] scsi target5:0:0: FAST-5 WIDE SCSI 2.0 MB/s ST (1020 ns, offset 255)
[   48.592314] scsi5: target 0 using 16bit transfers
[   48.592374] (scsi5:A:0:0): Sending SDTR period c, offset 7f
[   48.592913] (scsi5:A:0:0): Received SDTR period c, offset 7f
[   48.592928] scsi target5:0:0: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 127)
[   48.592934] scsi5: target 0 synchronous at 20.0MHz, offset = 0x7f
[   48.594102] lin_tape: tape_execute_scsi_command exit: 0x8000002
 
 
I wonder if I am terminated incorrectly.  Can someone just explain for his device, how I can prove or disprove that my SCSI cable is terminated correctly.  I assume it's ok to use the internal cable with the drive.
 
So I have the lin_tape driver compiled on the OS I'm running, which is RHEL 7.2.  And I have the lin_taped running.  By the way, another goal of mine is to get rid of pfo - since I don't need it.  I have also blacklisted osst, as I don't need it either.  And I have the aic7xxx driver (which is only redhat 7.0 version).  I would like to solve the compile bug in this but for now, at least I can use the driver to run the Adaptec controller.  I have debugging enabled on it and also on lin_tape.  In the output of dmesg above, some is lin_tape and the lines that start scsi are from the aic7xxx driver's debug output.  I refuse to believe that I can't eventually get the 16 byte commands to work.
 
I am running IBM ULTRIUM-TD3 drive with firmware 6B20.  I am willing to upgrade my firmware through the SCSI interface, but I'm thinking that this error might just be termination or it might be in the Adaptec driver not handling the 16-byte commands.  I will post another session - how it looks with write attributes on a reply to this - I just don't want to clutter up my first post on this thread.
 
ONE LAST QUESTION: Can someone please find out which Tape server system this would have often originally been bundled with.  I am not sure that it's really an IBM 3580, it could be a differrent number - like 3582 or something.  It's extremely difficult to go through all of the IBM ftp and http sites, like Fixit Central and find information.  I pretty much just have to guess since they don't list a 23R4762 anywhere on their site - is this a Dell product or something?
I really need to solve this problem very badly and it's taking too much time for me.
 
I have attached a run with both the boot AND a WRITE ATTRIBUTES command sent a minute or so after the boot.
 
Can someone just dig in a little here and help out - I think I just need to go through the system end to end and tweak a few things to get those 16 byte commands to work.  Other than that, and some occasional overheating (I use a fan when necessary, and it doesn't overheat), the system seems fine.
 
Any help appreciated.
 

Attached Files



BC AdBot (Login to Remove)

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users