Operating System - HP-UX
1836391 Members
3450 Online
110100 Solutions
New Discussion

Re: Failed to open tape device /dev/rmt/0mn:Permission denied (errno =13).

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

Failed to open tape device /dev/rmt/0mn:Permission denied (errno =13).

Hello,

I get the following error when I tried to create an ignite backup:

# make_tape_recovery -x inc_entire=vg00
* Creating local directories for configuration files and archive.

======= 11/02/06 12:07:38 MET Started make_tape_recovery. (Thu Nov 02
12:07:38 MET 2006)
@(#) Ignite-UX Revision B.3.4.115
@(#) net_recovery (opt) $Revision: 10.547 $

* Testing pax for needed patch
* Passed pax tests.
* Checking Versions of Ignite-UX filesets
ERROR: Failed to open tape device /dev/rmt/0mn:Permission denied (errno =
13).
ERROR: Check tape device failed.

======= 11/02/06 12:07:42 MET make_tape_recovery completed unsuccessfully
#

I executed ioscan and all seems to be ok:

# ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/0/2/1.0.0 stape CLAIMED DEVICE HP C1537A
/dev/rmt/0m /dev/rmt/0mnb /dev/rmt/c3t0d0BESTn /dev/rmt/c3t0d0DDSb
/dev/rmt/0mb /dev/rmt/c3t0d0BEST /dev/rmt/c3t0d0BESTnb /dev/rmt/c3t0d0DDSn
/dev/rmt/0mn /dev/rmt/c3t0d0BESTb /dev/rmt/c3t0d0DDS /dev/rmt/c3t0d0DDSnb
#

Any idea?

Thanks in advance for your help.
Regards,

Carles
8 REPLIES 8
Peter Godron
Honored Contributor

Re: Failed to open tape device /dev/rmt/0mn:Permission denied (errno =13).

Carles Viaplana
Valued Contributor

Re: Failed to open tape device /dev/rmt/0mn:Permission denied (errno =13).

Hello,

This is a new tape, so it isn't write protected.

Thanks for your help.
Regards,

Carles
Peter Godron
Honored Contributor

Re: Failed to open tape device /dev/rmt/0mn:Permission denied (errno =13).

Hi,
could you please post result of:
mt -f /dev/rmt/0mn status

Also could you do a test tar or dd to the tape. This will eliminate the hardware such as cable,drive,tape etc.
MarkSyder
Honored Contributor

Re: Failed to open tape device /dev/rmt/0mn:Permission denied (errno =13).

Carles,

Just because a tape is new doesn't mean it isn't write protected - check again.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Carles Viaplana
Valued Contributor

Re: Failed to open tape device /dev/rmt/0mn:Permission denied (errno =13).

# mt -f /dev/rmt/0mn status
Drive: HP C1537A
Format: DDS-3 format
Status: [41112500] BOT online compression immediate-report-mode
File: 0
Block: 0
#

Thanks for your help.
Regards,

Carles
spex
Honored Contributor
Solution

Re: Failed to open tape device /dev/rmt/0mn:Permission denied (errno =13).

Hi,

# ll /dev/rmt/0mn
crw-rw-rw- 2 bin bin 205 0x000040 Dec 29 2005 0mn

Make sure the device file has 666 permissions.

PCS
Peter Godron
Honored Contributor

Re: Failed to open tape device /dev/rmt/0mn:Permission denied (errno =13).

Carles,
What is the outcome of the tar/dd test?

If the test worked, that would only leave the software/patches/driver side.
Have you generated a recovery tape on this tape drive before?
Carles Viaplana
Valued Contributor

Re: Failed to open tape device /dev/rmt/0mn:Permission denied (errno =13).

Hi all,

I removed tape, cleaned device and inserted it again.

Then, I tested tape using TAR command and it worked fine, so I launched ignite and it finished succedfully few minutes ago.

Thanks to all for your help.
Regards,

Carles