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裸裝置位置
- 字元裝置、塊裝置、裸裝置、RAW裝置 .字元
- 建立裸裝置庫
- Redhat 5 中裸裝置(raw) 的配置Redhat
- [轉]RedHat 5中裸裝置(raw)的配置Redhat
- [zt] LINUX裸裝置(raw)取消繫結Linux
- 【Raw Device】OEL4.8裸裝置對映方法dev
- linux上建立裸裝置問答Linux
- 如何遷移裸裝置raw device資料檔案到另一個raw devicedev
- Redhat5.8 X64建立裸裝置Redhat
- linux 使用裸裝置建立表空間Linux
- 字元裝置、塊裝置與裸裝置字元
- Red Hat Enterprise Linux AS 5.3 下配置裸裝置(raw device)Linuxdev
- Oracle RAC--在Linux中建立裸裝置OracleLinux
- RHEL5中裸裝置的建立簡介
- linux下使用裸裝置建立oracle表空間LinuxOracle
- aix5.3上使用裸裝置建立表空間AI
- AIX 上建立裸裝置lv出現的問題AI
- 【Raw disk】調整裸裝置的屬組防止系統重啟後失效
- udev 裸裝置 安裝racdev
- 裸裝置、字元裝置、塊裝置不全面比較字元
- 裸裝置與塊裝置的區別
- 建立資料庫時用裸裝置的配置檔案資料庫
- 在unix下和linux下建立裸裝置總結Linux
- AIX中的裸裝置AI
- oracle 裸裝置(轉載)Oracle
- 為ASM生成裸裝置ASM
- linux裸裝置操作Linux
- DB2環境部署-在DB2UDBV8.1中使用裸裝置(raw)DB2
- oracle靜默安裝raw裝置Oracle
- Linux裸裝置總結Linux
- 【儲存】裸裝置和OracleOracle
- linux下新增裸裝置Linux
- 裸裝置基礎知識
- linux下配置裸裝置Linux
- oracle安裝使用裸裝置問題Oracle
- Linux下基於裸裝置建立10g資料庫Linux資料庫
- linux udev裸裝置繫結Linuxdev