SunVTS 2.0.1 Test Supplement
  Search only this book
Download this book in PDF

Disk and Floppy Drives Test (disktest)

2

disktest verifies the functionality of hard disk drives and floppy drives using three subtests (see Table 2-1). The disktest test performs a random seek check followed by a read test or a read after a write test on the disk. Most disk drives, such as SCSI disks, native or SCSI floppy disks, IPI, IDE, and so on, are supported. The type of drive being tested is displayed on the top of the option menu.
Initially, disktest probes the disks under /dev/rdsk. It checks all of the partitions of each disk. If any partition has a file system that is not yet mounted, disktest pre-mounts these partitions for the File System subtest. The pre-mount point bears the name of the disk partition appended with a system-wide unique number. For example, if the disk name is /dev/dsk/c0t3d0, disktest mounts it as superuser under the name /c0t3d0.xxxxxx. Where xxxxxx is a six-digit system-wide number. To disable the pre-mount point feature, set the BYPASS_FS_PROBE environmental variable to one:

  # setenv BYPASS_FS_PROBE 1  

The option menu shows all partitions (except the swap partition, partition 1) that are available for testing. The File System subtest can only be run if the selected partition is mounted. The Write option of the Media subtest is allowed only if a selected partition is not mounted.
disktest tests the floppy drive regardless of whether the Volume Management software is running.
  • If the Volume Management software is running, disktest tests the disk drive with the mount point name in the /etc/mnttab file.

CAUTION Caution - If a power failure occurs while the Media subtest is being run in write mode, disk data will be destroyed.

  • If the Volume Management software is not running, disktest tests the disk drive with the device name dev=/dev/diskette. Do not edit the /etc/vold.conf file to change the floppy drives. Currently, the SunVTS software is hard-coded to use these path names as the default logic name.
Table 2-1 describes the disktest subtests.
Table 2-1 disktest
SubtestDescription
Media SubtestVerifies disk media by writing data to and reading data from the disk. The Media subtest treats a disk as one large chunk of contiguous data. This is a scalable test, that can run multiple copies of it in read/write mode on the same disk partition. To avoid data corruption, all simultaneous instances of disktest communicate through a shared memory service. This ensures that different copies of the media subtest do not overlay the same disk block at the same time.
File System SubtestVerifies the disk system's integrity. The file system subtest exercises the partition being tested to determine if it is mounted. If the partition is not already mounted or pre-mounted, then the test is blocked. The test opens two temporary files (of the size specified on File System File Size) and performs a Read/Write test.
Table 2-1 disktest
SubtestDescription
Asynchronous I/O SubtestUses the asynchronous read/write feature of the Solaris disk driver to exercise the disk. In read-only mode, the test sends a maximum of four asynchronous read packets, each with a random size and a random offset into the selected partition. The test then waits for all outstanding I/O activity to complete before issuing another round of packets. This process continues until the whole area being tested is covered. In read-write mode, one write packet is issued in every four read packets as a spot check of the write operation. Before data is written to a particular location, data is backed up, write-verified, and restored to its original state.

disktest Test Options

Graphic

Figure 2-1 disktest

The disktest (see Figure 2-1 and Table 2-2) test has different option menus for different test modes.
Table 2-2 disktest
disktest OptionsDescription
PartitionDisplays the partition for the Media subtest. If a partition is mounted, its mount point is appended after the partition number, such as 1(/usr), where 1 is the partition number, and /usr is the mount point.
Test MediaEnables or Disables the Media subtest
Media Write Read ModeEnables Read Only or Read after write with backup
Media Coverage (%)Enables users to test all or part of a partition (in percentages)
Media Transfer SizeDisplays the transfer size of the media
File System Transfer SizeDisplays the transfer size of the File System subtest
File System Test PatternTest pattern of File System subtest
Connectivity Mode for
hard disk
Option Menu for hard disk partition: 0 - 7 [default]
Test Media: [Enable~](fixed to Enable)
Test Mode: [Read Only~](fixed to Read Only)
Media Coverage(%): [1](default - can be changed)
Media Transfer Size: [2KB]
Test File System: [Disable~](fixed to Disable)
Online Mode for Hard
Disk
Online Mode for hard disk partition: 0 - 7 [default]
Test Media: [Enable]<- [Disable]
Test Mode: [ReadOnly~](fixed to ReadOnly)
Media Coverage(%): [10]
Media Transfer Size: [2KB] [10KB] [20KB] <- [40KB] [60KB]
Test File System: [Disable~](fixed to Disable)
Offline Mode for Hard Disk(under SCSI-devices group): partition: 0 - 7 [default] Test Media: [Enable]<- [Disable]

