Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access to device files

Status
Not open for further replies.

NattyP

MIS
Sep 1, 2001
45
JM
I am getting the following error as the oracle user:

/export/home/oracle>tar tvf /dev/rmt/0
tar: /dev/rmt/0: I/O error
/export/home/oracle>


Similarly, I am unable to run ufsdump as that user. How I allow this?

Should I be concerned about permissions on /dev or /devices or both?
 
You should only be concrned about the persmissions on the /dev/rmt/0 device itself, the permissions on the /dev and /devices directories should be fine already.

What permissions are showin in the output of ls -l /dev/rmt/0 and ls -lL /dev/rmt/0?

Annihilannic.
 
I got tar to work. Thanks. But I still have the problem with ufsdump

$ mt -f /dev/rmt/0 status
HP DDS-4 DAT (Sun) tape drive:
sense key(0x0)= No Additional Sense residual= 0 retries= 0
file no= 0 block no= 0
$ ufsdump 0ucf /dev/rmt/0 /oracle
ksh: ufsdump: not found
$ /usr/sbin/ufsdump 0ucf /dev/rmt/0 /oracle
DUMP: Cannot open dump device `/dev/vx/rdsk/oracle': Permission denied
$
 
You might have to change the permissions of /dev/vx/rdsk/oracle as well. Why are you trying to do this as the 'oracle' user anyway?

Also, since it's obviously on a Veritas Volume Manager volume (i.e. vx), are you sure it's a UFS and not VXFS filesystem?

Annihilannic.
 
It is a Veritas Volume Manager volume. Shouldn't it still work though?
 
Whether or not it's a Veritas Volume Manager volume is irrelevant, what is important is the type of filesystem. It will most likely be either 'ufs' or 'vxfs'. You can tell from the output of mount -v or the fourth field in /etc/vfstab.

If it is a vxfs filesystem then you need to use vxdump instead. The syntax is similar to ufsdump.

I only mentioned Veritas Volume Manager because if you are using Veritas Volume Manager you are likely to be using Veritas File System as well.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top