[OmniOS-discuss] Keep losing access to tape drive

Ben Kitching Ben.Kitching at Jigsaw24.com
Tue Dec 3 13:21:36 UTC 2013


Hi There,

I’m hoping someone can help with a problem I have. I have a OmniOS r151006 box with a tape drive attached. I’m using the Supermicro 36 bay chassis with the X9DRD-7LN4F-JBOD motherboard.

 I have the drives for my zpools connected via the expander to the onboard LSI 2308, I then have an LSI 9207-8e which the tape drive is connected to, the drive is a HP Ultrium inside a Quantum Scalar i40 library.

The drive was detected automatically but we had to add the library using SGEN via the following commands:

root at XXXXXXX:/etc# rem_drv sgen
root at XXXXXXX:/etc# add_drv -i 'scsiclass,08’ sgen

The tape drive appears to work, it is detected by our backup software (Presstore P5.0.6) along with the library. However it keeps hanging on us, Presstore and any other apps that try to probe it over the SAS bus just hang requiring me to reboot the box to restore access. Typically I’ll write an amount of data to it before the apps just lose access, seemingly waiting for a reply of some kind. I’m unable to kill these processes with -9 indicating that they are waiting on some kind of kernel call.

When I run mt to check the status of the drive it acts a little strangely, here is the output from a freshly rebooted box:

root at MAVEDITSAN02:~# mt -f /dev/rmt/0 config
"HP      Ultrium 6-SCSI", "HP      Ultrium 6-SCSI  ", "CFGHPULTRIUM6SCSI";
CFGHPULTRIUM6SCSI = 2,0x3B,0,0x1018619,4,0x58,0x58,0x5A,0x5A,3,60,1200,600,1200,600,600,18000;
root at MAVEDITSAN02:~# mt -f /dev/rmt/0 status
^C

Asking for the status more often than not makes it hang

If I run the same commands after it has hung I get this:

root at MAVEDITSAN02:~# mt -f /dev/rmt/0 status
/dev/rmt/0: Device busy
root at MAVEDITSAN02:~# mt -f /dev/rmt/0 config
/dev/rmt/0: Device busy

The output of what are hopefully some relevant commands are below, I have truncated the output to only show tape drive related stuff:

root at MAVEDITSAN02:~# uname -a
SunOS MAVEDITSAN02 5.11 omnios-b281e50 i86pc i386 i86pc

root at XXXXXXX:/etc# dmesg
Dec  2 10:00:04 MAVEDITSAN02 scsi: [ID 583861 kern.info] st1 at mpt_sas5: unit-address w500308c38dc02001,0: w500308c38dc02001,0
Dec  2 10:00:04 MAVEDITSAN02 genunix: [ID 936769 kern.info] st1 is /pci at 0,0/pci8086,3c02 at 1/pci1000,3040 at 0/iport at 8/tape at w500308c38dc02001,0
Dec  2 10:00:04 MAVEDITSAN02 scsi: [ID 365881 kern.info] /pci at 0,0/pci8086,3c02 at 1/pci1000,3040 at 0/iport at 8/tape at w500308c38dc02001,0 (st1):
Dec  2 10:00:04 MAVEDITSAN02    <HP      Ultrium 6-SCSI  >

