Jeff Garzik wrote:
Douglas Gilbert wrote:

sdparm is a new command line utility designed to get and set
SCSI disk parameters (cf hdparm for ATA disks). More generally
it gets and sets mode page information on SCSI devices or devices
that use a SCSI command set (e.g. CD/DVD drives (any transport)
and SCSI tape drives).


I'm biased, but I would prefer to use blktool for this sort of thing...

Jeff, There is definitely some overlap on the most important parameters for disks (e.g. write caching). blktool covers near end (HBA), transport and device settings. sdparm concentrates on the far end device settings (and in some cases transport settings from the point of view of that device) for devices that use a SCSI command set.

sdparm assumes some knowledge of SCSI mode page structure
and what facilities are available. Figures and descriptions
of mode pages are found in product manuals and SCSI
standards (e.g. SPC-3 and SBC-2). Beyond primary settings
such as write caching, there are many interesting
settings.

For example, SCSI disks recovered from (hardware)
RAIDs (>= 3) often have the Automatic Read/Write Reallocation
bits (ARRE and AWRE) clear. This is not the manufacturer's
default. I assume this is to generate medium errors at the
first sign of trouble so the parity disk is brought into
play. When such a disk is used stand alone, a user would probably
want those bits on (and of course they should be using
smartmontools or similar to gauge the health of the disk).
sdparm can set a mode page back to its manufacturer's
default settings.
Another example is the tuning mode that Seagate has
introduced for its disks (i.e. server or desktop mode).
See sdparm.8 for further information.

IMO blktool and sdparm complement one another.

Doug Gilbert

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to