cancel
Showing results for 
Search instead for 
Did you mean: 

mt -fsf command

SOLVED
Go to solution
Bruno Vilardo
Regular Advisor

mt -fsf command

HEllo all ..

I have been trying to get into the tape using this command.

mt -fsf 0 but it gives me the following error message.
What this could be ?
What is the right command to get into the tape?

Regards
Bruno
14 REPLIES
Bruno Vilardo
Regular Advisor

Re: mt -fsf command

Sorry i forgot to post the message .. here we go ...


/dev/nrmt0h fsf 1 failed: I/O error


Thanks a lot ..

Bruno
Mohamed K Ahmed
Trusted Contributor
Solution

Re: mt -fsf command

Bruno

the default for the mt command is /dev/nrmt0h tape drive
Check the name of your tape drive, if it is not nrmt0h, then the command would be

mt -f /dev/nrmt0h fsf n

By the way, there is not fsf 0, fsf means it will go through the tape and stop after the n-th file marker

Check the man mt


Mohamed
Mohamed K Ahmed
Trusted Contributor

Re: mt -fsf command

Also, mt command is just for moving through the savesets on the tape....what do you mean by "get into the tape"?
Bruno Vilardo
Regular Advisor

Re: mt -fsf command

Hi
I want to move through the saveset on the tape.

I also try

mt -f /dev/nrmt0h fsf n

but it gives me the same error message .

Thanks
Bruno
Mohamed K Ahmed
Trusted Contributor

Re: mt -fsf command

What is the version of unix you are running?
Bruno Vilardo
Regular Advisor

Re: mt -fsf command

TRU64 4.0g

Bruno Vilardo
Regular Advisor

Re: mt -fsf command

Hi ,

I use the vdump command to do the backup.

here is the following command that i use.


/sbin/vdump -0uf /dev/nrmt0h /

Thanks

Bruno
Mohamed K Ahmed
Trusted Contributor

Re: mt -fsf command

Bruno,
You have some options:

check the name of the tape drive, make sure it is nrmt0h
check the tape itself ( issue command mt -f tape_drive status) and see if there is output, it may be a bad tape, replace it and try again.
may be there is only one saveset on the tape, try writing 2 save set and try mt fsf 1 again

Mohamed



Mohamed K Ahmed
Trusted Contributor

Re: mt -fsf command

put a new tape in
run command
/sbin/vdump -0uf /dev/nrmt0h /
then
/sbin/vdump -0uf /dev/nrmt0h /usr

then
mt rewind
then
mt fsf 1
then
vrestore -i
then
ls

you should see the /usr files that were backed up

Mohamed
Bruno Vilardo
Regular Advisor

Re: mt -fsf command

Mohamed,

this is what it brings when io execute the command mt -f /dev/nrmt0h status.

mt -f /dev/nrmt0h status

DEVIOGET ELEMENT CONTENTS
---------------- --------
category DEV_TAPE
bus DEV_SCSI
interface SCSI
device TZ88
adpt_num 0
nexus_num 0
bus_num 5
ctlr_num 5
slave_num 11
dev_name tz
unit_num 11
soft_count 0
hard_count 10
stat 0x1
DEV_BOM
category_stat 0x1000000
DEV_81630_BPI

DEVGETINFO ELEMENT CONTENTS
------------------ --------
media_status 0x10001
BOM POS_VALID
unit_status 0x181
Ready 2_FM_Close NO_Rewind Compacting Buffered
record_size 0
density (current) 81630 BPI
density (on write) 0 BPI
Filemark Cnt 0
Record Cnt 0
Class 1 - DLT (tk)

MTIOCGET ELEMENT CONTENTS
---------------- --------
mt_type MT_ISSCSI
mt_dsreg 0x1
DEV_BOM
mt_erreg 0x3 Nonrecoverable medium error.
mt_resid 1
mt_fileno 0
mt_blkno 0
DEV_EEI_STATUS
version 0x2
status 0x3400 Device hardware error (hard error)
flags 0x1000007
CAM_STATUS SCSI_STATUS SCSI_SENSE CAM_DATA
cam_status 0x4 CCB request completed with an err
scsi_status 0x2 SCSI_STAT_CHECK_CONDITION
scsi_sense_data (hex)
f0 0 3 0 0 0 1 15
0 0 0 0 80 0 0 0
0 0 86 2 c0 0 0 65
1c 0 46 eb f 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0
ASC/ASQ = 80/0 ASC/ASQ code not listed

NOte- There is a Hardware error on this message status.....

Thanks a lot
Bruno
Mohamed K Ahmed
Trusted Contributor

Re: mt -fsf command

There is an " Nonrecoverable medium error." message

I think your tape has gone bad
Check the procedure I gave you with a new tape


Mohamed
Bruno Vilardo
Regular Advisor

Re: mt -fsf command

Mohamed ,
You are right ,

I cleaned the driver with a DLT tape cleaner ,and then i changed the tape and it´s working fine now ...
The tape was bad ...

Thanks a lot my friend ..

I appreciate.

Bru
Mohamed K Ahmed
Trusted Contributor

Re: mt -fsf command

Any time.
Some points for my hard thinking up North would be appreciated too

Thanks
Mohamed
sunshine_3
Valued Contributor

Re: mt -fsf command

hi,

if you confirm default tape driver is /dev/nrmt0h, you should do following

1. # mt rewind

2. # mt fsf 1