Mode: [ReadOnly]<- [BackupWriteRead] Media Coverage(%): [30]

Media Transfer Size: [2KB] [10KB] [20KB] <- [40KB] [60KB] Test File System: [Enable] [Disable] <-

File System File Size:[512KB]<-[2MB][8MB][20MB] [100MB] [200MB] File System Transfer Size:[512B]<- [1024B][10KB][40KB] [100KB] File System Test Pattern:[sequential] [0x00000000] [0xffffffff] [0x5aa55aa5] [0xdb6db6db] [random]

Table 2-2 disktest(Continued)
disktest OptionsDescription
Offline Mode for floppy disk(under Other-Devices group): partition: 0 - 7 [default] Test Media: [Enable]<- [Disable]

Mode: [ReadOnly]<- [BackupWriteRead] Media Coverage(%): [30]

Media Transfer Size: [2KB]<- [10KB] [20KB] Test File System: [Enable] [Disable] <-

File System File Size:[512KB]<- [2MB] [8MB] [20MB] [100MB] [200MB] File System Transfer Size:[512B]<- [1024B] [10KB] File System Test Pattern:[sequential] [0x00000000] [0xffffffff] [0x5aa55aa5] [0xdb6db6db] [random]

NOTE: The floppy disktest can only be run in Offline mode.

disktest Test Modes

disktest supports all three test modes. It performs different test schemes on the network device according to the mode you select.
Table 2-3 disktest
Test ModeDescription
Connectivity ModeThis mode is only available for the hard disk test. There is no Connectivity mode for the floppy driver test. Only one instance of disktest is allowed for each disk device, which monitors UNIX error messages. disktest displays messages and reports errors. The test also opens the hard disk, checks the disk configuration, reads a few blocks, and then closes the hard disk. No File System subtest is run. No Write option is available in Connectivity mode.
Table 2-3 disktest(Continued)
Test ModeDescription
Online ModeThis mode is only available for the hard disk test. There is no Online mode for the floppy driver test. Only one instance of disktest is allowed for each disk device, which monitors UNIX error messages. disktest displays messages and reports errors.

In this mode, disktest also opens the hard disk, checks the disk configuration, and executes the Media subtest. Next, disktest performs random seek checks. Only Read Only mode is allowed. The default coverage is 10%. No File System subtest is run. When the test finishes, disktest closes the disk device being tested. No Write option is available in Online mode.

Offline ModeThis mode does not allow disktest to monitor UNIX error messages. More than one instance of disktest is allowed for one disk device. Both File system subtest and Media subtest can be run in Offline mode. Floppy test can also be run in Offline mode.

disktest Command Line Syntax

/opt/SUNWvts/bin/disktest standard_arguments -o p=n,-i=n,
-w=n,dev=<device_name>,partition=<0-7>,rawsub=E/D,rawrw=,
rawcover=,rawiosize=,method=,fssub=,fssize=,fsiosize=,fspattern=

Table 2-4 disktest
ArgumentExplanation
p=numberSets the number of passes for the test to run; default is 1
i=numberSets the number of total instances for the test; default is 1
w=numberDetermines which instance this test is assigned; default is 0
dev=<device_name>Specifies the name of the disk to be tested, such as c0t3d0
partition=<0-7>Specifies the partition number to test as partition=6(/export/s6) if mounted on partition 6
rawsub=Enable/DisableEnables or disables the media subtest
Table 2-4 disktest(Continued)
ArgumentExplanation (Continued)
rawrw=

Readonly

BackupWriteRead

Specifies the Media subtest Read and Write mode: -Read Only

-Write, read then backup

rawcover=Specifies media coverage from 0-100% of the partition, such as 70526f
rawiosize=<2KB,10KB
20KB,40KB,60KB>
Specifies the media size to transfer
method=SyncIO/AsyncIOSpecifies the media access method. Only available on the command line. Large file systems are not supported.
fssub=Enable/DisableEnables or disables the file system subtest
fspattern=<data
pattern>
Specifies the file system data pattern as sequential or
random. {seq(uential)/0x0(0000000)/0xf(fffffff)/0xa
(5a5a5a5)/0x5(a5a5a5a)/ran(dom)/0xd(b6db6db)}
fssize=<file system
size>
Indicates the file system subtest size in kilobytes or
megabytes:
K/k/KB/kb:kilobytes, M/m/MB/mb: megabytes
fsiosize=<file system I/O transfer size>Indicates the size of the file system subtest I/O transfer in bytes or kilobytes:

