linux redhat as 4和linux redhat as 5下配置裸裝置自動啟動的屬性不同點

paulyibinyi發表於2009-05-15

              透過安裝rac 10g for linxu redhat as 4與rac 10g for linxu redhat as 5發現配置裸裝置有些不同

下面列出兩種版本下的配置

1.linux redhat as 4

Edit the /etc/sysconfig/rawdevices file, adding the following lines.

 

/dev/raw/raw1 /dev/sdb1

/dev/raw/raw2 /dev/sdc1

/dev/raw/raw3 /dev/sdd1

/dev/raw/raw4 /dev/sde1

/dev/raw/raw5 /dev/sdf1

 

chown oracle:oinstall /dev/raw/raw1

chown oracle:oinstall /dev/raw/raw2

chown oracle:oinstall /dev/raw/raw3

chown oracle:oinstall /dev/raw/raw4

chown oracle:oinstall /dev/raw/raw5

chmod 600 /dev/raw/raw1

chmod 600 /dev/raw/raw2

chmod 600 /dev/raw/raw3

chmod 600 /dev/raw/raw4

chmod 600 /dev/raw/raw5

 

修改 /etc/udev/permissions.d/50-udev.permissions

[root@rac1 ~]# vi /etc/udev/permissions.d/50-udev.permissions

# raw devices

ram*:root:disk:0660

#raw/*:root:disk:0660

raw/*:oracle:dba:0660    機器啟動時能自動載入給oracle使用者使用。

 

2.linux redhat as 5

因為rh5中取消了rawdevices服務,要使用裸裝置的話,需要做以下配置。

# vi /etc/udev/rules.d/60-raw.rules

新增以下部分的內容

ACTION=="add", KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/bin/raw /dev/raw/raw2 %M %m"

# start_udev   
Starting udev: [  OK  ]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-598281/,如需轉載,請註明出處,否則將追究法律責任。

相關文章