在Solaris中安装Veritas DBAC for Oracle RAC
一、 安装Solaris 9 8/03版本,由于该版本是Solaris操作系统的最新版,所以不需要在安装补丁程序。
二、 使用Sun公司发布的补丁盘,安装SUNWsan软件包和补丁包
三、 为要安装Oracle RAC的Sun V880设置好网络
主机A:
机器名:rac1
网卡 eri0:192.0.0.101/255.255.255.0 用于做心跳网卡2
网卡 ge0:192.0.1.101/255.255.255.0 用于做心跳网卡1
网卡 ce0:172.39.199.101/255.255.255.0 用于做对外服务网卡
主机A具体配置文件如下:
l /etc/hosts文件的内容:
#
# Internet host table
#
127.0.0.1 localhost
192.168.0.101 rac1 loghost a.b
192.168.0.102 rac2
192.168.1.101 rac1-ge0
172.39.199.101 rac1-ce0
l /etc/netmasks文件的内容
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center. Currently this number is restricted to being a class
# A, B, or C network number. In the future we should be able to support
# arbitrary network numbers per the Classless Internet Domain Routing
# guidelines.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
192.168.0.0 255.255.255.0
172.39.199.0 255.255.255.0
l /etc/hostname.eri0文件的内容:
rac1
l /etc/hostname.ge0文件的内容:
rac1-ge0
l /etc/hostname.ce0文件的内容:
rac1-ce0
l /etc/hosts.equiv文件的内容:
+
l /etc/notrouter文件是一个空文件
l /etc/defaultrouter文件的内容
172.16.199。254
l /.rhosts文件的内容
rac1
rac2
主机B:
机器名:rac2
网卡 eri0:192.0.0.102/255.255.255.0 用于做心跳网卡2
网卡 ge0:192.0.1.102/255.255.255.0 用于做心跳网卡1
网卡 ce0:172.39.199.102/255.255.255.0 用于做对外服务网卡
具体配置文件如下:
l /etc/hosts文件的内容:
#
# Internet host table
#
127.0.0.1 localhost
192.168.0.102 rac2 loghost a.b
192.168.0.101 rac1
192.168.1.102 rac2-ge0
172.39.199.102 rac2-ce0
l /etc/netmasks文件的内容
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center. Currently this number is restricted to being a class
# A, B, or C network number. In the future we should be able to support
# arbitrary network numbers per the Classless Internet Domain Routing
# guidelines.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
192.168.0.0 255.255.255.0
172.39.199.0 255.255.255.0
l /etc/hostname.eri0文件的内容:
rac2
l /etc/hostname.ge0文件的内容:
rac2-ge0
l /etc/hostname.ce0文件的内容:
rac2-ce0
l /etc/hosts.equiv文件的内容:
+
l /etc/notrouter文件是一个空文件
l /etc/defaultrouter文件的内容
172.16.199.254
l /.rhosts文件的内容
rac1
rac2
四、 为两台主机的超级用户加上如下环境变量
l 在文件/。Profile中加上以下内容
PATH=/sbin:/usr/sbin:/usr/bin:/usr/lib/vxvm/bin:/usr/lib/fs/vxfs:/opt/VRTSvxfs/sbin:\
/opt/VRTSvcs/bin:/opt/VRTSvcs/rac/bin:/opt/VRTSob/bin:$PATH
export PATH
MANPATH=/usr/share/man:/opt/VRTS/man
export MANPATH
五、 使用超级用户的身份登录到系统RAC1上,将VERITAS DBE/AC for Oracle9i RAC software介质放入RAC1的CDROM中,等待一会后,运行Veritas安装脚本。
以下黑体字部分是安装时需要输入的信息,采用C语言的注释方法进行中文说明。
# cd /cdrom/database_ac_for_oracle9i
# ./installDBAC
/* 运行DBAC的安装脚本 */
Enter the names of the systems on which VCS is to be installed
separated by spaces (example: system1 system2): rac1 rac2
/* 以上是输入集群的所有主机名,主机名之间用空格分开 */
Analyzing . . .
/*系统开始检查和分析:1、是否有足够的磁盘空间来安装软件包2、SUNWsan软件包和其补丁是否已经安装3、用户是否具有超级用户的权限4、系统是否已经安装了VRTSvlic软件包,如果没有的话,就将该软件包安装在系统上*/
You do not have a Database Edition for Advanced Cluster license installed on rac1.
Do you want to add a license key for this product on rac1 ?[Y/N](Y) y
Enter your license key : XXXX-XXXX-XXXX-XXXX-XXXX-XXX
Registering license for rac1.
You do not have a Database Edition for Advanced Cluster license installed on rac2.
Do you want to add a license key for this product on rac2 ?[Y/N](Y) y
Enter your license key : XXXX-XXXX-XXXX-XXXX-XXXX-XXX
Registering license for rac2.
/* 以上是输入Veritas for Oracle RAC的license */
You can skip VERITAS Cluster server installation, if you need to
install only VERITAS Volume manager and VERITAS Filesystem
Would you like to continue VCS installation. [Y/N](Y)? Y
Starting VCS installation.
/* 以上是提示继续安装Veritas for Oracle RAC 软件包 */
Checking for ssh on rac1 ............................ not found
Verifying communication with rac2 ............. ping successful
Attempting rsh with rac2 ....................... rsh successful
Checking OS version on rac1. ........................ SunOS 5.8
Creating /tmp subdirectory on rac1... /tmp subdirectory created
Checking OS version on rac2 ......................... SunOS 5.8
Using /usr/bin/rsh and /usr/bin/rcp to communicate with rac1
Communication check completed successfully
VCS licensing verification:
Checking rac1 .............found DBED/AC Node Locked key
Do you want to enter a new key for rac1 (N) n
Using the existing DBED/AC Node Locked key located on rac2.
Checking rac2 .............found DBED/AC Node Locked key
Using the existing DBED/AC Node Locked key located on rac2.
DBED/AC licensing completed successfully
/* 以上部分进行License的校验 */
Are you ready to start the Cluster installation now? (Y) Y
/* 以上询问是否开始安装VeritasforOracle RAC集群软件 */
To configure VCS the following is required:
A unique Cluster name
A unique Cluster ID number between 0-255
Two NIC cards on each system used for private network
heartbeat links
Are you ready to configure DBED/AC on these systems? (Y) Y
/* 以上询问是否开始配置VeritasforOracle RAC集群软件 */
Enter the unique Cluster Name: testrac
Enter the unique Cluster ID number between 0-255: 10
/* 集群的名字是testrac,集群的ID是10 */
Discovering NICs on galaxy: ..... discovered eri0 ge0 ce0
Enter the NIC for the first private network heartbeat link on Rac1: (eri0 ge0 ce0) ge0
Enter the NIC for the second private network heartbeat link on Rac1: (hme0 qfe1 qfe2 qfe3) eri0
Are you using the same NICs for private heartbeat links on all systems? (Y) Y
/* 以上配置集群的心跳网络,ge0是主心跳网络,eri0是次心跳网络,集群中的所有节点的心跳网络配置参数都是相同的 */
Cluster information verification:
Cluster Name: testrac
Cluster ID Number: 10
Private Network Heartbeat Links for rac1: link1=ge0 link2=eri0
Private Network Heartbeat Links for rac2: link1=ge0 link2=eri0
Is this information correct? (Y) Y
/* 以上对配置的集群心跳网络进行确认 */