Operating System - HP-UX
1748140 Members
3381 Online
108758 Solutions
New Discussion юеВ

Re: What is the detail meaning of the output of "mt status"?

 
srm_2
Occasional Advisor

What is the detail meaning of the output of "mt status"?

After I inserted a new tape (DAT 72), the output of "mt status" shows the following:
# mt status
Drive: HP C7438A
Format:
Status: [41114700] BOT online compression immediate-report-mode
File: 0
Block: 0

Then I took OS backup using "make_tape_recovery -I -v -x inc_entire=vg00 -a /dev/rmt/0mn".
the backup completed successfully without any warning or error.
After that the output of "mt status"shows following:

# mt status
Drive: HP C7438A
Format:
Status: [81114700] EOF online compression immediate-report-mode
File: 2
Block: -1

What is meant by "File:2" and "Block: -1"?
6 REPLIES 6
Dennis Handly
Acclaimed Contributor

Re: What is the detail meaning of the output of "mt status"?

What OS version are you running: uname -a

>After that the output of "mt status"shows following:

Why do you care? Just rewind the tape.

>What is meant by "File:2" and "Block: -1"?

Possibly two EOFs were written and you are on one of them, not in the middle.
R.K. #
Honored Contributor

Re: What is the detail meaning of the output of "mt status"?

Hi Rahman,

I don't know much..but one thing is that the file number output from the status option of the mt command should increase when going forward when passing fm (file marks) and decrement when going back towards the beginning of the tape.

Don't fix what ain't broke
srm_2
Occasional Advisor

Re: What is the detail meaning of the output of "mt status"?

thanks for ur reply.

OS version: 11.23
wht is the meaning of "Block: -1"?
Does it indicate any error?
Michal Kapalka (mikap)
Honored Contributor

Re: What is the detail meaning of the output of "mt status"?

hi,

i also use tape's for backup.

before i start always check if the tape is on the beginning :

mt -f /dev/rmt/[0-x]mn stat

if the stat is like yours :

File: 0
Block: 0

the i use ignite to make a backup, after sucessfull backup, put the tape out of drive .

mt -f /dev/rmt/[0-x]mn offl

mikap
Dennis Handly
Acclaimed Contributor

Re: What is the detail meaning of the output of "mt status"?

>what is the meaning of "Block: -1"? Does it indicate any error?

mt(7) says these fields are no longer used and set to -1:
structure for MTIOCGET - mag tape get status command
struct mtget {
srm_2
Occasional Advisor

Re: What is the detail meaning of the output of "mt status"?

thanks to all of u guys for ur response..