Operating System - HP-UX
1823938 Members
3707 Online
109667 Solutions
New Discussion юеВ

mt -f /dev/rmt/0m rewind fails

 
musaddaq_2
Frequent Advisor

mt -f /dev/rmt/0m rewind fails

Hi
I have HP-UX 11.11 running on 2470 server.
I have QUANTUM DLT8000 attached to it.
when i do ioscan -fnkC it shows me the tape.
Even i am able to copy and recover the files from it.
But the problem is when i try to rewind the tape it gives me following errors.

root@kddtest/$>mt -f /dev/rmt/0m rewind
/dev/rmt/0m: I/O error

root@kddtest/$>mt -f /dev/rmt/0 rewind
rewind 1 failed: Not a typewriter

i am using dd cmd to backup and recover the files.

i am attaching a file for details.

Thanks N Regards

Musaddaq


30 REPLIES 30
Stf
Esteemed Contributor

Re: mt -f /dev/rmt/0m rewind fails

your device is not attached to the system its state is NO_HW whereas it must appear in CLAIMED state in ioscan...

when you make the dd command you type :
... of=/dev/rmt/0 ...
it's not the right way to the tape the right one is /dev/rmt/0m !!!

for me your tape is off or is bad !!!

try an # insf -e and look again the ioscan to see if it is in CLAIMED state...

Stf ;-)
musaddaq_2
Frequent Advisor

Re: mt -f /dev/rmt/0m rewind fails

root@kddtest/$>ioscan -fnkC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/0/1/0.4.0 stape CLAIMED DEVICE QUANTUM DLT8000
/dev/rmt/0m /dev/rmt/0mnb /dev/rmt/c0t4d0BESTn
/dev/rmt/0mb /dev/rmt/c0t4d0BEST /dev/rmt/c0t4d0BESTnb
/dev/rmt/0mn /dev/rmt/c0t4d0BESTb

Now it is showing claimed but still this cmd fails

$ mt -f /dev/rmt/0m rewind
/dev/rmt/0m: I/O error


Sudeesh
Respected Contributor

Re: mt -f /dev/rmt/0m rewind fails

From the ioscan output your drive is in NO_HW. It should be in CLAIMED state for proper functioning. With dd working fine I assume device is properly attached to the system.

try

ioscan -H 0/0/1/0.4.0

insf -eH 0/0/1/0.4.0

Sudeesh
The most predictable thing in life is its unpredictability
Stf
Esteemed Contributor

Re: mt -f /dev/rmt/0m rewind fails

In reading mt man page :

http://www.informatik.uni-frankfurt.de/doc/man/hpux/mt.7.html

it is said :
"NAME
mt - magnetic tape interface and controls

