📄 tapex.8
字号:
.TH tapex 8.SH Nametapex \- tape exerciser program.SH Syntax.B tapex[.I option(s)][.I parameter(s)].SH DescriptionThe.PN tapexprogram tests tape driver functionality..NXR "tapex program"These tests provide more comprehensive functional coverage than the.PN mtxutility which does simple start/stop oriented read/write testing.Functions that are tested include:.RS 3.IP \(bu 4 Writing records onto a tape and verifying the records.IP \(bu Using records in a range of sizes.IP \(bu Record-length testing.IP \(bu Random record-size testing.IP \(bu Positioning tests for records and files.IP \(bu Writing and reading past the end of media.IP \(bu End-of-file testing.IP \(bu n-buffered I/O testing.IP \(bu Tape-transportability testing.IP \(bu Bandwidth performance analysis.IP \(bu Media loader testing.IP \(bu Reporting of tape contents.RE.PPWhen .PN tapexis run, a writable tape must be loaded in the drive being tested, and the drive must be online..SH OptionsSome.PN tapexoptions cause specific tests to be performed, for example, an end-of-media test. Other options modify the tests, for example, enabling caching. The .PN tapex options are as follows:.NXR "tapex program" "options".IP \-a 5Performance measurement test that calculates the tape transfer bandwidthfor writes and reads to the tape by timing data transfers..IP \-b 5Continuously runs the write/read tests until the process is killed.This flag can be used in conjunction with the .PN \-ror .PN \-g flag..IP \-c 5Enables caching on the device, where supported. This does notspecifically test caching, but it enables the use of caching ona tape device while running the other tests..IP \-C 5Disables caching on TMSCP tape devices. If the tape device isa TMSCP unit, then caching is the default mode of test operation.This flag causes the tests to be run in noncaching mode..IP \-d 5Tests the ability to append to the media. First, the testwrites records to the tape. Then, it repositions back onerecord and appends additional records. Finally, the test does a read verification. This test simulates the behaviorof the .PN "tar r"switch..IP \-e 5End-of-media test. This test first writesdata to fill up a tape, which may take a long time for long tapes.It then does reads and writes past the end of media, which should fail. Next it enables writing past end of media, writes to the tape, and readsback the records for validation..IP \-E 5Runs an extensive series of tests in sequential order. Due to the large number of tests, this option takes a long time to complete. Depending on tape type and cpu type, this series of tests can take up to 10 hours to complete..IP "\-f \f(CW/dev/rmt#\fI?\FP" 5Specifies the name of the device special file that corresponds to the tape unit being tested.The number sign (#) symbol represents the unit number. The question mark (?) argument can be theletter .PN h for the high density device or the letter.PN l for the low density device. The default tape device is .PN /dev/rmt0h ..IP \-F 5File-positioning tests. First, files are written to the tape andverified. Next, every other file on the tape is read. Then, thepreviously unread files are read by traversing the tape backwards. Finally, random numbers are generated; the tape is positioned to thoselocations, and the data is verified. Each file uses adifferent record size..IP \-G 5File-positioning tests on already-written tape. This flagcan be used in conjunction with the .PN \-F flag to run the file position tests on a tape that has already beenwritten to by a previous version of the .PN \-F test. For this to work, the same test parameters,for example record size and number of files, must be used as when thethe tape was written. No other data should have been written tothe tape since the previous .PN \-F test..IP \-g 5Random record-size tests. This test writes records of random sizes.It reads in the tape, specifying a large read size; however, onlythe amount of data in the randomly-sized record should be returned.This test only checks return values and does not validate recordcontents..IP \-h 5Displays a help message describing the tape exerciser..IP \-i 5Interactive mode. Under this mode, the user is promptedfor various test parameters. Typical parameters include the recordsize and the number of records to write.The following scaling factors are allowed:.RS.IP "k \fRor\fP K" 10for kilobyte (1024 * n).IP "b \fRor\fP B" 10for block (512 * n).IP "m \fRor\fP M" 10for megabyte (1024 * 1024 * n).RE.PPFor example, 10k would specify 10240 bytes..IP \-j 5Write phase of the tape-transportability tests. This test writesa number of files to the tape, and then verifies the tape. Aftera successful verification, the tape is brought offline to bemoved to another tape unit and read in with the .PN \-koption.The purpose of this test is to prove that a tape can be writtenon one drive and read by another drive. Note that the testparameters for the .PN \-k phase of the transportability test mustmatch the parameters of the .PN \-j test. Any changes of test parameters from the defaults should also be changed during the .PN \-k test..IP \-k 5Read phase of the tape-transportability tests. This test readsa tape that was written by the .PN \-j test and verifies that the expecteddata is read from the tape. Success of this test proves that a tapecan be written on one drive and read on another. Asstated in the the description of the .PN \-j option, any parameters changed in the .PN \-j test must also be changed in the .PN \-k test..IP \-L 5Media loader test. For sequentialstack loaders, the media is loaded, written to, and verified. Then the media is unloaded, and the test repeats on the next piece ofmedia. This verifies that all the media in the input deck is writable. To run this test in read-only mode, also specify the .PN \-w option..IP \-l 5End-of-file test. This test verifies that a zero byte count isreturned when a tape mark is read and that another read willfetch the first record of the next tape file..IP \-m 5Displays tape contents. This is not a test; it reads the tapesequentially and prints out the number of files on the tape, the number ofrecords in each file, and the size of the records within the file. Thecontents of the tape records are not examined. .IP \-N 5Disables the usage of n-buffered I/O on tests that support its usage.(See .MS nbuf 4for a description of n-buffered I/O.).IP "\-o \fIfilename\fP" 5.brSends output to the specified filename. The default is to not create anoutput file and send output to the terminal. .IP \-p 5Runs both the record and file positioning tests. (See the .PN \-R and .PN \-F options.).IP \-q 5Command timeout test. This test verifies that the driverallows enough time for completion of long operations. The testconsists of writing files to fill up the tape. Next a rewind isperformed followed by a forward skip out to the last file. Thetest is successful if the forward skip operation completes withouterror..IP \-r 5Record-size test.A number of records are written to the tape and then verified.This process is repeated over a range of record sizes..IP \-R 5Record-positioning test. First, records are written to the tape andverified. Next, every other record on the tape is read. Then, theother records are read by traversing the tape backwards. Finally,random numbers are generated; the tape is positioned to thoselocations, and the data is verified..IP \-s 5Record-size behavior test. Verifies that a record read will returnat most one record or the read size, whichever is less..IP \-S 5Single record size test. This option modifies the record-size test (.PN \-r option)..IP \-T 5Copies output to standard output. This flag is useful ifyou want to log output to a file with the .PN \-o option and also have the output displayed on standard output. This flag must be specified after the .PN \-o flag in the command line..IP \-v 5Verbose mode. This option causes more detailed terminal output ofwhat the tape exerciser is doing. For example, it listsoperations the exerciser is performing, such as record counts,and more detailed error information..IP \-V 5Very verbose mode. This option causes more output to begenerated than either the default mode or the .PN \-v flag. The output consists of additional status information on exerciseroperation. .IP \-w 5Opens the tape as read-only. This mode is only useful for teststhat do not write to the media. For example, it allows the .PN \-m test to be run on a write-protected media..IP \-Z 5Initializes read buffer to the nonzero value 0130.This may be useful for debugging purposes. If the .PN \-Z flag is not specified, all elements of the read buffer will be initialized to 0. Many of the tests first initialize their read buffer and then performthe read operation. After reading a record from the tape, some testsvalidate that the unused portions of the read buffer remain at the value to which they were initialized. As a debugging tool, it may in some cases beuseful to have this initialized value set to be nonzero. In those cases,the arbitrary character 0130 can be used. .SH Parameters.NXR "tapex program" "parameters"You can change the default test parameters either by using the .PN \-i option described previously or by specifying the parameters in the commandline. This section describes the parameters you can set in the commandline, listed with the associated test. .PPTo specify a value, type the parameter name followed by a spaceand then the number. For example .PN \-min_rs 512 specifies a minimum record size of 512 blocks.The following scaling factors are allowed:.RS 5.IP "k \fRor\fP K" 10for kilobyte (1024 * n).IP "b \fRor\fP B" 10for block (512 * n).IP "m \fRor\fP M" 10for megabyte (1024 * 1024 * n).RE.PPFor example, 10K would specify 10240 bytes.These parameters are associated with the option .PN \-a :.IP \-perf_num 10The number of records to write and read..IP \-perf_rs 10The size of records..PPThese parameters are associated with the option .PN \-d :.IP \-tar_num 10The number of additional and appended records..IP \-tar_size 10The record size for all records written in this test..PPThese parameters are associated with the option .PN \-e ..PPNote that specifying too much data to be written past EOM could causea reel-to-reel tape to go off the end..IP \-end_num 10The number or records written past EOM..IP \-end_rs 10The record size..PPThese parameters are associated with the option .PN \-F :.IP \-num_fi 10The number of files..IP \-pos_ra 10The number of random repositions..IP \-pos_rs 10The record size..IP \-rec_fi 10The number of records per file..PPThis parameter is associated with the option.PN \-g :.IP \-rand_num 12The number of records to write and read..PPThese parameters are associated with the options .PN \-j and .PN \-k :.IP \-tran_file 10The number of files to write or read..IP \-tran_rec 10The number of records contained in each file..IP \-tran_rs 10The size of each record..PPThese parameters are associated with the option .PN \-R :.IP \-pos_num 10The number of records..IP \-pos_ra 10The number of random repositions..IP \-pos_rs 10The record size..PPThese parameters are associated with the options .PN \-r and .PN \-S :.IP \-inc 10The record increment factor..IP \-max_rs 10The maximum record size..IP \-min_rs 10The minimum record size..IP \-num_rec 10The number of records..IP \-t 10Sets a time limit in minutes on how long to run the record-size test (.PN \-roption). The default is to run the test to completion..PPThese parameters are associated with the option .PN \-s :.IP \-num_rec 10The number of records..IP \-size_rec 10The record size..PPThis parameter is used in any test which supports n-buffered I/O:.IP \-num_nbuf 12The number of buffers to use..PPThis parameter is associated with all tests:.IP \-err_lines 10The threshold on error printouts..SH ExamplesThis example runs a series of tests on tape device .PN rmt1h and sends all output to a file called .PN tapex.out ..EXtapex \-f /dev/rmt1h \-E \-o tapex.out.EEThis example runs the end-of-media test on tape device .PN rmt4h . Verbose mode is specified, which causes additional output. By default, output is directed to the terminal..EXtapex \-f /dev/rmt4h \-v \-e.EEThis example performs read/write record testing. By default, this test runs on the default tape device .PN /dev/rmt0h and output is sent to the terminal. .EXtapex \-r.EEThis example performs read/write record testing using record sizes in the range 10k to a maximum record size of 20k. By default, this test runs on the default tape device .PN /dev/rmt0h and output is sent to the terminal..EXtapex \-r \-min_rs 10k \-max_rs 20k.EE.SH See Alsomtx(8).br.I "Guide to System Exercisers"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -