From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 5B9E62F7B0 for ; Mon, 30 Apr 2001 09:20:42 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f3UDHeN11058 for axp-list@listman.redhat.com; Mon, 30 Apr 2001 09:17:40 -0400 Received: from zcamail03.zca.compaq.com (zcamail03.zca.compaq.com [161.114.32.103]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f3UDHdb11054 for ; Mon, 30 Apr 2001 09:17:39 -0400 Received: by zcamail03.zca.compaq.com (Postfix, from userid 12345) id 54BC7841; Mon, 30 Apr 2001 06:20:16 -0700 (PDT) Received: from mailrelay01.cce.cpqcorp.net (mailrelay01.cce.cpqcorp.net [16.47.68.171]) by zcamail03.zca.compaq.com (Postfix) with ESMTP id EB2DA9CE; Mon, 30 Apr 2001 06:20:15 -0700 (PDT) Received: by mailrelay01.cce.cpqcorp.net (Postfix, from userid 12345) id D3D4C3E2; Mon, 30 Apr 2001 08:20:20 -0500 (CDT) Received: from oflume.zk3.dec.com (bryflume.zk3.dec.com [16.141.40.17]) by mailrelay01.cce.cpqcorp.net (Postfix) with ESMTP id 6CB3A192; Mon, 30 Apr 2001 08:20:20 -0500 (CDT) Received: from Compaq.com by oflume.zk3.dec.com (8.8.8/1.1.22.3/03Mar00-0551AM) id JAA0000029969; Mon, 30 Apr 2001 09:20:19 -0400 (EDT) Message-ID: <3AED6695.62039097@Compaq.com> Date: Mon, 30 Apr 2001 09:20:21 -0400 From: "Robin T. Miller" Organization: Tru64 Unix Engineering Group (UEG) X-Mailer: Mozilla 4.07 [en] (WinNT; I) MIME-Version: 1.0 To: Uncle George Cc: axp-list@redhat.com Subject: Re: SCU & interleave & seagate ST15150N scsi References: <3AEAB86B.9D1097F7@voicenet.com> Content-Type: multipart/alternative; boundary="------------A327E36E9F613242888DAC79" X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: --------------A327E36E9F613242888DAC79 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi All, The "ILLEGAL REQUEST" indicates the device doesn't like the SCSI Format CDB sent. I think I've only used the interleave option with SCSI floppies. The drive may allow you to change for Format Device Mode Page. Use Scu's "set page" or "change page" command to alter mode pages. Also, if you wish to see SCSI CDB's issued, use "set debug on". Regards, Robin =============================================== scu> show page format pcf all Mode Page Parameters for Direct Access Device c: (DDYS-T18350N): Format Device Page (0x03): Headers: 23 00 10 08 00 00 00 00 00 00 02 00 Current: 83 16 20 31 00 00 00 00 00 00 00 fe 02 00 00 01 00 0b 00 14 40 00 00 00 Changeable: 83 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Default: 83 16 20 31 00 00 00 00 00 00 00 fe 02 00 00 01 00 0b 00 14 40 00 00 00 Saved: 83 16 20 31 00 00 00 00 00 00 00 fe 02 00 00 01 00 0b 00 14 40 00 00 00 scu> scu> show page format Format Device Parameters (Page 0x3 - Current Values): Mode Parameter Header: Mode Data Length: 35 Medium Type: 0 (Default Medium Type) Device Specific Parameter: 0x10 (Supports DPO & FUA bits) Block Descriptor Length: 8 Mode Parameter Block Descriptor: Density Code: 0 Number of Logical Blocks: 0 Logical Block Length: 512 Page Header / Data: Page Code: 0x3 Parameters Savable: Yes Page Length: 22 Tracks per Zone: 8241 Alternate Sectors per Zone: 0 Alternate Tracks per Zone: 0 Alternate Tracks per Volume: 0 Sectors per Track: 254 Data Bytes per Physical Sector: 512 Interleave: 1 Track Skew Factor: 11 sectors Cylinder Skew Factor: 20 sectors Surface (SURF): Off Removable Media (RMB): No Hard Sector Formatting (HSEC): Yes Soft Sector Formatting (SSEC): No scu> show layout format Format Device Page Layout (Page 0x3) Field Description & Offset/Bit Information Set Name ------------------------------------------ -------- Tracks per Zone (bytes 2-3) -> tracks_per_zone Alternate Sectors per Zone (bytes 4-5) -> alt_sectors_zone Alternate Tracks per Zone (bytes 6-7) -> alt_tracks_zone Alternate Tracks per Volume (bytes 8-9) -> alt_tracks_volume Sectors per Track (bytes 10-11) -> sectors_per_track Data Bytes per Physical Sector (bytes 12-13) -> bytes_per_sector Interleave (bytes 14-15) -> interleave Track Skew Factor (bytes 16-17) -> track_skew Cylinder Skew Factor (bytes 18-19) -> cylinder_skew Reserved (byte 20, bits 0:3) -> Surface (SURF) (byte 20, bit 4) -> surface Removable Media (RMB) (byte 20, bit 5) -> removable_mdeia Hard Sector Formatting (HSEC) (byte 20, bit 6) -> hard_sector_format Soft Sector Formatting (SSEC) (byte 20, bit 7) -> soft_sector_format Reserved (byte 21) -> Reserved (byte 22) -> Reserved (byte 23) -> scu> Uncle George wrote: > This device does multiple blocksizes up to 4096bytes/block > > Going beyond 512bytes/block has a big performence hit ~1/2 of the > 512bytes/block > > I tried to set the interleave in the format command, but it gave a > > scu> format interleave 3 > Formatting device /dev/sda (ST15150N), please be patient... > Working ... Sat Apr 28 07:48:31 2001 > scu: 'format unit' failed on device 'ST15150N' at nexus [0/1/0] > scu: Sense Key = 0x5 = ILLEGAL REQUEST - Illegal request or CDB > parameter, > Sense Code/Qualifier = (0x24, 0) = Invalid field in CDB > > scu> format interleave 4 > Formatting device /dev/sda (ST15150N), please be patient... > Working ... Sat Apr 28 07:48:39 2001 > scu: 'format unit' failed on device 'ST15150N' at nexus [0/1/0] > scu: Sense Key = 0x5 = ILLEGAL REQUEST - Illegal request or CDB > parameter, > Sense Code/Qualifier = (0x24, 0) = Invalid field in CDB > scu> > > scu> format > Formatting device /dev/sda (ST15150N), please be patient... > Working ... Sat Apr 28 07:48:50 2001 > Working ... Sat Apr 28 07:50:50 2001 > Working ... Sat Apr 28 07:52:50 2001 > > DOCUMENTATION suggests that it can do interleaves greated than 1, ie > > General performance characteristics > Minimum sector interleave 1 to 1 > Data buffer to/from disc media 512-byte sector > Data transfer rate ( 1 sector) > Minimum 5.30 Mbytes/sec* > Maximum 8.94 Mbytes/sec* > Data transfer rate (< 1 track) > Minimum, divided by interleave factor 3.56 Mbytes/sec > Maximum, divided by interleave factor 7.65 Mbytes/sec > > Is it HARDWARE, or software problem. How can I tell. > > BTW: FYI - axp-list@redhat.com --------------A327E36E9F613242888DAC79 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi All,
    The "ILLEGAL REQUEST" indicates the device doesn't like the
SCSI Format CDB sent.  I think I've only used the interleave option
with SCSI floppies.

    The drive may allow you to change for Format Device Mode Page.
Use Scu's "set page" or "change page" command to alter mode pages.

    Also, if you wish to see SCSI CDB's issued, use "set debug on".

Regards,
Robin
===============================================

scu> show page format pcf all

Mode Page Parameters for Direct Access Device c: (DDYS-T18350N):

Format Device Page (0x03):

      Headers: 23 00 10 08 00 00 00 00 00 00 02 00
      Current: 83 16 20 31 00 00 00 00 00 00 00 fe 02 00 00 01 00 0b 00 14
               40 00 00 00
   Changeable: 83 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
               00 00 00 00
      Default: 83 16 20 31 00 00 00 00 00 00 00 fe 02 00 00 01 00 0b 00 14
               40 00 00 00
        Saved: 83 16 20 31 00 00 00 00 00 00 00 fe 02 00 00 01 00 0b 00 14
               40 00 00 00
scu>
scu> show page format

Format Device Parameters (Page 0x3 - Current Values):

Mode Parameter Header:

                      Mode Data Length: 35
                           Medium Type: 0 (Default Medium Type)
             Device Specific Parameter: 0x10 (Supports DPO & FUA bits)
               Block Descriptor Length: 8

Mode Parameter Block Descriptor:

                          Density Code: 0
              Number of Logical Blocks: 0
                  Logical Block Length: 512

Page Header / Data:
                             Page Code: 0x3
                    Parameters Savable: Yes
                           Page Length: 22
                       Tracks per Zone: 8241
            Alternate Sectors per Zone: 0
             Alternate Tracks per Zone: 0
           Alternate Tracks per Volume: 0
                     Sectors per Track: 254
        Data Bytes per Physical Sector: 512
                            Interleave: 1
                     Track Skew Factor: 11 sectors
                  Cylinder Skew Factor: 20 sectors
                        Surface (SURF): Off
                 Removable Media (RMB): No
         Hard Sector Formatting (HSEC): Yes
         Soft Sector Formatting (SSEC): No

scu> show layout format

                     Format Device Page Layout (Page 0x3)

    Field Description & Offset/Bit Information        Set Name
    ------------------------------------------        --------
                       Tracks per Zone (bytes 2-3) -> tracks_per_zone
            Alternate Sectors per Zone (bytes 4-5) -> alt_sectors_zone
             Alternate Tracks per Zone (bytes 6-7) -> alt_tracks_zone
           Alternate Tracks per Volume (bytes 8-9) -> alt_tracks_volume
                   Sectors per Track (bytes 10-11) -> sectors_per_track
      Data Bytes per Physical Sector (bytes 12-13) -> bytes_per_sector
                          Interleave (bytes 14-15) -> interleave
                   Track Skew Factor (bytes 16-17) -> track_skew
                Cylinder Skew Factor (bytes 18-19) -> cylinder_skew
                      Reserved (byte 20, bits 0:3) ->
                   Surface (SURF) (byte 20, bit 4) -> surface
            Removable Media (RMB) (byte 20, bit 5) -> removable_mdeia
    Hard Sector Formatting (HSEC) (byte 20, bit 6) -> hard_sector_format
    Soft Sector Formatting (SSEC) (byte 20, bit 7) -> soft_sector_format
                                Reserved (byte 21) ->
                                Reserved (byte 22) ->
                                Reserved (byte 23) ->

scu>
 
 

Uncle George wrote:

This device does multiple blocksizes  up to 4096bytes/block

Going beyond 512bytes/block has a big performence hit  ~1/2 of the
512bytes/block

I tried to set the interleave in the format command, but it gave a

scu> format interleave 3
Formatting device /dev/sda (ST15150N), please be patient...
 Working ... Sat Apr 28 07:48:31 2001
scu: 'format unit' failed on device 'ST15150N' at nexus [0/1/0]
scu: Sense Key = 0x5 = ILLEGAL REQUEST - Illegal request or CDB
parameter,
     Sense Code/Qualifier = (0x24, 0) = Invalid field in CDB

scu> format interleave 4
Formatting device /dev/sda (ST15150N), please be patient...
 Working ... Sat Apr 28 07:48:39 2001
scu: 'format unit' failed on device 'ST15150N' at nexus [0/1/0]
scu: Sense Key = 0x5 = ILLEGAL REQUEST - Illegal request or CDB
parameter,
     Sense Code/Qualifier = (0x24, 0) = Invalid field in CDB
scu>

scu> format
Formatting device /dev/sda (ST15150N), please be patient...
 Working ... Sat Apr 28 07:48:50 2001
 Working ... Sat Apr 28 07:50:50 2001
 Working ... Sat Apr 28 07:52:50 2001

DOCUMENTATION suggests that it can do interleaves greated than 1, ie

General performance characteristics
Minimum sector interleave    1 to 1
Data buffer to/from disc media    512-byte sector
Data transfer rate (  1 sector)
Minimum    5.30 Mbytes/sec*
Maximum    8.94 Mbytes/sec*
Data transfer rate (< 1 track)
Minimum, divided by interleave factor    3.56 Mbytes/sec
Maximum, divided by interleave factor    7.65 Mbytes/sec

Is it HARDWARE,  or software problem.  How can I tell.

BTW:    FYI - axp-list@redhat.com

--------------A327E36E9F613242888DAC79--