用mt -f /dev/nst0 status 查看磁带机,经常会遇到一下几种状态
General status bits on (41010000):
General status bits on (50000):
General status bits on (10000):
General status bits on (81010000):
General status bits on (1010000):
这个应该是有磁带的状态
[root@tonykorn97 ~]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x26 (DDS-4 or QIC-4GB).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
这个应该是没有磁带的状态
[root@tonykorn97 ~]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
DR_OPEN IM_REP_EN
[root@tonykorn97 ~]#
这个应该是有问题的状态,但是具体的问题是什么?
[root@tonykorn97 ~]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (10000):
IM_REP_EN
这个是正在运行时候的磁带机的状态,和1又有什么不同呢?
[root@scana ~]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=63, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x26 (DDS-4 or QIC-4GB).
Soft error count since last status=0
General status bits on (81010000):
EOF ONLINE IM_REP_EN
[root@scana ~]#
还有这个??
mt status
SCSI 1 tape drive:
File number=2, block number=10.
Tape block size 1024 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (1010000):
ONLINE IM_REP_EN