RAC中通過nkmod解決各個節點碟符不一致問題

renjixinchina發表於2014-09-17

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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章