Linux-建立裸裝置Raw
現在Oracle逐漸被Oracle公司繫結使用ASM,對於過去的裸裝置已經慢慢的被遺忘,這裡記錄一些常用的Linux建立裸裝置的方法,以備有需要的時候檢視。
##RedHat
1.To determine what raw devices are already bound to other devices, enter the following command on every node:
# /usr/bin/raw -qa
Raw devices have device names in the form /dev/raw/rawn, where n is a number that identifies the raw device.
For each device that you want to use, identify a raw device name that is unused on all nodes.
2.Open the /etc/sysconfig/rawdevices file in any text editor and add a line similar to the following for each partition that you created:
/dev/raw/raw1 /dev/sdb1
Specify an unused raw device for each partition.
3.For the raw device that you created for the Oracle Cluster Registry (OCR), enter commands similar to the following to set the owner, group, and permissions on the device file:
# chown root:oinstall /dev/raw/rawn
# chmod 640 /dev/raw/rawn
By making the oinstall group the owner of the OCR, this permits the OCR to be read by multiple Oracle homes, including those with different OSDBA groups.
4.To bind the partitions to the raw devices, enter the following command:
# /sbin/service rawdevices restart
The system automatically binds the devices listed in the rawdevices file when it restarts.
5.Repeat step 2 through step 4 on each node in the cluster.
##Suse
1.To determine what raw devices are already bound to other devices, enter the following command on every node:
# /usr/sbin/raw -qa
Raw devices have device names in the form /dev/raw/rawn, where n is a number that identifies the raw device.
For each device that you want to use, identify a raw device name that is unused on all nodes.
2.Open the /etc/raw file in any text editor and add a line similar to the following to associate each partition with an unused raw device:
raw1:sdb1
3.For the raw device that you created for the Oracle Cluster Registry, enter commands similar to the following to set the owner, group, and permissions on the device file:
# chown root:oinstall /dev/raw/rawn
# chmod 640 /dev/raw/rawn
4.To bind the partitions to the raw devices, enter the following command:
# /etc/init.d/raw start
5.To ensure that the raw devices are bound when the system restarts, enter the following command:
# /sbin/chkconfig raw on
6.Repeat step 2 through step 5 on the other nodes in the cluster.
------------End------------------------------------------------
##RedHat
1.To determine what raw devices are already bound to other devices, enter the following command on every node:
# /usr/bin/raw -qa
Raw devices have device names in the form /dev/raw/rawn, where n is a number that identifies the raw device.
For each device that you want to use, identify a raw device name that is unused on all nodes.
2.Open the /etc/sysconfig/rawdevices file in any text editor and add a line similar to the following for each partition that you created:
/dev/raw/raw1 /dev/sdb1
Specify an unused raw device for each partition.
3.For the raw device that you created for the Oracle Cluster Registry (OCR), enter commands similar to the following to set the owner, group, and permissions on the device file:
# chown root:oinstall /dev/raw/rawn
# chmod 640 /dev/raw/rawn
By making the oinstall group the owner of the OCR, this permits the OCR to be read by multiple Oracle homes, including those with different OSDBA groups.
4.To bind the partitions to the raw devices, enter the following command:
# /sbin/service rawdevices restart
The system automatically binds the devices listed in the rawdevices file when it restarts.
5.Repeat step 2 through step 4 on each node in the cluster.
##Suse
1.To determine what raw devices are already bound to other devices, enter the following command on every node:
# /usr/sbin/raw -qa
Raw devices have device names in the form /dev/raw/rawn, where n is a number that identifies the raw device.
For each device that you want to use, identify a raw device name that is unused on all nodes.
2.Open the /etc/raw file in any text editor and add a line similar to the following to associate each partition with an unused raw device:
raw1:sdb1
3.For the raw device that you created for the Oracle Cluster Registry, enter commands similar to the following to set the owner, group, and permissions on the device file:
# chown root:oinstall /dev/raw/rawn
# chmod 640 /dev/raw/rawn
4.To bind the partitions to the raw devices, enter the following command:
# /etc/init.d/raw start
5.To ensure that the raw devices are bound when the system restarts, enter the following command:
# /sbin/chkconfig raw on
6.Repeat step 2 through step 5 on the other nodes in the cluster.
------------End------------------------------------------------
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24930246/viewspace-1064769/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- raw 裸裝置資料檔案更改其他raw裸裝置位置
- Linux裸裝置總結Linux
- AIX中的裸裝置AI
- Linux下基於裸裝置建立10g資料庫Linux資料庫
- linux udev裸裝置繫結Linuxdev
- DM8 使用裸裝置搭建DMRAC
- DM7使用裸裝置搭建DMRAC
- linux-中塊裝置檔案和字元裝置檔案的本質區別Linux字元
- 基於裸裝置的ASM磁碟組擴容方案ASM
- rhel 7.x 使用 udev scsi rules 配置裸裝置dev
- 記錄一則AIX使用裸裝置安裝OracleRAC的問題AIOracle
- Linux-安裝ifconfigLinux
- vmware + 裸裝置 + crs + oracle10g RAC搭建步驟(二):安裝linuxOracleLinux
- Linux-使用者管理與建立邏輯卷Linux
- 字元裝置驅動——申請、建立、應用.字元
- 如何建立適合移動裝置的文件
- 建立onenet連線nb-iot產品裝置
- linux-原始碼的編譯安裝和解除安裝Linux原始碼編譯
- raw.githubusercontent.com 無法建立 SSL 連線Github
- 利用rman copy的方法實現儲存上裸裝置資料檔案的遷移ITPUB
- Linux-(awk)Linux
- Linux-程式管理Linux
- 【乾貨】Ftrans資料擺渡裝置 建立安全高效數傳通道!
- 裝置地址
- 字元裝置驅動 —— 字元裝置驅動框架字元框架
- emc cx500上的基於linux的3節點rac上的裸裝置的使用和效能測試Linux
- 智慧工廠物聯網,建立裝置到雲端的可靠連線
- BootISO:從 ISO 檔案中建立一個可啟動的 USB 裝置boot
- Linux-筆試題Linux筆試
- linux-實用命令Linux
- linux-命令-書籍Linux
- linux-執行緒Linux執行緒
- linux-網路命令Linux
- linux-編譯koLinux編譯
- Linux-網路工具Linux
- 滅火器充裝裝置
- Camera Raw中文Raw增效ACR數位相機Raw圖片編輯
- 裝置id openpolit
- 網路裝置