`<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><br>
Anyone have a clue?<br>
<br>
On 18/12/13 16:10, Tom Robinson wrote:<br>
</div>
<blockquote cite="mid:52B12E59.1060808@motec.com.au" type="cite">
<pre wrap="">OmniOS v11 r151006
st driver
sgen driver
Hi,
I'm having issues with the st driver accepting writes to tape with a block size larger than 1MiB
where it previously did write 2MiB blocks.
Previously I had written to the tape using a blocksize of 2MiB (using amanda software command
'amtapetype'):
$ amtapetype -f -b 2048k -t ULT3580-TD5 weekly /dev/rmt/0bn
Checking for FSF_AFTER_FILEMARK requirement
device-property "FSF_AFTER_FILEMARK" "false"
Applying heuristic check for compression.
Wrote random (uncompressible) data at 87839727.2131148 bytes/sec
Wrote fixed (compressible) data at 282011755.789474 bytes/sec
Compression: enabled
Writing one file to fill the volume.
Wrote 1519520841728 bytes at 86133 kb/sec
Writing smaller files (15193866240 bytes) to determine filemark.
define tapetype ULT3580-TD5 {
comment "Created by amtapetype; compression enabled"
length 1483907072 kbytes
filemark 1820 kbytes
speed 86133 kps
blocksize 2048 kbytes
}
# LEOM is not supported for this drive and kernel
I have since rebooted a few times but the tape unit always appeared to be available as mt and mtx
worked apparently without error.
# mt config
"IBM ULT3580-TD5", "IBM ULT3580-TD5 ", "CFGIBMULT3580TD5";
CFGIBMULT3580TD5 = 2,0x3B,0,0x1018619,4,0x46,0x46,0x58,0x58,3,60,1500,600,16920,780,780,16380;
# mt status
IBM ULT3580-TD5 tape drive:
sense key(0x0)= No Additional Sense residual= 0 retries= 0
file no= 0 block no= 0
Now, I tried to determine the block size on the tape using dd and got this:
dd if=/dev/rmt/0bn bs=1024K count=1 of=/dev/null
0+1 records in
0+1 records out
32768 bytes (33 kB) copied, 0.0103029 s, 3.2 MB/s
That is, the block is 32KiB (told to read 1MiB, got 32KiB)
But that tape was written with 2MiB blocks! I powered off, then on the tape unit and got this:
dd if=/dev/rmt/0bn bs=1024K count=1 of=/dev/null
0+1 records in
0+1 records out
1047552 bytes (1.0 MB) copied, 0.0172134 s, 60.9 MB/s
That is the block is at least 1MiB, ask for 1MiB, got 1MiB.
If I read one more byte, I get a kernel error
dd if=/dev/rmt/0b bs=1048577 count=1 of=/dev/null
dd: reading ‘/dev/rmt/0b’: Invalid argument
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00532612 s, 0.0 kB/s
(see /var/adm/messages)
Dec 18 15:09:50 monza.motec.com.au scsi: [ID 107833 kern.notice]
/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f/tape@w5000e11156304003,0 (st5):
Dec 18 15:09:50 monza.motec.com.au Read Write scsi_init_pkt() failure
Dec 18 15:09:50 monza.motec.com.au scsi: [ID 107833 kern.warning] WARNING:
/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f/tape@w5000e11156304003,0 (st5):
Dec 18 15:09:50 monza.motec.com.au errors after pkt alloc (b_flags=0x2200065, b_error=0x16)
Is this a driver issue? Does st5 mean LUN 5?
grep -e '\<st\>' -e '\<sgen\>' /etc/path_to_inst
"/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0/tape@w5000e11156304003,0" 2 "st"
"/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0/medium-changer@w5000e11156304003,1" 3 "st"
"/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0/medium-changer@w5000e11156304003,1" 1 "sgen"
"/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0/tape@w5000e11156304002,0" 4 "st"
"/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0/medium-changer@w5000e11156304002,1" 3 "sgen"
"/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f/tape@w5000e11156304002,0" 0 "st"
"/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f/medium-changer@w5000e11156304002,1" 1 "st"
"/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f/medium-changer@w5000e11156304002,1" 0 "sgen"
"/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f/tape@w5000e11156304003,0" 5 "st"
"/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f/medium-changer@w5000e11156304003,1" 2 "sgen"
# iostat -En rmt/0 rmt/1
rmt/1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: IBM Product: ULT3580-TD5 Revision: B6W0 Serial No:
rmt/0 Soft Errors: 4 Hard Errors: 0 Transport Errors: 11
Vendor: IBM Product: ULT3580-TD5 Revision: B6W0 Serial No:
BTW, the tape unit is configured through a backplane onto an LSI SAS 9207-8i which also has SSD
connected to it. Is this going to cause the issues I'm seeing?
cfgadm -av
---8<---
Ap_Id Receptacle Occupant Condition Information
When Type Busy Phys_Id
c1 connected configured unknown
unavailable scsi-sas n /devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f:scsi
c1::dsk/c1t5000A72A30086BBDd0 connected configured unknown STEC ZeusRAM
unavailable disk n
/devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f:scsi::dsk/c1t5000A72A30086BBDd0
c1::dsk/c1t5000A72A300893E9d0 connected configured unknown STEC S842E200M2
unavailable disk n
/devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f:scsi::dsk/c1t5000A72A300893E9d0
c1::dsk/c1t5000A72A300893EBd0 connected configured unknown STEC S842E200M2
unavailable disk n
/devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f:scsi::dsk/c1t5000A72A300893EBd0
c1::dsk/c1t5000A72A300893EDd0 connected configured unknown STEC S842E200M2
unavailable disk n
/devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f:scsi::dsk/c1t5000A72A300893EDd0
c1::dsk/c1t5000A72A300893F1d0 connected configured unknown STEC S842E200M2
unavailable disk n
/devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f:scsi::dsk/c1t5000A72A300893F1d0
c1::es/ses0 connected configured unknown LSI SAS2X28
unavailable ESI n /devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f:scsi::es/ses0
c1::rmt/0 connected configured unknown IBM ULT3580-TD5
unavailable tape n /devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f:scsi::rmt/0
c1::scsi/changer/c1t5000E1115 connected configured unknown IBM 3573-TL
unavailable med-changer n
/devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f:scsi::scsi/changer/c1t5000E11156304003d1
c1::smp/expd0 connected configured unknown LSI SAS2X28
unavailable smp n /devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f:scsi::smp/expd0
c2 connected configured unknown
unavailable scsi-sas n /devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0:scsi
c2::dsk/c2t5000A72B30086BBDd0 connected configured unknown STEC ZeusRAM
unavailable disk n
/devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0:scsi::dsk/c2t5000A72B30086BBDd0
c2::dsk/c2t5000A72B300893E9d0 connected configured unknown STEC S842E200M2
unavailable disk n
/devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0:scsi::dsk/c2t5000A72B300893E9d0
c2::dsk/c2t5000A72B300893EBd0 connected configured unknown STEC S842E200M2
unavailable disk n
/devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0:scsi::dsk/c2t5000A72B300893EBd0
c2::dsk/c2t5000A72B300893EDd0 connected configured unknown STEC S842E200M2
unavailable disk n
/devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0:scsi::dsk/c2t5000A72B300893EDd0
c2::dsk/c2t5000A72B300893F1d0 connected configured unknown STEC S842E200M2
unavailable disk n
/devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0:scsi::dsk/c2t5000A72B300893F1d0
c2::es/ses1 connected configured unknown LSI SAS2X28
unavailable ESI n /devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0:scsi::es/ses1
c2::rmt/1 connected configured unknown IBM ULT3580-TD5
unavailable tape n /devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0:scsi::rmt/1
c2::scsi/changer/c2t5000E1115 connected configured unknown IBM 3573-TL
unavailable med-changer n
/devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0:scsi::scsi/changer/c2t5000E11156304002d1
c2::smp/expd1 connected configured unknown LSI SAS2X28
unavailable smp n /devices/pci@0,0/pci8086,3c0a@3,2/pci1000,3020@0/iport@f0:scsi::smp/expd1
---8<---
Any help is appreciated.
Kind regards,
Tom
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OmniOS-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.com</a>
<a class="moz-txt-link-freetext" href="http://lists.omniti.com/mailman/listinfo/omnios-discuss">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a>
</pre>
</blockquote>
<br>
</body>
</html>
`