ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 在LINUX上安装ORACLE 10G RAC

在LINUX上安装ORACLE 10G RAC

原创 Linux操作系统 作者:c4313848 时间:2009-06-16 11:22:11 0 删除 编辑

环境: 在LINUX服务器上安装VMWARE-6.5
在VMWARE上安装 RHEL 5.0

使用VMWARE-VDISKMANAGER 创建共享磁盘。\


使用VMWARE-VDISKMANAGER 创建共享磁盘

vmware-vdiskmanager -c -s 200Mb -a lsilogic  -t 0 votedisk.vmdk
vmware-vdiskmanager -c -s 200Mb -a lsilogic -t 0 ocr.vmdk
vmware-vdiskmanager -c -s 4Gb -a lsilogic -t 2 datafile.vmdk



RHEL 5开始挂载裸设备方式有些改变

vi /etc/udev/rules.d/60-raw.rules
添加以下内容
ACTION=="add", KERNEL=="/dev/sdb1",RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", ENV{MAJOR}=="8",ENV{MINOR}=="17",RUN+="/bin/raw /dev/raw/raw1 %M %m"
ACTION=="add", KERNEL=="/dev/sdc1",RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", ENV{MAJOR}=="8",ENV{MINOR}=="33",RUN+="/bin/raw /dev/raw/raw2 %M %m"
ACTION=="add", KERNEL=="/dev/sdd1",RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", ENV{MAJOR}=="8",ENV{MINOR}=="49",RUN+="/bin/raw /dev/raw/raw3 %M %m"
KERNEL=="raw[1-4]", WNER="oracle", GROUP="oinstall", MODE="640"
保存退出后。
start_udev

可以通过下面方式查看ENV{MINOR}==""的值
vi /etc/udev/rules.d/60-raw.rules
先添加
ACTION=="add", KERNEL=="/dev/sdb1",RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL=="/dev/sdc1",RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", KERNEL=="/dev/sdd1",RUN+="/bin/raw /dev/raw/raw3 %N"
KERNEL=="raw[1-4]", WNER="oracle", GROUP="oinstall", MODE="640"
保存退出后。
执行:start_udev
然后执行:  raw -qa

/dev/raw/raw1: bound to major 8, minor 17
/dev/raw/raw2: bound to major 8, minor 33
/dev/raw/raw3: bound to major 8, minor 49

后再把该文件改为
ACTION=="add", KERNEL=="/dev/sdb1",RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", ENV{MAJOR}=="8",ENV{MINOR}=="17",RUN+="/bin/raw /dev/raw/raw1 %M %m"
ACTION=="add", KERNEL=="/dev/sdc1",RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", ENV{MAJOR}=="8",ENV{MINOR}=="33",RUN+="/bin/raw /dev/raw/raw2 %M %m"
ACTION=="add", KERNEL=="/dev/sdd1",RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", ENV{MAJOR}=="8",ENV{MINOR}=="49",RUN+="/bin/raw /dev/raw/raw3 %M %m"
KERNEL=="raw[1-4]", WNER="oracle", GROUP="oinstall", MODE="640"
然后保存退出,执行 start_udev


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/728081/viewspace-606475/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-11-14

  • 博文量
    26
  • 访问量
    39056