Operating System - HP-UX
1752571 Members
5063 Online
108788 Solutions
New Discussion юеВ

How to make alias of device file on hp-ux 11.11 ?

 
SOLVED
Go to solution
yulianto piyut
Valued Contributor

How to make alias of device file on hp-ux 11.11 ?

hi, i have two server run oracle RAC with ASM. Device fie of disk are not same on both node. How to make alias of device file on one node?
for instance:
in node A, lun0 detected with /dev/dsk/c6t0d0
in node B, lun0 detected with /dev/dsk/c8t0d0
I want to add or make alias of /dev/dsk/c8t0d0 to /dev/dsk/c6t0d0 in node B, so the device file of lun0 on both node is the same.
8 REPLIES 8
johnsonpk
Honored Contributor

Re: How to make alias of device file on hp-ux 11.11 ?

Hello,

You can change it by editing the ioconfig file ,You can refer the thread

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1244695523685+28353475&threadId=475027


Rgds
Johnson
yulianto piyut
Valued Contributor

Re: How to make alias of device file on hp-ux 11.11 ?

hi john,

i hace ever do this but im forget. no need to reboot the server. ioinit is replace all hardware.. I just want to add device file in some disk, not to all disk.
johnsonpk
Honored Contributor

Re: How to make alias of device file on hp-ux 11.11 ?

Hi,

Then try creating special file on both node


I believe the below command does that

mksf -C disk -H -v -r /dev//asm_disk

and give the newly created device file for RAC


Rgds
Johnson
yulianto piyut
Valued Contributor

Re: How to make alias of device file on hp-ux 11.11 ?

hi john,

thx for your response.
i just tried with command mksf, here is:

mksf -C disk -H 0/4/2/0.134.77.0.0.6.5 -I 109 -v /dev/rdsk/c80t6d5. is it true ?
fromioscan output:
disk 109 0/4/2/0.134.77.0.0.6.5 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c40t6d5 /dev/dsk/c80t6d5 /dev/rdsk/c40t6d5 /dev/rdsk/c80t6d5

new device file are /dev/dsk/c80t6d5 & /dev/rdsk/c80t6d5
johnsonpk
Honored Contributor
Solution

Re: How to make alias of device file on hp-ux 11.11 ?

>>i just tried with command mksf, here is:

mksf -C disk -H 0/4/2/0.134.77.0.0.6.5 -I 109 -v /dev/rdsk/c80t6d5. is it true ?
fromioscan output:
disk 109 0/4/2/0.134.77.0.0.6.5 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c40t6d5 /dev/dsk/c80t6d5 /dev/rdsk/c40t6d5 /dev/rdsk/c80t6d5

new device file are /dev/dsk/c80t6d5 & /dev/rdsk/c80t6d5

I wont recommanded you to map the device file to a different CTD number ..rather you can make a device file on both node something like
/dev/rdsk/ask_disk1

BTW I dont see the -r option in you mksf command


do it like this on both nodes
#mksf -C disk -H 0/4/2/0.134.77.0.0.6.5 -I 109 -v /dev/dsk/asm_disk1
# mksf -C disk -H 0/4/2/0.134.77.0.0.6.5 -I 109 -v -r /dev/rdsk/asm_disk1
ASM uses the raw disk so -r is necessary option

Rgds
Johnson
johnsonpk
Honored Contributor

Re: How to make alias of device file on hp-ux 11.11 ?

Hi,

You can also use mknod command to create device files

#ll /dev/rdsk/cxtydz
then
#mknod /dev/rdsk/asm_disk_raw c

eg : mknod /dev/rdsk/asm_disk_raw c 188 0x010000
#change the permission
#chown bin:sys /dev/rdsk/asm_disk_raw
(in case of rac it will be oracle:dba)


Rgds
Johnson

yulianto piyut
Valued Contributor

Re: How to make alias of device file on hp-ux 11.11 ?

many thanks john.
use mksf or mknod!
johnsonpk
Honored Contributor

Re: How to make alias of device file on hp-ux 11.11 ?

Hi,

Both will give you the same out put in fact..
The only difference i could see is, you may need to change the permission for the newly created deice file in case if you are creating it with mknod

I hope you have replaced the newly created device file ( ctd number) with some other name like /dev/rdsk/ask_disk

Rgds
Johnson