Operating System - HP-UX
1751834 Members
5529 Online
108782 Solutions
New Discussion юеВ

Re: tar cannot open /dev/rmt/0mn

 
Rohit Nagre
Occasional Advisor

tar cannot open /dev/rmt/0mn

I have HP C1533A tape drive connect to hpux 11i system . It show in ioscan & I am aslo able to rewind tape by mt rew /dev/rmt/omn but whene i try to take backup using tar it given me error
tar : cannot open /dev/rmt/0mn.

ioscan outp file is attach.

please help me.
17 REPLIES 17
Pete Randall
Outstanding Contributor

Re: tar cannot open /dev/rmt/0mn

You said "mt rew /dev/rmt/omn" and you also mention "cannot open /dev/rmt/0mn". "omn" (letter o) is different from "0mn" (numeral zero). I have to wonder if you don't have a mis-named file in your /dev directory. Try running this:

find /dev -type f

If it returns anything, particularly your omn file, then you have a regular file in your /dev directory. Get rid of it, it does not belong. Then find out what the device file truly is for your tape drive and specify that in your tar command.


Pete

Pete
MarkSyder
Honored Contributor

Re: tar cannot open /dev/rmt/0mn

In addition to what Pete says, shouldn't tar be us8ing 0m rather than 0mn?

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Rohit Nagre
Occasional Advisor

Re: tar cannot open /dev/rmt/0mn

I tryed find /dev -type f
it come back to # prompt
Pete Randall
Outstanding Contributor

Re: tar cannot open /dev/rmt/0mn

Post output of "ioscan -fnCtape" please.


Pete

Pete
Dennis Handly
Acclaimed Contributor

Re: tar cannot open /dev/rmt/0mn

>Pete: Post output of "ioscan -fnCtape" please.

That was in the attached file.
Rohit Nagre
Occasional Advisor

Re: tar cannot open /dev/rmt/0mn

The out put ioscan as follows

# ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
tape 0 10/0/15/0.3.0 stape CLAIMED DEVICE HP C1533A
/dev/rmt/0m /dev/rmt/c2t3d0BESTn
/dev/rmt/0mb /dev/rmt/c2t3d0BESTnb
/dev/rmt/0mn /dev/rmt/c2t3d0DDS
/dev/rmt/0mnb /dev/rmt/c2t3d0DDSb
/dev/rmt/c2t3d0BEST /dev/rmt/c2t3d0DDSn
/dev/rmt/c2t3d0BESTb /dev/rmt/c2t3d0DDSnb
Rohit Nagre
Occasional Advisor

Re: tar cannot open /dev/rmt/0mn

I am able to restore pravious backup file on same drive but only problem when i start take backup it gives error

# tar -cvf /dev/rmt/0m /etc/passwd
tar: cannot open /dev/rmt/0m
#
MarkSyder
Honored Contributor

Re: tar cannot open /dev/rmt/0mn

What reply do you get to:

tar tvf /dev/rmt/0m

Mark
The triumph of evil requires only that good men do nothing
Pete Randall
Outstanding Contributor

Re: tar cannot open /dev/rmt/0mn

Dennis> That was in the attached file.

Dennis, let me apologize in advance for all my future imperfections as well as those past. Please bear with me.

For your enlightenment, I rarely even bother to look at attachments because they are generally posted as Word documents. Being a HP-UX bigot and a Windoze hater, I browse on hp-ux and am unable to open the vast majority of attachments.


Pete

Pete