Operating System - HP-UX
1838612 Members
2780 Online
110128 Solutions
New Discussion

HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan

 
SOLVED
Go to solution
bestinm
Advisor

HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan

Hi,

RX 2660 installed with HPUX 11.2 and Oracle. After ioscan the permission set for RAW devices from the SAN getting reset to default.

for example if permission set to c4t0d0 oracle:dba , after ioscan it will be bin:sys,

any idea how to make it permanent.

thanks,
bestin
12 REPLIES 12
Sajjad Sahir
Honored Contributor

Re: HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan

how u set the permission
chown oracle:dba /dev/vgrac3/r*
where vgrac3 is the volume group name
r is raw device
ok

thanks and regards

sajjad
Sajjad Sahir
Honored Contributor

Re: HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan


dear bestinm

for u clarification

for example if permission set to c4t0d0 oracle:dba?

this is not permission set

u are changing ownership
owner is oracle now and group is dba

thanks and regards
pls revert back
sajjad
Sajjad Sahir
Honored Contributor

Re: HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan

dear bestin

go to that directory

for example

/dev/vgrac3

give file permission chmod 660 r*
ok
oracle file permission here u have to give
660

thanks and regards

sajjad

please assign points.
bestinm
Advisor

Re: HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan

Hi,

We have done both chown and chmod ,, it will be ok till you do a ioscan . but if u do ioscan the ownership and permission will go, and oracle will not start and gives error permission denied.

we have to set the ownership and permission permanent . so that if u do a ioscan it should disturb the permission and ownership.


tnx
bm
Jeeshan
Honored Contributor

Re: HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan

Hi

change the block device files permission to 640 and character(raw) files to 660

and then set the ownership of raw file system to oracle:dba.

Try then and revert back.
a warrior never quits
Sajjad Sahir
Honored Contributor

Re: HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan

dear

what do u mean after ioscan it will be bin:sys

please send me complete output of u volume group i mean where u raw devices ok?

please very sooooooooooooon
Sajjad Sahir
Honored Contributor

Re: HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan

I mean

ls -l /dev/vgrac3( i don't u volume group)

please give me out put of u volume group

sajjad
Eric SAUBIGNAC
Honored Contributor

Re: HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan

Bonjour,

You problem is not due to ioscan. I guess that after "ioscan" you have issued the command "insf -e".

insf, when used with -e option, will reset all owners and permissions of device files.

Some workarounds :

- don't use "-e" option with insf. In this case it will only create new device files and will not modify properties of existing device files.

- instead of using "official" device names, like c4t0d0, use non standard names. "insf -e" will not modify properties of not standard special files. Create the non standard special special file with command "mknod", with same major and minor than original one. For one device, don't forget to create the raw device in /dev/rdsk and the bloc device in /dev/dsk. For exemple for c4t0d0, :

# mknod /dev/dsk/ora_dbs1 b 31 0x040000
# mknod /dev/rdsk/ora_dbs1 c 31 0x040000
# chown oracle:dba /dev/rdsk/ora_dbs1 /dev/dsk/ora_dbs1

- instead of using "insf -e", write a script that will do the "insf -e" and will revert back special files to oracle ownership and the permissions you need.

Regards

Eric
Sajjad Sahir
Honored Contributor

Re: HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan

dear

I am waiting for u reply
please speed up

sajjad
Sajjad Sahir
Honored Contributor

Re: HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan

one more dought i have i asked u in my earlier thread once we gave permission and changed ownership why u are using ioscan
if u want to see the permission u can use
just ls -l then u volume group

sajjad
bestinm
Advisor

Re: HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan

Hi Eric,

I have forgotten to mention "insf -e" bcz after attacing a Tape drive we have done ioscan and insf -e which created the issue, so let me try the option u have mentione.

tnx
bm
Eric SAUBIGNAC
Honored Contributor
Solution

Re: HP UX 11.2 ,RAW device (SAN) permission getting reset after ioscan

Oups, shame on me. For the raw disk device file you must use major 188 and not 31 :

# mknod /dev/rdsk/ora_dbs1 c 188 0x040000

Eric