配置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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Azure Cloud Service】使用RESTAPI更新Cloud Service(Extended Support) 中所配置的證書CloudRESTAPI
- 【Azure Cloud Service】使用RESTAPI更新Cloud Service(Extended Support) 中所配置的證書HqCloudRESTAPI
- Harmony OS 開發避坑指南——DevEco Device Tool 安裝配置dev
- iOS Device ID 的前世今生iOSdev
- Mac強大的raw影像處理軟體:RAW PowerMac
- Camera Raw中文Raw增效ACR數位相機Raw圖片編輯
- RAW影像處理工具——RAW Power for MacMac
- RAW影像處理工具:RAW Power MacMac
- 淺談 iOS Device ID 的修改iOSdev
- 優秀的RAW影像處理工具:RAW Power mac中文版Mac
- RAW Power for Mac(RAW影像處理軟體)Mac
- Camera Raw15 for mac(PS Raw增效工具)Mac
- Linkerd Service Mesh 服務配置檔案規範
- 執行時報錯RuntimeError: expected device cpu but got device cuda:0ErrordevGo
- Camera Raw 14 Mac(Raw格式影像ps外掛)Mac
- Adobe Camera Raw
- 翻譯:Linux and the Device TreeLinuxdev
- As 除錯 no target device found除錯dev
- kubernetes container device interface (CDI)AIdev
- Waiting for target device to come onlineAIdev
- RAW影像處理工具:RAW Power for mac中文版Mac
- MVC 中的@Html.Raw 的用法MVCHTML
- 解說pytorch中的model=model.to(device)PyTorchdev
- IOMMU是如何劃分PCI device group的?dev
- JavaScript String.raw()JavaScript
- Powershell and Windows RAW SOCKETWindows
- RAW Power for Mac(強大的raw影像處理軟體) v3.2.1啟用版Mac
- XDS: Cross-Device Scripting AttacksROSdev
- gpg: signing failed: Inappropriate ioctl for deviceAIAPPdev
- 【ASK_ORACLE】手動配置DataGuard的自動化Client Failover(故障轉移)的serviceOracleclientAI
- whereRaw 與 where (\DB::raw ()) 的區別
- SciTech-OS-Linux-Device Driver: 英文原版電子書“Linux Device Drivers, Third Edition”Linuxdev
- Camera Raw 15 for mac 15.2中文版,PS Raw增效工具Mac
- ps/lr濾鏡raw影像編輯器:ON1 Photo RAW 2022
- Android Studio: /dev/kvm device permission deniedAndroiddev
- Error: Connection activation failed: Device not managed by NetworkManagerErrorAIdev
- Structure of Linux Kernel Device Driver(Part II)StructLinuxdev
- Service呼叫其他Service的private方法, @Transactional會生效嗎(上)
- 以Raw的方式傳送POST請求