IN THIS EDITION
Introduction Command compliance testing is an important engineering step in designing new storage devices. It is also important to storage integration companies for comparing drives from different vendors or for checking operability of different firmware revisions or other changes. Testing command compliance can have both a positive and a negative test approach. You need to test that legal commands are processed correctly, and you may need to test that illegal commands fail correctly. Both of these methods can be tested using the STB Suite, using either the stand-alone SCSI and SATA command compliance applications, or also by using the techniques outlined in this article to use the built-in CDB and SATA Command Sequencer features. Using the CDB or Command SequencerA built-in feature of the STB Suite is the SCSI CDB Sequencer and the SATA Command Sequencer. Both features work in the exact same way to issue any SCSI or SATA command to any type of device. The commands are defined in text files which are easy to add to and edit. Both features produce the same type of output log, and both are very easy to use. A SCSI exampleFor this example we will use the SCSI CDB Sequencer to do command compliance testing of a disk drive. The first step is to create a command file with the disk commands which you want to test. You may want to create one command file with non-destructive commands and a different file with destructive commands – such as WRITE and FORMAT commands. Likewise you can create separate command files for destructive and non-destructive testing of tape drives. The command files used by the CDB sequencer consist of entries for each command, such as:
The first field is the name of the command, followed by the CDB length (6,10,12,0r 16 bytes), followed by the data direction (1=in, 0=out), followed by the data length in hexadecimal, followed by the bytes of the CDB, also in hexadecimal. As simple example of a non-destructive command test file will include the commands
And looks like this:
Running the exampleSelect a SCSI Disk drive in the device menu, then start the SCSI CDB Sequencer by going to the top menu The SCSI CDB Sequencer dialog will be displayed – And clicking on the View CDBs button will show our commands – The easiest way to accomplish this is while the Available Commands box is displayed (from clicking the View CDBs button), just double-click on each command in the Available Commands window, bring that command into the Command Entry window. Then click Execute. Simple! Do this for all four commands. You will now have all four commands in your Command History window, as shown here: To replay the same test – Select your drive and start the SCSI CDB Sequencer, again specifying your test command file. Now use the Load from File button to load your saved history (.his) file from above. Now use click and Shift-Click to select all the commands in the history window as shown here – Now click the Execute button and all of the commands will be issued in order, with the results shown in the Commands Results window as shown here - Also – note that the CDB Sequencer lets you specify how many data bytes will be recorded to the Command Results window – the default is 8 bytes. If you need to capture more data than 8 bytes simply specify it before running the test. SummaryUsing the STB Suite CDB or ATA Command Sequencers makes command compliance testing quick and easy. You can test any device type on any interface. Keep your previous command files for regression testing, and add new or vendor-unique commands as you need for testing new device functionality. This example used the SCSI CDB sequencer. SATA Command compliance is accomplished the exact same way but using a SATA drive connected to a native SATA motherboard port, and using the SATA Command Sequencer run from the ATA/SATA->ATA Command Sequencer menu choice.
IntroductionSATA disk drives maintain a number of different logs, documenting various device performance information, error information, and the results of previously run self tests. This article will focus on the SATA Extended SMART Self-Test logs. Where to find informationDocumentation on SATA drives in general can be found at the www.T13.org web site. The particular document that will be referenced in this article is T13/1699-D AT Attachment 8 –ATA/ATAPI Command SET (ATA8-ACS) Viewing Logs with the STB SuiteThere are two methods of retrieving and viewing the Extended SMART Self-Test Logs using the STB Suite – the method you use will depend upon how your SATA drive is connected to your test system. Direct Motherboard SATA port connection –When a SATA drive is connected to your test system through one of the system motherboard SATA ports you will use the STB Original mode, top-menu ATA/SATA->Commands->View SMART Self-Test Logs function. This will open a dialog where you will select your SATA drive from the list of drives shown in the Devices window on the right of the dialog. Simply click on the drive you are interested in and the logs will be displayed as follows: Extended Log Data-Content of the LBA Field – this byte tells what type of self test was run – the STB Suite interprets this below this line. -Self Test Execution Byte – this byte shows the final status of the self test, the interpretation of this byte is taken from the following table: -Life Timestamp(s) these two bytes display the power-on hours when this self test was completed. -Selftest Failure Checkpoint Byte – this byte may contain additional information if the self test failed. Check the documentation from your drive vendor for your particular drive for definitions. - Failing LBA – the LBA of the logical sector that caused the test to fail. If the test passed then this field is undefined. Click the Save Results to File button to save the contents of the test results to a text file. SATA Drives connected to SAS HBA port connection –In order to test multiple SATA drives, including executing SMART Self Tests and retrieving SMART Self Test logs you will use the STB Suite Disk Manufacturing Module (DMM). The required test system hardware configuration for testing SAS/SATA drives using DMM is a SAT-compliant SAS host bus adapter – we recommend the LSI 3800X or LSI 3801e cards. These are four-port cards which you need to connect to drive enclosures which include expanders. Dell and Promise manufacture such enclosures, contact sales@scsitoolbox.com for details on where to purchase this hardware. Retrieving and logging SMART Self Test logs is accomplished by adding the SATA Info test step to your test sequence. This test will retrieve the SATA IDENTIFY, and SMART self test log data and interpret and log it to your log file(s). Here is an example of the self test log data logged: SummaryThe SATA Extended SMART Self Test logs can provide valuable information to help you determine the overall health of your disk drive.
Here is a list of some recent customer training sessions that STB has conducted - live, interactive web sessions presented by STB programmers:
Contact Jeremy Wolfe at (720) 249-2641 today to schedule your own custom training session!
Ask Dr. SCSI - “Can the STB Suite do a quick format?” A. "A quick format is usually just erasing the OS FAT (File Allocation Table) from a drive. Which gets rid of the file system pointers to any user data on the drive, but does not actually remove the data itself. Which is why it not a secure thing to do if you are worried about that old data.
Thinking about upgrading your old STB Suite licenses? Now is the time! With your STB Suite Performa coverage you're qualifed to receive:
You can purchase your upgrades online: http://www.scsitoolbox.com/buy.asp and save 5%, or call Jeremy in sales to get a customized quote.
|
|