配置rhel4的raw device service
Configuring Raw Devices on Red Hat Enterprise Linux 4.0
If you intend to use raw devices for Oracle Clusterware or Oracle Database files, then you need to configure the raw devices. Starting with the 2. 6 Linux kernel distributions, raw devices are not supported by default in the kernel. However, Red Hat Enterprise Linux 4.0 continues to provide raw support. To confirm that raw devices are enabled, enter the following command:
# chkconfig --list
Scan the output for raw devices. If you do not find raw devices, then use the following command to enable the raw device service:
# chkconfig --level 345 rawdevices on
After you confirm that the raw devices service is running, you should change the default ownership of raw devices. When you restart a Red Hat Enterprise Linux 4.0 system, ownership and permissions on raw devices revert by default to root. If you are using raw devices with this operating system for your Oracle files (for example, for ASM storage or Oracle Clusterware files), then you need to override this default behavior.
In this section, we will use the scenario of two ASM disk files (/dev/raw/raw6 and /dev/raw/raw7), two Oracle Cluster Registry files (/dev/raw/raw1 and /dev/raw/raw2), and three Oracle Clusterware voting disks (/dev/raw/raw3, /dev/raw/raw4, and /dev/raw/raw5).
To ensure correct ownership of these devices when the operating system is restarted, create a new file in the /etc/udev/permissions.d directory, called oracle.permissions, and enter the raw device permissions information.
Note that Oracle Clusterware software can be owned either by the same user that owns the Oracle database software (typically oracle), or can be owned by a separate Oracle Clusterware user. If you create a separate Oracle Clusterware user, then that user must own the voting disks.
This example shows the permissions to be set if you use a separate Oracle Clusterware user, named crs, and the Oracle user is named oracle. The ASM disks should be owned by oracle, and the voting disks owned by crs. The Oracle Cluster Registry (OCR) is always owned by root.With the scenario for this section, the following is an example of the contents of /etc/udev/permissions.d/oracle.permissions:
# ASM
raw/raw[67]:oracle:dba:0660
# OCR
raw/raw[12]:root:oinstall:0640
# Voting Disks
raw/raw[3-5]:crs:oinstall:0640
Note that path lines can use the shell glob module, so entries such as raw/raw[3-4] or raw/raw* are permitted. Refer to your operating system help for character range usage.
After creating the oracle.permissions file, the permissions of the rawdevices files are set automatically the next time the system is restarted. To set permissions to take effect immediately, without restarting the system, use the chown and chmod commands:
chown oracle:dba /dev/raw/raw[67]
chmod 660 /dev/raw/raw[67]
chown root:oinstall /dev/raw/raw[12]
chmod 640 /dev/raw/raw[12]
chown crs:oinstall /dev/raw/raw[3-5]
chmod 640 /dev/raw/raw[3-5]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-628817/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【轉】配置RAW Device磁碟組dev
- raw devicedev
- raw device, first blockdevBloC
- about raw device[zt]dev
- ASM學習筆記_配置RAW Device磁碟組ASM筆記dev
- Raw Device vs File Systemdev
- redhat linux上不用dd清空raw device可以重複使用raw device嗎RedhatLinuxdev
- How to Choose Size of Datafile on Raw Devicedev
- [Oracle] Raw device上Create TablespaceOracledev
- 如何遷移裸裝置raw device資料檔案到另一個raw devicedev
- 在Linux上使用raw device方式Linuxdev
- Red Hat Enterprise Linux AS 5.3 下配置裸裝置(raw device)Linuxdev
- rhel4的ftp的配置FTP
- Redhat 下raw device建庫介紹(ZT)Redhatdev
- 二述_rhel4利用loop device deploying asm storageOOPdevASM
- solaris 10_raw device_建立資料庫dev資料庫
- 建立raw device tablespace報Linux Error: 13: Permission denieddevLinuxError
- 【Raw Device】OEL4.8裸裝置對映方法dev
- linux下如何使用raw device來建立管理asm diskLinuxdevASM
- RHEL4下配置HTTPSHTTP
- 配置rhel4的rdate時間同步服務
- Redhat 5 中裸裝置(raw) 的配置Redhat
- Oracle9i RAC (raw device) 自動開啟(rc.local) 設定Oracledev
- 網友整理的一份Oracle10g RAC for all-version Linux -- raw deviceOracleLinuxdev
- [轉]RedHat 5中裸裝置(raw)的配置Redhat
- oracle 10.2.0.3 dbca建庫報Failed to retrieve size of raw device 問題解決方法OracleAIdev
- 【Azure Cloud Service】使用RESTAPI更新Cloud Service(Extended Support) 中所配置的證書CloudRESTAPI
- 【Azure Cloud Service】使用RESTAPI更新Cloud Service(Extended Support) 中所配置的證書HqCloudRESTAPI
- Error:The specified shared raw partition /dev/raw/raw1...Errordev
- linux下raw與基於lvm的raw的用法LinuxLVM
- 匯入rhel4 mysql5.5到rhel4 mysql5.1MySql
- Mac強大的raw影像處理軟體:RAW PowerMac
- wrap devicedev
- device dirverdev
- platform devicePlatformdev
- oracle10g rac(rhel4)_ocfs2_ocfs_配置及資訊摘要Oracle
- 在IIS8.5的環境下配置WCF的Restful ServiceREST
- Harmony OS 開發避坑指南——DevEco Device Tool 安裝配置dev