Link rate problem of SAS HDD

Douglas Gilbert dgilbert at interlog.com
Fri Feb 15 16:08:18 UTC 2013


On 13-02-15 04:02 AM, jackson wang wrote:
> Hello,All.
>
> I have a SAS HDD,have some demands as following:
>
> 1.Use SCSI command to get the supported link rates,ex:1.5? 3.0? or 6.0 Gb/s;
> 2.Get current working link rate with SCSI CMD;
> 3.Need to downgrade 6.0gb/s to 3.0gb/s with SCSI CMD because some RAID
> card had bugs,
> so speed negotiation sometimes failed;
>
> I know many RAID cards have management tool:CLI,which could make it,
> but not all system install that
> tool, so using SCSI command is the only option.

May I immodestly propose sdparm which is written for
Linux but ported to FreeBSD (Solaris and Windoze). You
will need to familiarize yourself with SAS "phy control
and discover" mode page. Then see:
     http://sg.danny.cz/sg/sdparm.html

There is an example in the Examples section. The items of
interest are: Programmed minimum link rate and Programmed
maximum link rate. By changing them and resetting the disk
you constrain the following speed negotiation.

You may also be interested in my sg3_utils (for general SCSI
commands) and smp_utils (for SAS expanders) packages. They
are also ported to FreeBSD.

Doug Gilbert





More information about the freebsd-scsi mailing list