root at XXXXXXX:/etc# prtconf -v
value='scsi_vhci'
                    name='scsi-iports' type=string items=2 dev=none
                            value='scsi_vhci'
                        name='scsi-tag-age-limit' type=int items=1
                        name='scsi-selection-timeout' type=int items=1
                        name='scsi-watchdog-tick' type=int items=1
                        name='scsi-reset-delay' type=int items=1
                        name='scsi-options' type=int items=1
                        name='scsi-enumeration' type=int items=1
                        name='scsi-iport' type=string items=1
                            dev_path=/pci at 0,0/pci8086,3c02 at 1/pci1000,3040 at 0/iport at 8:scsi
                                value='scsi'
                                value='scsiclass,01R.vHP.pUltrium_6-SCSI.r32CZ' + 'scsiclass,01.vHP.pUltrium_6-SCSI.r32CZ' + 'scsiclass,01R.vHP.pUltrium_6-SCSI' + 'scsiclass,01.vHP.pUltrium_6-SCSI' + 'scsiclass,01R' + 'scsiclass,01' + 'scsiclass'
                                value='scsi'
                                value='scsiclass,08R.vQUANTUM.pScalar_i40-i80.r150G' + 'scsiclass,08.vQUANTUM.pScalar_i40-i80.r150G' + 'scsiclass,08R.vQUANTUM.pScalar_i40-i80' + 'scsiclass,08.vQUANTUM.pScalar_i40-i80' + 'scsiclass,08R' + 'scsiclass,08' + 'scsiclass'
                                    dev_link=/dev/scsi/changer/c0t500308C38DC02001d1
                            value='scsi_vhci'
                        name='scsi-tag-age-limit' type=int items=1
                        name='scsi-selection-timeout' type=int items=1
                        name='scsi-watchdog-tick' type=int items=1
                        name='scsi-reset-delay' type=int items=1
                        name='scsi-options' type=int items=1
                        name='scsi-enumeration' type=int items=1
                        name='scsi-iport' type=string items=1
                            dev_path=/pci at 0,0/pci8086,3c02 at 1/pci1000,3040 at 0/iport at v0:scsi
                        value='scsi_vhci'
                    name='scsi-iports' type=string items=3 dev=none
                            value='scsi_vhci'
                        name='scsi-tag-age-limit' type=int items=1
                        name='scsi-selection-timeout' type=int items=1
                        name='scsi-watchdog-tick' type=int items=1
                        name='scsi-reset-delay' type=int items=1
                        name='scsi-options' type=int items=1
                        name='scsi-enumeration' type=int items=1
                        name='scsi-iport' type=string items=1
                            dev_path=/pci at 0,0/pci8086,3c06 at 2,2/pci15d9,691 at 0/iport at f0:scsi
                                value='scsi'
                                value='scsiclass,0d.vLSI.pSAS2X28.r0e12' + 'scsiclass,0d.vLSI.pSAS2X28' + 'scsiclass,0d' + 'scsiclass'
                            value='scsi_vhci'
                        name='scsi-tag-age-limit' type=int items=1
                        name='scsi-selection-timeout' type=int items=1
                        name='scsi-watchdog-tick' type=int items=1
                        name='scsi-reset-delay' type=int items=1
                        name='scsi-options' type=int items=1
                        name='scsi-enumeration' type=int items=1
                        name='scsi-iport' type=string items=1
                            dev_path=/pci at 0,0/pci8086,3c06 at 2,2/pci15d9,691 at 0/iport at f:scsi
                                value='scsi'
                                value='scsiclass,0d.vLSI.pSAS2X36.r0e12' + 'scsiclass,0d.vLSI.pSAS2X36' + 'scsiclass,0d' + 'scsiclass'
                            value='scsi_vhci'
                        name='scsi-tag-age-limit' type=int items=1
                        name='scsi-selection-timeout' type=int items=1
                        name='scsi-watchdog-tick' type=int items=1
                        name='scsi-reset-delay' type=int items=1
                        name='scsi-options' type=int items=1
                        name='scsi-enumeration' type=int items=1
                        name='scsi-iport' type=string items=1
                            dev_path=/pci at 0,0/pci8086,3c06 at 2,2/pci15d9,691 at 0/iport at v0:scsi
                name='scsi-binding-set' type=string items=1
                name='scsi-tag-age-limit' type=int items=1
                name='scsi-selection-timeout' type=int items=1
                name='scsi-watchdog-tick' type=int items=1
                name='scsi-reset-delay' type=int items=1
                name='scsi-options' type=int items=1
                name='scsi-enumeration' type=int items=1
                        value='scsi'
                        value='scsiclass,00.vATA.pSamsung_SSD_840.r5B0Q' + 'scsiclass,00.vATA.pSamsung_SSD_840' + 'scsiclass,00' + 'scsiclass'
                        value='scsi'
                        value='scsi'
                        value='scsiclass,00.vATA.pSamsung_SSD_840.r5B0Q' + 'scsiclass,00.vATA.pSamsung_SSD_840' + 'scsiclass,00' + 'scsiclass'
                        value='scsi'
                        value='scsi'
                        value='scsiclass,00.vATA.pTOSHIBA_THNSNH06.rN102' + 'scsiclass,00.vATA.pTOSHIBA_THNSNH06' + 'scsiclass,00' + 'scsiclass'
                        value='scsi'
                        value='scsi'
                        value='scsiclass,00.vATA.pTOSHIBA_THNSNH06.rN102' + 'scsiclass,00.vATA.pTOSHIBA_THNSNH06' + 'scsiclass,00' + 'scsiclass'
                        value='scsi'
    iscsi, instance #0
            name='scsi-tag-age-limit' type=int items=1
            name='scsi-selection-timeout' type=int items=1
            name='scsi-watchdog-tick' type=int items=1
            name='scsi-reset-delay' type=int items=1
            name='scsi-options' type=int items=1
            name='scsi-enumeration' type=int items=1
                dev_path=/iscsi:devctl

Any help is much appreciated.

--
Ben
________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20131203/6113cb56/attachment-0001.html>


More information about the OmniOS-discuss mailing list