cancel
Showing results for 
Search instead for 
Did you mean: 

device files

Ravikant
Advisor

device files

Hi All,

We are setting up Oracle RAC in Hp-ux 11.31 OS.

Requirement is they need same logical name and same major & minor no. for the shared SAN devices-

Here same physical shared device i.e. c7t0d6 is shown as disk165 on one server and disk53 on second server.

But need to have same logical name with same major & minor no.

Please provide the detials -

NODE 1:
Node 1 # ls -ld /dev/rdsk/c7t0d6
crw-r----- 1 bin sys 188 0x070600 Mar 21 04:49 /dev/rdsk/c7t0d6
node1 # ioscan -m dsf /dev/rdsk/c7t0d6
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk165 /dev/rdsk/c7t0d6
node 1 # ls -ld /dev/rdisk/disk165
crw-r----- 1 bin sys 22 0x000020 Mar 23 15:38 /dev/rdisk/disk165


NODE 2 :
node 2 # ioscan -m dsf /dev/rdsk/c7t0d6
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk53 /dev/rdsk/c7t0d6
node2 # ls -ld /dev/rdisk/disk165
/dev/rdisk/disk165 not found
node 2 # ls -ld /dev/rdisk/disk53
crw-r----- 1 bin sys 22 0x00000f Mar 23 13:18 /dev/rdisk/disk53

Thanks
Ravikant
3 REPLIES
Steven E. Protter
Exalted Contributor

Re: device files

Shalom,

I answered this question yesterday:
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1326671

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ravikant
Advisor

Re: device files

We are creating any volumes r logical volume. we are using simple raw device for RAC setup.

How I can make smae device name i.e. disk165 ( c7t0d6) and disk53 ( c7t0d6) for shared common SAN device.

mkfs will help me here ?

Regards,
Ravikant
T G Manikandan
Honored Contributor

Re: device files

First node:
pvcreate -f /dev/rdsk/c7t0d6
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x060000 - Major number will always be 64 but the minor number must be unique
vgcreate /dev/vg01 /dev/dsk/c7t0d6
vgchange -a y vg01

Then , create logical volumes

lvcreate -n control_01.ctl -L 110 /dev/vg01

Then

vgchange -a n vg01
vgexport -v -s -p -m /tmp/vg01.map

On the second:

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x060000
vgimport -v -s -m /tmp/vg01 /dev/vg01