Operating System - HP-UX
1833882 Members
1791 Online
110063 Solutions
New Discussion

/dev/rmt/0mn Permission denied

 
Bakos György
Super Advisor

/dev/rmt/0mn Permission denied

My problem is that I want to make a make_tape_recovery -x inc_entire=vg00 -x exclude=/tmp -x inc_entire=vg01 -a /dev/rmt/0mn
, but the error is /dev/rmt/0mn Permission denied
I have created an another device file c5t4d0BESTn, but the problem is the same.


I have found here an another forum with the same problem, but no answer is there:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=130600
13 REPLIES 13
Helen French
Honored Contributor

Re: /dev/rmt/0mn Permission denied

To start troubleshooting, I would try a simple tar command to test if the drive is okay and you have permission to write:

# tar -cvf /dev/rmt/0mn /tmp
Life is a promise, fulfill it!
Bakos György
Super Advisor

Re: /dev/rmt/0mn Permission denied

I have checked that:
#dd if=/etc/hosts of=/dev/rmt/0mn

dd: cannot create /dev/rmt/0mn

Very interesant
The another device file was created with sam , but the problem is the same...
Jeff Schussele
Honored Contributor

Re: /dev/rmt/0mn Permission denied

Hi,

What does
ioscan -fnC tape
return?
Is your tape device *actually* 0mn?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Fabio Ettore
Honored Contributor

Re: /dev/rmt/0mn Permission denied

Hi,

have you tried to change tape?
Anyway I would guess about an hardware problem, I suggest you to verify tape drive and cable functionalities.

Best regards,
Ettore
WISH? IMPROVEMENT!
Bakos György
Super Advisor

Re: /dev/rmt/0mn Permission denied

ioscan is OK

That works too:
mt rew
mt -t /dev/rmt/0mn rew

OK
Stuart Abramson_2
Honored Contributor

Re: /dev/rmt/0mn Permission denied

I think that your tape device file has the wrong permissions:

# ioscan -fnkCtape
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
tape 0 1/0/1/0/0/1/0.1.0 stape CLAIMED DEVICE HP C5683A
/dev/rmt/0m /dev/rmt/c6t1d0BESTn
/dev/rmt/0mb /dev/rmt/c6t1d0BESTnb
/dev/rmt/0mn /dev/rmt/c6t1d0DDS
/dev/rmt/0mnb /dev/rmt/c6t1d0DDSb
/dev/rmt/c6t1d0BEST /dev/rmt/c6t1d0DDSn
/dev/rmt/c6t1d0BESTb /dev/rmt/c6t1d0DDSnb

# ll /dev/rmt/0m
crw-rw-rw- 2 bin bin 205 0x061000 Oct 16 14:13 /dev/rmt/0m

It must be:
...crw-rw-rw-
Helen French
Honored Contributor

Re: /dev/rmt/0mn Permission denied

Check your permission:

# ls -al /dev/rmt/0mn

Also, recreate currupted device files with:

# insf -e
Life is a promise, fulfill it!
Jeff Schussele
Honored Contributor

Re: /dev/rmt/0mn Permission denied

Hi,

OK - then check the tape & make sure it's not set to write-protect & try another tape.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Bakos György
Super Advisor

Re: /dev/rmt/0mn Permission denied

ls -al /dev/rmt/0mn
crw-rw-rw- 1 bin bin 205 0x054040 ...
Bakos György
Super Advisor

Re: /dev/rmt/0mn Permission denied

Oh Oh

Write protect I will check it tomorrow
G. Vrijhoeven
Honored Contributor

Re: /dev/rmt/0mn Permission denied

Hi,

I agree. The tape must be write protected.

Gideon
Jeff Schussele
Honored Contributor

Re: /dev/rmt/0mn Permission denied

Hi,

Don't need to visually check for write-protect.
Run
mt -f /dev/rmt/0mn status
It will state write protect in the output IF the tape is set to such.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Bakos György
Super Advisor

Re: /dev/rmt/0mn Permission denied

yes
write protected

I am stupid(and a litle bit tired) and thanks for eweryone