[Oracle] RAC shared storage udev, oracleracudev
The core lies in the following two statements. The redhat 5 and redhat 6 are tested. The B c d in the statement represents sdb sdc sdd, which should be modified according to the actual situation.
Redhat 5
For I in B c d e f g h I j k l m n o p; -- adjust according to your drive letter
Do
Echo "KERNEL = \" sd * \ ", BUS = \" scsi \", PROGRAM = \ "/sbin/scsi_id-g-u/dev/\ $ name \", RESULT = \ "'/sbin/scsi_id-g-u-s/block/sd $ I' \", NAME = \ "asm-disk $ I \", owners = \ "grid \", GROUP = \ "asmadmin \", MODE = \ "0660 \""
Done
Redhat 6
For I in B c d e f g h I j k l m n o p; -- adjust according to your drive letter
Do
Echo "KERNEL = \" sd * \ ", BUS = \" scsi \", PROGRAM = \ "/sbin/scsi_id-g-u/dev/\ $ name \", RESULT = \ "'/sbin/scsi_id-g-u/dev/sd $ I' \", NAME = \ "asm-disk $ I \", owners = \ "grid \", GROUP = \ "asmadmin \", MODE = \ "0660 \""
Done
Configure the UDEV Rules File
[Root @ asm ~] # Vim/etc/udev/rules. d/99-oracle-asmdevices.rules
Then add all the generated items.
Restart UDEV
[Root @ asm rules. d] # start_udev
Starting udev: [OK]
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.