IBM TS2340 User Guide - Page 409
Medium Changer Subcommands, status, unlock, write -s Source
UPC - 883436006873
View all IBM TS2340 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 409 highlights
Linux - Tape Utility Program (IBMtapeutil) # Append myfile.tar to the end of tape and then read back IBMtapeutil -f /dev/IBMtape0n 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 IBMtapeutil -f /dev/IBMtape0n setpos 32 # Set tape position to block 32 and leave positioned on close IBMtapeutil -f /dev/IBMtape0n setpos x20 status: This subcommand issues the MTIOCGET command and prints out status information about the tape unit. sync: This subcommand synchronizes or flushes the tape buffers to tape. tell: This subcommand reports the current block position on the tape and saves the position for use by a subsequent seek subcommand. unlock: This subcommand unlocks the tape drive door. write -s Source: This subcommand writes the source file specified with the -s flag on the tape. For example: # backup myfile.tar to tape IBMtapeutil -f /dev/IBMtape0 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, the count specifies the number of blocks to write on each repetition. If the block size is zero (variable), 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 256K blocks, 5 megabytes per write, 100 times IBMtapeutil -f /dev/IBMtape0 rewind \ wtest -b 262144 -c 20 -r 100 \ rewind \ rtest -b 262144 -c 20 -r 100 Note: If the number of bytes written is not equal to the number of bytes specified, an error message is printed and errno set to 999. Medium Changer Subcommands The following medium changer subcommands are available for the integrated and independent medium changer devices. allow This subcommand is not supported for TotalStorage medium changer devices. audit [Address[Count]] This subcommand with no parameters issues the SCSI Initialize Element Status command to the device. The Address and Count parameters are not supported for IBM TotalStorage devices. # Initialize all elements IBMtapeutil -f /dev/IBMtape0 audit Appendix D. Tape Utility Programs 391