Linux: How To Setup UDEV Rules For RAC OCR Voting Dev On SLES10,RHEL5_414897.1
Linux: How To Setup UDEV Rules For RAC OCR And Voting Devices On SLES10, RHEL5, OEL5, OL5 (文件 ID 414897.1)
In this Document
Applies to:Oracle Database - Enterprise Edition - Version 10.1.0.2 and laterGeneric Linux ***Checked for relevance on 2011-01-22*** Linux Kernel - Version: 2.6.18-8 to 2.6.21 Goal
Real Application Clusters (RAC) requires special ownership (owner, group and permissions) for the OCR (Oracle Cluster Registry) and Voting devices on Linux.
UDEV Filename Rules
From SLES10, there is no separation between rules for creating devices and rules for device permissions - both are now set from the same rule file.
Caution About Changing Files Owned By The Distribution
Do not change the default 50-udev-default.rules file. This file will be over-written should the UDEV package be updated. On RHEL5/OEL5, the UDEV rules file is called 50-udev.rules, otherwise the behavior is the same. Always use a separate, custom 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.7
Create 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.
# /bin/cat /etc/udev/rules.d/99-raw.rules
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s /block/%P", RESULT=="3600805f30016c0e0ad41ffa8e6d90001", NAME="raw1", ACTION=="add|change",OWNER="root", GROUP="oinstall", MODE="0640" KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s /block/%P", RESULT=="3600805f30016c0e0ae51efbfb2930002", NAME="raw2", ACTION=="add|change",OWNER="oracle", GROUP="oinstall", MODE="0660" 1.2 Create UDEV Permission Rule For Version 11.2 And Later
Create a UDEV rules file for the Oracle ASM devices, setting permissions to read/write for the group and owner (0660) for the installation For example, using the installation owner grid and using a role-based group configuration, with the OSASM group asmadmin: For RHEL5/OL5/OEL5,
# /bin/cat /etc/udev/rules.d/99-oracle-asmdevices.rules For RHEL6/OL6:
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id i --whitelisted --device=/dev/$name", RESULT=="350002ac000010b52", NAME="vote1", ACTION=="add|change", OWNER="grid",GROUP="asmadmin", MODE="0660" Copy this rules.d/file to all other nodes on the cluster. For example:
# /usr/bin/scp 99-oracle-asmdevices.rules root@node2:/etc/udev/rules.d/99-oracle-asmdevices.rules
2. Restart The UDEV Service
Restart the UDEV service as follows. Then verify the devices now reflect their intended ownership and permissions:
# /etc/init.d/boot.udev stop
# /etc/init.d/boot.udev start
# /sbin/udevcontrol reload_rules
# /sbin/start_udev On RHEL6/OL6:
#/sbin/udevadm control --reload-rules
#/sbin/start_udev 3. Additional UDEV informationFor additional information on UDEV, including how to manage multiple partitions, refer to the following article:
Using udev with Oracle Architecture (RAC & ASM) - Red Hat 4.0 Note:371814.1 ReferencesNOTE:465001.1 - Configuring raw devices (singlepath) for Oracle Clusterware 10g Release 2 (10.2.0) on RHEL5/OEL5NOTE:371814.1 - Using udev with Oracle Architecture (RAC & ASM) - Red Hat 4.0 NOTE:564580.1 - Configuring raw devices (multipath) for Oracle Clusterware 10g Release 2 (10.2.0) on RHEL5/OL5 |
|
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28869493/viewspace-1813716/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux udev Rules files 理解Linuxdev
- Oracle RAC 重建 OCR 和 Voting diskOracle
- Oracle RAC CRS、OCR、Voting破壞重建Oracle
- RAC_UDEV的99-oracle-asmdevices.rules配置方法devOracleASM
- Oracle 12c RAC OCR和voting files介紹Oracle
- 11g RAC 中 OCR 及Voting Disk 相關操作
- Oracle 10g RAC下Voting disk和OCR的管理Oracle 10g
- Oracle 10G RAC下OCR和Voting disk的管理Oracle 10g
- 轉 Oracle 10G RAC下OCR和Voting disk的管理Oracle 10g
- 11g RAC OCR,VOTING DISK儲存全部損壞,利用自動備份,恢復OCR,VOTING DISK到新儲存。
- UDEV SCSI Rules Configuration for ASM in Oracle Linux 5 and 6devASMOracleLinux
- 【轉載】Oracle 10G RAC下OCR和Voting disk的管理Oracle 10g
- OCR And Voting Disk In Oracle 10gR2 Clusterware (RAC) [ID 1092293.1]Oracle 10g
- 管理OCR,OLR,Voting Disk(筆記)筆記
- How to Set Device Name Using UDEV on Oracle Linux 7.1devOracleLinux
- Oracle RAC: Member votingOracle
- zt_oracle10g rac real application cluster ocr and voting disk備份恢復OracleAPP
- Placement of Voting disk and OCR Files in Oracle RAC 10g and 11gR1 [ID 293819.1]Oracle
- Oracle10g RAC voting disk及OCR 的映象,備份恢復[final]Oracle
- oracle 10GR2 CLUSTERWARE(RAC)中關於OCR和VOTING磁碟的管理資訊Oracle 10g
- How to restore ASM based OCRRESTASM
- Oracle10g OCR及Voting Disk的Oracle
- How To Setup ASM (11.2) On An Active/Passive Cluster (Non-RAC). [ID 1296124.1]ASM
- rhel 7.x 使用 udev scsi rules 配置裸裝置dev
- How To Setup ASM (10.2 & 11.1) On An Active/Passive Cluster (Non-RAC). [ID 1319050.1]ASM
- UDEV管理RAC共享儲存dev
- 利用UDEV配置OCR VOTE(基於整個磁碟)dev
- ORACLE RAC重建OCROracle
- Oracle叢集軟體管理-OCR和Voting Files管理Oracle
- Oracle10g OCR及Voting Disk的備份Oracle
- How to Restore a Lost Voting Disk in 10g [ID 279793.1]REST
- udev 裸裝置 安裝racdev
- How to Setup SCAN Listener and Client for TAF and Load Balancingclient
- UDEV方式配置Oracle RAC ASM共享磁碟devOracleASM
- RAC-rac+dg step2--設定共享磁碟-udevdev
- How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) Release 11 on Linux [轉帖]SQLOracleDatabaseGatewayServerLinux
- Linux上建立udevLinuxdev
- RAC 11.2.0.3 管理OCR檔案