Tape Libraries and Drives
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Rewind tape using mt utility.

samir_18
Advisor

Cannot Rewind tape using mt utility.

hi all,
when i tried to Rewind tape and go offline using mt utility on a HP-ux 11.00 host i got the follwoing error :
hp-ux-11.0-Host:/dev/rmt#mt -f /dev/rmt/DLT01 offl
/dev/rmt/DLT01: Invalid argument
what is the problem which may cause this error (Invalid argument) which appears with any other mt utility commands.

thanks in advance.
Samir.
5 REPLIES
Thierry Poels_1
Honored Contributor

Re: Cannot Rewind tape using mt utility.

Hi,

mt needs "-t" parameter instead of "-f".

mt -t /dev/rmt/DLT01 offl

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
malvin drakley
Esteemed Contributor

Re: Cannot Rewind tape using mt utility.

Hi Samir
normally the device for your DLT drive would be something like /dev/rmt/0m. You can check by doing an "ioscan -fnk|more" and seeing what your actual name is. Then substitute that in your "mt -f" command and it should work ok.
hope it works
malvin
Not me Chief, I'm Radar
Thierry Poels_1
Honored Contributor

Re: Cannot Rewind tape using mt utility.

hmmmz,

'mt -t device' is obsolete,
and has finally been replaced with 'mt -f device' :-)) sorry about that.

So DLT01 refers to a non-existing device file/alias. "ioscan -nfC tape" will list possible device files.

good luck,
Thierry.

All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Mark Grant
Honored Contributor

Re: Cannot Rewind tape using mt utility.

I think samir's problem here is that he has NO_HW for all his tape drives. There is another thread in the Omniback/DP forum for this same call.
Never preceed any demonstration with anything more predictive than "watch this"
samir_18
Advisor

Re: Cannot Rewind tape using mt utility.

thanks for you all,
now i try what mark said..
Samir