{512B/1024B/10KB/40KB/100KB}

disktest Error Messages

Table 2-5 disktest
Error MessageProbable Cause(s)Recommended Action
6000Re-reading and recomparingMedia errorIf the problem persists, call your
block <number> on <name>
Faulty cable, disk, or controller
authorized Sun service provider.
6002    Error on recomparing block

Media error...........If the problem persists, call your
<number> on <name>
Faulty cable, disk, or controller
authorized Sun service provider.
6004<name> failed on <name> <name>, blk <number>: <error_message>Faulty cable, disk, or controllerIf the problem persists, call your authorized Sun service provider.
Table 2-5 disktest(Continued)
Error MessageProbable Cause(s)Recommended Action
6006Compare error on <name> <name>, block <number>, offset <number>Faulty cable, disk, or controllerIf the problem persists, call your authorized Sun service provider.
6008    Compare error: Block

Media errorauthorized Sun service provider.If the problem persists, call your
<number> on <name> washex pattern of <number>
6010
6014<name> read failed on disk,
Media errorIf the problem persists, call your
in-between blocks <number>                                                                   ovider.

authorized Sun service pr
and <number>: <name>
Faulty cable, disk, or controller
6016<name> read failed due to
unexpected end of media:\
6018    <name> write failed on

Media errorauthorized Sun service provider.If the problem persists, call your
disk, in-between blocks<name>
6020
6022<name> compare failed on
Media errorIf the problem persists, call your
<name>, block <number>,                                               authorized Sun service pr

ovider.
offset <number>
Faulty disk or controller
6024    Couldn't close <name>

Faulty disk or controller.....If the problem persists, call your
System error
authorized Sun service provider.
6026failed automount <name>Un-supported file systemDisable the file system subtest.

onto <name>:<error_message>


System errorDisable the file system subtest.



If the problem persists, call your authorized Sun service provider.
6028<error_message>

Table 2-5 disktest(Continued)
Error MessageProbable Cause(s)Recommended Action
8000File system subtest only allow to run on off-line modeParameter errorRe-enter the command line correctly.
8002malloc() failedSystem load too heavy


System error
8006File operation error:Lack of system resourceReduce the system load.

Couldn't <name> file <name>Permission errorCheck directory or file permission.

on <name>: <error_message>



System errorIf the problem persists, call your authorized Sun service provider.
8008Not enough free blocks on <name> (partition <number>)
Try another partition or delete files.
8010No writable partition on <name>
Try another partition.
8012No file system on device: <name>
Use newfs to create the file system.



Disable the file system subtest.
8014Couldn't run fstest on anyFile system not supportedDisable the file system subtest.

partition of device: <name>(except 2)System errorIf the problem persists, call your authorized Sun service provider.
8016Cannot open device: <name>Parameter errorEnter the correct name of disk as dev=c0t3d0.


System errorIf the problem persists, call your authorized Sun service provider.
8018Couldn't mount
/dev/dsk/<name>
Parameter errorEnter the correct name of disk as
dev=c0t3d0.


System errorIf the problem persists, call your authorized Sun service provider.
8020Couldn't remove temporary dir <name>: <error_message>System errorIf the problem persists, call your authorized Sun service provider.
8022fail get semaphore:Lack of system resourceReduce the system load.

<error_message>



System errorIf the problem persists, call your authorized Sun service provider.
Table 2-5 disktest(Continued)
Error MessageProbable Cause(s)Recommended Action
8024fail lock mtab semaphore: <error_message>System errorIf the problem persists, call your authorized Sun service provider.
8026fail unlock mtab semaphore: <error_message>System errorIf the problem persists, call your authorized Sun service provider.
8028failed get_volmgr_name()

8030Couldn't open <name>:Cable loose or disconnectedCheck the cable.

<error_message>



Device off line or missingCheck the device on line.


Device not configuredConfigure the device.
8032Get file state <name> failed: <error_message>System errorIf the problem persists, call your authorized Sun service provider.
8034Couldn't open <name>Permission errorCheck the permissions.


System errorIf the problem persists, call your authorized Sun service provider.
8036failed putmntent(): <error_message>System errorIf the problem persists, call your authorized Sun service provider.
8038fail rename filePermission errorCheck permission.


System errorIf the problem persists, call your authorized Sun service provider.
8040Couldn't get mount table entry for <name>