DESCRIPTION
This entry describes the behavior of HP magnetic tape interfaces and
controls, including DDS and QIC cartridge drives. The files
/dev/rmt/* refer to specific raw tape drives, and the behavior of each
given unit is specified in the major and minor numbers of the device
special file."

So I think the mt command doesn't work for DLT cartridge...

Stf ;-)
musaddaq_2
Frequent Advisor

Re: mt -f /dev/rmt/0m rewind fails

HELLO Mr STF

Prior to HP-UX we had DG boxes and we used to rewind DLT tapes on that server.

Is it something HP is not supporting it.

Regards

Musaddaq
Sudeesh
Respected Contributor

Re: mt -f /dev/rmt/0m rewind fails

Just checked man pages for mt and dont see an option rewind for this command. Its actually 'rew'. This can be another reason for failure.

Try

mt -f /dev/rmt/0m rew

Check man pages for details...

Sudeesh
The most predictable thing in life is its unpredictability
musaddaq_2
Frequent Advisor

Re: mt -f /dev/rmt/0m rewind fails

Hello Mr Sudeesh
i tried
ioscan -H 0/0/1/0.4.0
insf -eH 0/0/1/0.4.0

and even with the cmd
root@kddtest/$>mt -f /dev/rmt/0m rew
/dev/rmt/0m: I/O error

but still the same.
Sudeesh
Respected Contributor

Re: mt -f /dev/rmt/0m rewind fails

If the drive is still showing claimed by ioscan, try the following and pls post the o/p

mt -f /dev/rmt/0m status
mt -f /dev/rmt/0m rew

One more thing I would like to point from that the attached file that you were doing dd on a wrong device file..... (/dev/rmt/0)
try dd on correct device file (/dev/rmt/0m) and let me know wats happening...

Sudeesh
The most predictable thing in life is its unpredictability
musaddaq_2
Frequent Advisor

Re: mt -f /dev/rmt/0m rewind fails

Hi

$ mt -f /dev/rmt/0m status
no tape loaded
$
$
$ mt -f /dev/rmt/0m rew
/dev/rmt/0m: I/O error
$
Regards

Musaddaq
Sudeesh
Respected Contributor

Re: mt -f /dev/rmt/0m rewind fails

Looks like the tape is not recogonized....goto to go now ......

Sudeesh
The most predictable thing in life is its unpredictability
Stf
Esteemed Contributor

Re: mt -f /dev/rmt/0m rewind fails

ok try this:

# mt -f /dev/rmt/0mn rew
or
# mt -t /dev/rmt/0mn rew
or
# mt rew

...

Stf ;-)
musaddaq_2
Frequent Advisor

Re: mt -f /dev/rmt/0m rewind fails

Hello

$ mt -f /dev/rmt/0mn rew
/dev/rmt/0mn: I/O error
$
$
$ mt -t /dev/rmt/0mn rew
/dev/rmt/0mn: I/O error
$
$
$
$ mt rew
/dev/rmt/0mnb: I/O error
$
Stf
Esteemed Contributor

Re: mt -f /dev/rmt/0m rewind fails

did the tar command works on /dev/rmt/0m?

on which type of controller the DLT8000 is connected?

did you have put a terminator on the DLT8000?

Stf ;-)
musaddaq_2
Frequent Advisor

Re: mt -f /dev/rmt/0m rewind fails

Hello
1)
$ tar -cvbf 64 /dev/rmt/0 f1
a f1 1 blocks
$
$
$ tar -cvbf 64 /dev/rmt/0m f1
tar: cannot open /dev/rmt/0m
$

2) There is no terminator on DLT8000

3) How to find the controller the DLT8000
is connected.

Stf
Esteemed Contributor

Re: mt -f /dev/rmt/0m rewind fails

what model of DLT8000 did you have?
is there something wrote on SCSI connectors at the back of DLT8000 ( i.e. SCSC differential or something like this?)?

Stf ;-)
musaddaq_2
Frequent Advisor

Re: mt -f /dev/rmt/0m rewind fails

Hi
I have no idea of model of DLT8000 or SCSI controller.

Is there any command from which i can check them.

Regards

Musaddaq
Stf
Esteemed Contributor

Re: mt -f /dev/rmt/0m rewind fails

NO you can see that only physically...
because it's wrote at the back of the DLT where you plug SCSI cable...

Stf ;-)
musaddaq_2
Frequent Advisor

Re: mt -f /dev/rmt/0m rewind fails

Hi
I got it
Its SCSI LVD\SE
Stf
Esteemed Contributor

Re: mt -f /dev/rmt/0m rewind fails

try to put an LVD/SE terminator on your DLT...

Stf ;-)
Mark Ellzey
Valued Contributor

Re: mt -f /dev/rmt/0m rewind fails

Musaddaq,

You probably should check your /dev/rmt directory. If you have been writing to /dev/rmt/0, then you are probably creating a file there, not actually sending data to a tape device. Check for a big file in /dev/rmt called 0. You can cripple your machine this way, because /dev is part of the root (/) filesystem, and it's really easy to fill up root when you write a file to /dev.

Just my 2cts worth,
Mark
musaddaq_2
Frequent Advisor

Re: mt -f /dev/rmt/0m rewind fails

Hi Mark
U was right there was a file called 0 in my /dev/rmt directory.

I deleted it. but i am still in the middle of the ocean. I cannot rewind my tape.

Any help
Stephen Keane
Honored Contributor

Re: mt -f /dev/rmt/0m rewind fails

Just to confirm, when you did

$ mt -f /dev/rmt/0m status

You get the reply:

$ no tape loaded

If you do not have a tape loaded, how can your rewind it? Or, if you do have a tape loaded why does you drive say there isn't one?

Does

# mc -q

give you anything?


musaddaq_2
Frequent Advisor

Re: mt -f /dev/rmt/0m rewind fails

root@kddtest/$>mc -q
ERROR: No such file or directory
Elias Abboud
Honored Contributor

Re: mt -f /dev/rmt/0m rewind fails

hi

can you see your tape drive in sam? what if you try to do an interactive backup from sam also what do you get? and by the way why do you insist on rewinding your tape manually? u can achieve the same effect by using the device file without the n ...

Cheers
Elie

If you can't solve it, post it :)