scsi-config(8) | Scsiinfo User's Guide | scsi-config(8) |
scsi-config - query information from a scsi device with a nice user interface
scsi-config [device]
scsi-config queries information from an scsi target with a nice Tcl/Tk user interface. If you do not specify a device to query, scsi-config calculates a list of available devices and prompts it to you.
By the nature of a graphical user interface, most things will explain them self. Basically, scsi-config shows a list of buttons for certain mode pages which you may press. Those buttons which you can press and the text windows with white backgrounds can be modified by you and the modifications send back to the device.
In the main window there is a button to instruct the device to save the data in some non volatile memory (if it supports it). Note that this will instruct the device to save the Read-Write Error Recovery Page , Disconnect-Reconnect Page , Format Device Page , Caching Page , and Control Mode Page in its NVRAM. Usually saving even a single of those should write them all to the NVRAM, but you never know.
You can query the current, the factory default and the values in the NVRAM (which may not be the current parameters) from the device.
Not all combinations of button toggles or all values are valid. In general, try to set them and see which values the drive accepts. scsi-config rereads the device configuration immediately, s.t. you see which values where accepted.
Also note that some disk drives are notched, and that those have an active notch (shown in the main window) to which all your settings apply (at least those of notched pages, which are also marked in slate gray). You can select the active notch to which your settings apply (and to which the values refer) in the Notch Page.
For those devices which do not feature an NVRAM (generally removable media devices) and as a kind of backup, you can save the current settings to a file. Actually the file will be a /bin/sh script making the necessary scsiinfo(8) calls to set the saved parameters when executed.
There is also a nice Overview button which will query many details about the disk geometry and draw them in a nice picture. This looks esp. nice for drives with many notches, that is different regions on the disk with different tracks per sector settings. It is also very useful for notched drives as you can immediately select the mode pages for each notch.
There is a SCSI command to flush the caches. Linux could call it prior to shutting down, spinning a disk down. Due to my knowledge this is not yet done though.
Just imagine that at the point where a file system is unmounted, or a new removable media is detected it could tell: Oops, BTW, there was some write error ago although I told you it was OK already.
In the same window, you can select the maximal retries performed. EER allows the disk to do some Early Error Recovery which is fast (but might misdetect or miscorrect data). A selected DCR button (Disable CoRrection Codes) disallows the disk to use any error correction codes at all (thus the drive will have to retry until it performs an error free read).
Usually a sector will be reallocated after even a single read retry or the given number of failed write retries. When the sector cannot be recovered, it is reallocated but the data is lost and an error is signalled.
The other buttons there apply to error reporting as well. TB Transmits the bad Block together with the error, RC Reads Continuous, that is, does not pause a read operation while retrying or using error code calculations to recover a bad block (thus may return bad data). PER lets the disk report even recovered errors (Post ERror), DTE (Disable Transfer on Error) even breaks a running data transmission when an error is detected.
Note that this page is very likely to apply only to the current notch on a notched disk device.
If there are no, or not many alternate sectors reserved on your disk, you must change these settings.
I found that those disks which allow to modify these settings are very often set to no reserved sectors at all by the vendors, as this increases the disks capacity. For the sake of stability, you should really modify these settings.
If you decide to modify the number of alternate sectors, you must
The old adventurers guide line applies: Save (Backup) Early, Save (Backup) Often. Find the right time to replace your disk avoiding too much work recovering your data.
scsi-config could be enhanced by making better use of Tcl/Tk. I learned much about it during my work on tk_scsiformat(8) and their would be much room for fixes and enhances. On other hand, it fulfils it's purpose as it is quite nicely already.
As scsi-config makes heavy use of scsiinfo(8) all it's bugs (esp. on defect reading) apply.
/usr/lib/scsi/cache, /usr/lib/scsi/control,
/usr/lib/scsi/disconnect, /usr/lib/scsi/error,
/usr/lib/scsi/format, /usr/lib/scsi/generic,
/usr/lib/scsi/inquiry, /usr/lib/scsi/notch,
/usr/lib/scsi/overview, /usr/lib/scsi/peripheral,
/usr/lib/scsi/rigid, /usr/lib/scsi/save-changes,
/usr/lib/scsi/save-file, /usr/lib/scsi/tworands,
/usr/lib/scsi/verify (Tcl/Tk subroutines used by scsi-config).
/dev/sd*
/dev/sg*
/dev/scd*
/dev/st*
/dev/nst*
/dev/rmt*
/dev/nrmt*
scsiinfo(8), scsiformat(8), tk_scsiformat(8), fdisk(8), sd(4),
Draft proposed
American National Standard
for information systems
SMALL COMPUTER SYSTEM INTERFACE - 2
(SCSI-2)
MARCH 9, 1990
Eric Youngdale.
Michael Weller <eowmob@exp-math.uni-essen.de>, Versions 1.5 &
1.7
24 August 1997 | scsiinfo 1.7 |