8042Invalid device name in
<name>
Parameter errorEnter the correct name of disk as
dev=c0t3d0.
8044Message table overflow on device <name>Parameter errorEnter the correct name of disk as dev=c0t3d0.
System error..........If the problem persists, call your
Program error
authorized Sun service provider.
8046Invalid controller id <name> for <name>Parameter errorRe-enter the command line correctly.
8048<name>, disk DKIOCINFOController is not supportedDisable the file system subtest.

ioctl: <name>

System errorIf the problem persists, call your authorized Sun service provider.
Table 2-5 disktest(Continued)
Error MessageProbable Cause(s)Recommended Action
8050failed getting sharedLack of system resourceReduce the system load.

memory for monitor <number>: <error_message>:System errorIf the problem persists, call your authorized Sun service provider.
8052failed attaching monitorLack of system resourceReduce the system load.

shared

memory:<error_message>

System errorIf the problem persists, call your authorized Sun service provider.
8053failed create monitorLack of system resourceReduce the system load.

shared memory <number>:



System errorIf the problem persists, call your authorized Sun service provider.
8054Shm remove error:
<error_message>
System errorIf the problem persists, call your
authorized Sun service provider.
8056New error messages in
system log. Extracted
Faulty cable/disk/controllerSee /var/adm/messages for
more information.

below:<error_message>
If the problem persists, consult your authorized Sun service provider.
8060fails to open any partition of <name>File system not mountedMount the file system then run the test.



Disable the file system subtest.



If the problem persists, call your authorized Sun service provider.
8060failed getting semaphore: <error_message>System errorIf the problem persists, call your authorized Sun service provider.
8062failed getting shared memory: <error_message>System errorIf the problem persists, call your authorized Sun service provider.
8064failed attaching shared memory:<error_message>System errorIf the problem persists, call your authorized Sun service provider.
8068failed unlocking semaphore: <error_message>System errorIf the problem persists, call your authorized Sun service provider.
8070fail open floppy diskNo floppy disk in driveCheck the floppy disk.
8072failed FDIOGCHAR on floppy ioctlSystem errorIf the problem persists, call your authorized Sun service provider.
Table 2-5 disktest(Continued)
Error MessageProbable Cause(s)Recommended Action
8074ioctl DKIOCGGEOM failedFile system not supportedIf the problem persists, call your
System error
authorized Sun service provider.
8074ioctl DKIOCGAPART failedSystem errorIf the problem persists, call your authorized Sun service provider.
8076fail initialize shared memorySystem errorIf the problem persists, call your authorized Sun service provider.
8078Illegal parameters on Online ModeParameter errorEnter the correct option.
8080Illegal parameters on Conn. ModeParameter errorEnter the correct option.
8082failed get_volmgr_name()No floppy disk in driveCheck the floppy disk.
8084Mounted file system onNot enough disk spaceReduce the system load.

device!

Permission errorCheck directory or file
permissions.


System errorIf the problem persists, call your authorized Sun service provider.
8086Invalid controller id <number> from <name>Parameter errorEnter the correct name of disk as dev=c0t3d0.
8088Couldn't get file system information on <name> errno=<number>System errorIf the problem persists, call your authorized Sun service provider.
8090ioctl() failed on <name>:
<name>
System errorIf the problem persists, call your
authorized Sun service provider.
8092Fail to get disk
information
No supported diskNo UNIX message monitor feature
in this disk(2).


System load too heavyReduce the system load
8094Failed to create a message
base for controller
<number>
No disk under this controllerConnect the disk driver then run
the test again.
Table 2-5 disktest(Continued)
Error MessageProbable Cause(s)Recommended Action
8096fail to make directoryLack of system resourceReduce the system load.

<name>



Permission errorCheck directory or file
permissions.


System errorIf the problem persists, call your authorized Sun service provider.
8098Failed to mount partitionDoes this disk only have partition 2Partition 2 must be manually mounted.
8010r/w is on /dev/r<name>System errorIf the problem persists, call your authorized Sun service provider.
8102write/read count errorOut of disk spaceTry another partition or delete some files.
8104failed to create bufferNot enough memoryReduce the system load. If the problem persists, call your authorized Sun service provider.
8106failed aioread() : <offset> <error number> <error string>Faulty cable, disk, or controllerIf the problem persists, call your authorized Sun service provider.
8108failed aiowrite() : <offset> <error number> <error string>Faulty cable, disk, or controllerIf the problem persists, call your authorized Sun service provider.
8110failed aiooperation() : <number> <text>Large file is not supportedDeselect the Async test method from the option menu.


Faulty cable, disk, or controllerIf the problem persists, call your authorized Sun service provider.