ITPub博客

首页 > 数据库 > Oracle > RAC中通过nkmod解决各个节点盘符不一致问题

RAC中通过nkmod解决各个节点盘符不一致问题

原创 Oracle 作者:renjixinchina 时间:2014-09-17 17:18:38 0 删除 编辑

Node #1:

crw-r 1 root sys 118, 40 Apr 2 15:00 /dev/rdsk/disk78
crw-r 1 root sys 118, 0 Apr 2 15:00 /dev/rdsk/disk79
crw-r 1 root sys 118, 42 Apr 2 15:00 /dev/rdsk/disk80



Create the alias:

# mkdir /asmdisks
# chown oracle:dba  /asmdisks
# cd /asmdisks
# mknod asmdisk1 c 118 40
# mknod asmdisk2 c 118 0
# mknod asmdisk3 c 118 42

 

Then you will have the next alias devices: 

/asmdisks/asmdisk1 
/asmdisks/asmdisk2 
/asmdisks/asmdisk3



You will need to set the correct ownership:

# chown oracle:dba /asmdisks/asmdisk1
# chown oracle:dba /asmdisks/asmdisk2
# chown oracle:dba /asmdisks/asmdisk3



Node #2:

crw-r?????? 1 root sys 118, 40 Apr 2 15:00 /dev/rdsk/disk78
crw-r?????? 1 root sys 118, 0 Apr 2 15:00 /dev/rdsk/disk79
crw-r?????? 1 root sys 118, 42 Apr 2 15:00 /dev/rdsk/disk80


Create the alias:

# mkdir /asmdisks
# chown oracle:dba /asmdisks
# cd /asmdisks
# mknod asmdisk1 c 118 46
# mknod asmdisk2 c 118 49
# mknod asmdisk3 c 118 15

 

Then you will have the next alias devices: 

/asmdisks/asmdisk1 
/asmdisks/asmdisk2 
/asmdisks/asmdisk3


You will need to set the correct ownership:

# chown oracle:dba /asmdisks/asmdisk1
# chown oracle:dba /asmdisks/asmdisk2
# chown oracle:dba /asmdisks/asmdisk3



 Then update the asm_diskstring pointing to the new alias devices one both ASM instances:

+ASM1 instance:

SQL> alter system set asm_diskstring = '/asmdisks/asmdisk*' scope=spfile;


+ASM2 instance:

SQL> alter system set asm_diskstring = '/asmdisks/asmdisk*' scope=spfile;

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15747463/viewspace-1271976/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-01-30

  • 博文量
    373
  • 访问量
    2056557