用HP磁带机在LINUX下作备份
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
用HP磁带机在LINUX下作备份,用mt命令对磁带机进行操做(倒带、设置buffer等等) mt - control magnetic tape drive operation
SYNOPSIS
mt [-h] [-f device] operation [count] [arguments...]
accepted. Not all operations are available on all systems, or work on all types of tape drives.
fsf Forward space count files. The tape is positioned on the first
block of the next file.
向前倒带,磁头的位置在下一个文件的最前面。
fsfm Forward space count files. The tape is positioned on the last block of the previous file.
向前倒带,磁头的位置在前一个文件的最后面。
bsf Backward space count files. The tape is positioned on the last block of the previous file.
向后倒带,磁头位置在前一个文件的最后面。
bsfm Backward space count files. The tape is positioned on the first block of the next file.
向后倒带,磁头位置在下一个文件的最前面。
asf The tape is positioned at the beginning of the count file. Posi-
tioning is done by first rewinding the tape and then spacing forward over count filemarks.
fsr Forward space count records.
bsr Backward space count records.
fss (SCSI tapes) Forward space count setmarks.
bss (SCSI tapes) Backward space count setmarks.
eod, seod
Space to end of valid data. Used on streamer tape drives to
append data to the logical and of tape.
rewind Rewind the tape.
offline, rewoffl, eject
Rewind the tape and, if applicable, unload the tape.
重绕磁带。
如果可以,Unload 磁带
retension
Rewind the tape, then wind it to the end of the reel, then rewind it again.
重绕磁带,当倒到最后的时候
weof, eof
Write count EOF marks at current position.
在当前的位置写计数的文件结尾的标记。
wset (SCSI tapes) Write count setmarks at current position (only SCSI tape).
写计数标签在当前位置。
erase Erase the tape.
擦除磁带。
status Print status information about the tape unit. (If the density
code is "no translation" in the status output, this does not
affect working of the tape drive.)
打印带机当前状态信息,(如果带机没有解译压缩码,在输出过程
中,带机工作不会受到影响)
seek (SCSI tapes) Seek to the count block on the tape. This opera- tion is available on some T andberg and Wangtek streamers and some SCSI-2 tape drives. The block address should be obtained from a tell call earlier.
搜索计数块在磁带上。
tell (SCSI tapes) T ell the current block on tape. This operation is
available on some T andberg and Wangtek streamers and some SCSI-2
tape drives.
告诉带机磁带当前所在的块。
setpartition
(SCSI tapes) Switch to the partition determined by count. The
default data partition of the tape is numbered zero. Switching
partition is available only if enabled for the device, the
device supports multiple partitions, and the tape is formatted
with multiple partitions.
partseek
(SCSI tapes) The tape position is set to block count in the par- tition given by the argument after count. The default partition
is zero.
mkpartition
(SCSI tapes) Format the tape with one (count is zero) or two
partitions (count gives the size of the second partition in
megabytes). The tape drive must be able to format partitioned tapes with initiator-specified partition size and partition sup- port must be enabled for the drive.
格式化磁带的 1 (当计数为0 时)或2 (需要指定尺寸用MB)分区
必须指定要格式化初始指定分区尺寸并且驱动器必须支持。
load (SCSI tapes) Send the load command to the tape drive. The drives usually load the tape when a new cartridge is inserted. The
argument count can usually be omitted. Some HP changers load tape n if the count 10000 + n is given (a special funtion in the Linux st driver).
发送 load 命令到带机,驱动器通常会自动load 一个新插上去的磁带
lock (SCSI tapes) Lock the tape drive door.
锁磁带机的门
unlock (SCSI tapes) Unlock the tape drive door.
解锁
setblk (SCSI tapes) Set the block size of the drive to count bytes perrecord.
在记录字节前设置块大小。
setdensity
(SCSI tapes) Set the tape density code to count. The proper
codes to use with each drive should be looked up from the drive documentation.
设置密度编码计数,正确的编码可以在带机的说明文档中找到。
densities
(SCSI tapes) Write explanation of some common density codes to standard output.
写编译一些相同的机器码到标准输出。
drvbuffer
(SCSI tapes) Set the tape drive buffer code to number. The
proper value for unbuffered operation is zero and "normal"
buffered operation one. The meanings of other values can be
found in the drive documentation or, in case of a SCSI-2 drive, from the SCSI-2 standard.
设置带机缓冲区。
一般的值为没有缓冲用0 表示,正常状态用 1表示。
其他值可在带机的说明文档中找到。
compression
(SCSI tapes) The compression within the drive can be switched on or off using the MTCOMPRESSION ioctl. Note that this method is not supported by all drives implementing compression. For
instance, the Exabyte 8 mm drives use density codes to select compression.
内部压缩可用开关控制 ON 或者 OFF ,用 mt compressi on
这种方式不是所有带机都支持,Exabyte 8mm带机用 density code来选择是否加密。
stoptions
(SCSI tapes) Set the driver options bits for the device to the
defined values. Allowed only for the superuser. The bits can be set either by oring the option bits from the file
/usr/include/linux/mtio.h to count, or by using the following
keywords (as many keywords can be used on the same line as nec-
essary, unambiguous abbreviations allowed):
为磁带机定义的值设置参数位。
buffer-writes buffered writes enabled
写缓冲区有效。
async-writes asynchronous writes enabled
异步写有效。
read-ahead read-ahead for fixed block size
读固定块的头。
debug debugging (if compiled into driver)
two-fms write two filemarks when file closed
当文件关闭时写入两个文件标记。
fast-eod space directly to eod (and lose file number)
快速到文件的结尾。
no-wait don't wait until rewind, etc. complete
不等待直到重绕完成。
auto-lock automatically lock/unlock drive door
自动加锁
def-writes the block size and density are for writes
写块的尺寸和密度
can-bsr drive can space backwards well
no-blklimits drive doesn't support read block limits
驱动器不支持读块限制。
can-partitions drive can handle partitioned tapes
带机能够操作分区磁带。
scsi2logical seek and tell use SCSI-2 logical block addresses instead of device dependent addresses
搜索并告诉带机用 SCSI-2 逻辑块的替换地址。
sysv enable the System V semantics
stsetopti ons
(SCSI tapes) Set selected driver options bits. The methods to specify the bits to set are given above in description of stop- tions. Allowed only for the superuser.
设置选择驱动器的参数位。
stclearoptions
(SCSI tapes) Clear selected driver option bits. The methods to specify the bits to clear are given above in description of stoptions. Allowed only for the superuser.
清除选择驱动器的参数位。
stwrthreshold
(SCSI tapes) The write threshold for the tape device is set to count kilobytes. The value must be smaller than or equal to the driver buffer size. Allowed only for the superuser.
在开始写入时为带机设置计数 KB ,这个值必须小于带机的缓冲区的尺寸。
defblksize
(SCSI tapes) Set the default block size of the device to count
bytes. The value -1 disables the default block size. The block
size set by setblk overrides the default until a new tape is inserted. Allowed only for the superuser.
设置设备默认的块尺寸,默认为–1 disable 的。
defdensity
(SCSI tapes) Set the default density code. The value -1 disables the default density. The density set by setdensity overrides the default until a new tape is inserted. Allowed only for the supe- ruser.
设置默认的密度编码,默认值是–1 disable 的
defdrvbuffer
(SCSI tapes) Set the default drive buffer code. The value -1
disables the default drive buffer code. The drive buffer code
set by drvbuffer overrides the default until a new tape is inserted. Allowed only for the superuser.
设置默认的缓冲区编码,默认的值是–1 disable 的。
defcompression
(SCSI tapes) Set the default compressi on state. The value -1
disables the default compression. The compression state set by compression overrides the default until a new tape is inserted. Allowed only for the superuser.
设置默认的压缩状态。
默认的值为–1 是disables 的。
这个压缩状态是被保留的
直到有新磁带被插入。
sttimeout
sets the normal timeout for the device. The value is given in seconds. Allowed only for the superuser.
设置正常的timeout时间。
stlongtimeout
sets the long timeout for the device. The value is given in seconds. Allowed only for the superuser.
设置长的timeout时间,它是用秒为单位的,只有超级用户可以设置(ROOT)
stsetcln
set the cleaning request interpretation parameters.
设置清除请求参数
mt exits with a status of 0 if the operation succeeded, 1 if the opera-
tion or device name given was invalid, or 2 if the operation failed. AUTHOR
The program is written by Kai Makisara <Kai.Makisara@metla.fi>. COPYRIGHT
The program and the manual page are copyrighted by Kai Makisara, 1998-2001. They can be distributed according to the GNU Copyleft. SEE ALSO
st(4)。