IBM TS2340 User Guide - Page 388
Service Aid Subcommands, setpos [Blockid], volid, write -s Source
UPC - 883436006873
View all IBM TS2340 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 388 highlights
AIX - Tape Utility Program (tapeutil) # Create 32 SDP partitions and then query partitioning tapeutil -f/dev/rmt0 sdp 32 qrypart seod: This subcommand spaces to the end of data on the tape. setpos [Blockid]: This subcommand issues the SCSI Locate command to the device to set the tape position. If the optional Blockid parameter is specified, the tape position is set to the Blockid. Otherwise, if the Blockid parameter is omitted, the tape position is set to the last position saved using the qrypos subcommand. The Blockid can be specified in decimal or in hexidecimal, with a leading x. For example: # Append myfile.tar to the end of tape and then read back tapeutil -f/dev/rmt0.1 append \ qrypos \ write -s myfile.tar \ setpos \ read -d temp.tar # Verify myfile.tar was written correctly diff myfile.tar temp.tar # Set tape position to block 32 and leave positioned on close tapeutil -f/dev/rmt0.1 setpos 32 # Set tape position to block 32 and leave positioned on close tapeutil -f/dev/rmt0.1 setpos x20 sili: This subcommand turns on the SILI bit in variable length SCSI Read commands for all subsequent subcommands, such as rtest, rwtest, and read. sync: This subcommand synchronizes or flushes the tape buffers to tape. volid ″Name″: This subcommand sets the volume ID for logging. Refer to "Volume ID for Logging" on page 34 and "Volume ID for Logging" on page 374. write -s Source: This subcommand writes the source file specified with the -s flag on the tape. For example: # Backup myfile.tar to tape tapeutil -f/dev/rmt0 write -s myfile.tar wtest [-b Blocksize] [-c Count] [-r Repetition]: This subcommand performs a write test by writing a random data pattern on the tape. The rtest subcommand can be used after the wtest subcommand to verify the data that was written. An optional block size, count, and repetition can be specified with the -b, -c, and -r flags, respectively. If the block size is fixed, then the count specifies the number of blocks to write on each repetition. If the block size is zero (variable), then the count specifies the number of bytes to write on each repetition. The default is a block size of 10240, a count of 20 blocks, and a repetition of 1. For example: # R/W test using 256 KB blocks, 5 megabytes per write, 100 times tapeutil -f/dev/rmt0 rewind \ wtest -b 262144 -c 20 -r 100 \ rewind \ rtest -b 262144 -c 20 -r 100 Service Aid Subcommands The following service aid subcommands are available for the tape devices. dump [Filename]: This subcommand forces a dump on the tape device and stores the dump in the specified Filename or, if Filename is omitted, in the system /var/adm/ras directory. The device driver stores up to three dump files in this 370 IBM Tape Device Drivers Installation and User's Guide