|
How To Setup UDEV Rules For RAC OCR And Voting Devices On SLES10, RHEL5, OEL5, OL5 [ID 414897.1]
Applies to:Linux OS - Version: 2.6.18-8 to 2.6.21Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.2.0.2.0 [Release: 10.1 to 11.2] Linux x86 Linux x86-64 Linux Itanium ***Checked for relevance on 2011-01-22*** Linux Kernel - Version: 2.6.18-8 to 2.6.21 GoalReal Application Clusters (RAC) requires special ownership (owner, group and permissions) for the OCR (Oracle Cluster Registry) and Voting devices on Linux.In the 2.6 kernel, the UDEV system is the default method through which the kernel controls the creation of the special files that represent resources such as block devices. In Oracle 10g RAC, where raw devices are a mandatory requirement for use by CRS, raw devices require specific ownership and permissions. Prior to UDEV, device nodes could be created and their access permissions persistently set using the mknod(1) utility; the UDEV facility dynamically recreates the /dev content each reboot, preventing this approach. The solution is to add UDEV rules to set these attributes automatically. The configuration file syntax for UDEV in SLES10, RHEL5 and OEL5 have vary slightly compared depending on the software version. For SuSE Linux Enterprise Server 10 (SLES10), UDEV rules for raw device permission setting should be placed into rule files under the /etc/udev/rules.d/ directory. The files are processed in ls(1) order, with default system rules contained in the 50-udev-default.rules file.
Solution1. Create The New UDEV RulesChoose one of the following methods, depending upon your RAC version.1.1 Create UDEV Permission Rule Prior Up-To Version 11.1.0.7Create a custom UDEV permission rule file (for example, /etc/udev/rules.d/99-raw.rules) and ensure the file name lists after the default 50-xxx.rules file. The filename must end in ".rules" to be recognized.Add the required raw device ownership and permissions, for example: # /bin/cat /etc/udev/rules.d/99-raw.rules1.2 Create UDEV Permission Rule For Version 11.2 And LaterCreate a UDEV rules file for the Oracle ASM devices, setting permissions to read/write for the group and owner (0660) for the installation owner and the group whose members are to be administrators of the grid infrastructure software. For example, using the installation owner grid and using a role-based group configuration, with the OSASM group asmadmin:
2. Restart The UDEV ServiceRestart the UDEV service as follows. Then verify the devices now reflect their intended ownership and permissions: On SLES10:# /etc/init.d/boot.udev stop # /etc/init.d/boot.udev start# /sbin/udevcontrol reload_rules ReferencesNOTE:465001.1 - Configuring raw devices (singlepath) for Oracle Clusterware 10g Release 2 (10.2.0) on RHEL5/OEL5NOTE:564580.1 - Configuring raw devices (multipath) for Oracle Clusterware 10g Release 2 (10.2.0) on RHEL5/OEL5 NOTE:605828.1 - Configuring non-raw multipath devices for Oracle Clusterware 11g (11.1.0) on RHEL5/OEL5 (责任编辑:OracleTT) |

