1.环境:
两台SUN Fire 480 , A1000的阵列。Oracle 9i 环境。
每台480主机上面有6个网络接口。
---------------------------------------------------------------------
ce0 用来连接公网
ce1
eri0
fcip0
qfe0 qfe1 qfe2 qfe3 其中qfe0,qfe1用来做心跳线
---------------------------------------------------------------------
主机名 : TEST1 10.10.10.11/24
TEST2 10.10.10.14/24
虚拟IP : 10.10.10.10
VCS管理IP:10.10.10.9
2.准备工作
a.用两根交叉线把两台机器的qfe0和qfe0,qfe1和qfe1连接起来做心跳线。
b.两边机器写/etc/hosts文件,把两台主机名都写进去。
c.建立两台主机的信任关系
#vi .rhost
+
安装好后可以删除。
d.在两台主机上面同时安装Oracle 9i,都不建库。关闭一台主机,用另一台主机在阵列上建库。
同时开两台主机。
把建好库的这台主机$ORACLE_BASE/ admin/{SID}/
$ORACLE_HOME/dbs/
$ORACLE_HOME/network/admin/
三个目录下的控制文件拷贝到另一台机器上,并做测试连接。
3.安装VCS
a.安装VCS软件包
# cd /cdrom/cdrom0
# cd cluster_server
# ls
copyright installvcs pkgs scripts uninstallvcs
docs licensevcs release_notes support
# ./ installvcs
输入你要安装VCS的两台机器的主机名,前面的一个是active的,即本机。
Enter the names of the systems on which VCS is to be installed
separated by spaces (example: system1 system2): TEST1 TEST2
Checking for ssh on TEST1 ........................... not found
Checking OS version on TEST1 ........................ SunOS 5.8
Verifying communication with TEST2 ............ ping successful
Attempting rsh with TEST2 ...................... rsh successful
Checking OS version on TEST2 ........................ SunOS 5.8
Creating /tmp subdirectory on TEST2 ... /tmp subdirectory created
系统将自动和备机同步,如果在这里不能进行,你需要检查你的心跳连线是否正确。
Using /usr/bin/rsh and /usr/bin/rcp to communicate with TEST2
Communication check completed successfully
VERITAS CLUSTER SERVER INSTALLATION PROGRAM
输入VCS的license
VCS licensing verification:
Checking TEST1 ........................... No license key found
Enter the license key for TEST1: PJPT-XNRY-2P8H-86P3-ZJPP
Valid VCS Demo key entered for TEST1
Registering key PJPT-XNRY-2P8H-86P3-ZJPP on TEST1 ........ Done
Registering key PJPT-XNRY-2P8H-86P3-ZJPP on TEST2 ........ Done
VCS licensing completed successfully
VERITAS CLUSTER SERVER INSTALLATION PROGRAM
The GUI modules of VCS use the Java Run Time Environment(1.3) from Sun
and require that some Solaris patches be installed to function properly.
You can find information about these patches and instructions for
downloading them at:
http://java.sun.com/j2se/1.3/install-solaris-patches.html
Are you ready to start the Cluster installation now? (Y) Y
VERITAS CLUSTER SERVER INSTALLATION PROGRAM
Checking current installation on TEST1:
Checking VRTSvcsw ................................... Not installed
Checking VRTSweb .................................... Not installed
Checking VRTSvcsmn ................................ Not installed
Checking VRTSvcsdc .................................. Not installed
Checking VRTSvcsag .................................. Not installed
Checking VRTSvcsmg .................................. Not installed
Checking VRTSvcs .................................... Not installed
Checking VRTSgab .................................... Not installed
Checking VRTSllt .................................... Not installed
Checking VRTSperl ................................... Not installed
Checking VRTSvlic ................................... Not installed
Checking current installation on TEST2:
Checking VRTSvcsw ................................... Not installed
Checking VRTSweb .................................... Not installed
Checking VRTSvcsmn .................................. Not installed
Checking VRTSvcsdc .................................. Not installed
Checking VRTSvcsag .................................. Not installed
Checking VRTSvcsmg .................................. Not installed
Checking VRTSvcs .................................... Not installed
Checking VRTSgab .................................... Not installed
Checking VRTSllt .................................... Not installed
Checking VRTSperl ................................... Not installed
Checking VRTSvlic ................................... Not installed
Installation check completed successfully
VERITAS CLUSTER SERVER INSTALLATION PROGRAM
Checking file system space on TEST1:
Checking /opt ............................ required space available
Checking /usr ............................ required space available
Checking /var ............................ required space available
Checking / ............................... required space available
Checking file system space on TEST2:
Checking /tmp ............................ required space available
Checking /opt ............................ required space available
Checking /usr ............................ required space available
Checking /var ............................ required space available
Checking / ............................... required space available
File system verification completed successfully
VERITAS CLUSTER SERVER INSTALLATION PROGRAM
Stopping VCS processes on TEST1:
Checking VCS .......................................... not running
Checking CmdServer ............................... not running
Checking Web GUI processes .................. not running
Checking notifier processes ...................... not running
Stopping VCS processes on TEST2:
Checking VCS .......................................... not running
Checking CmdServer ................................ not running
Checking Web GUI processes ................... not running
Checking notifier processes ....................... not running
Checking GAB ........................................... not running
Checking LLT ............................................. not running
VCS processes are stopped
VERITAS CLUSTER SERVER INSTALLATION PROGRAM
输入VCS cluster的名字,Cluster ID ,一般为0。
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 VCS on these systems? (Y) Y
Enter the unique cluster name: HSWAPJSCL
[1mEnter the unique Cluster ID number between 0-255: 0
Discovering NICs on TEST1 ... discovered qfe0 qfe1 qfe2 qfe3 le0 le1 le1 eri0 ce0 ce1 fcip0
输入你用于心跳线的网卡的名字。我们在这里用qfe0 qfe1做心跳。
Enter the NIC for the first private network heartbeat link on TEST1: (qfe0 qfe1 qfe2 qfe3 le0 le1 le1 eri0 ce0 ce1 fcip0) qfe0
[1mEnter the NIC for the second private network heartbeat link on TEST1: (qfe1 qfe2 qfe3 le0 le1 le1 eri0 ce0 ce1 fcip0) qfe1
Are you using the same NICs for private heartbeat links on all systems? (Y) Y
VERITAS CLUSTER SERVER INSTALLATION PROGRAM
Cluster information verification:
Cluster Name: HSWAPJSCL
Cluster ID Number: 0
Private Network Heartbeat Links for TEST1: link1=qfe0 link2=qfe1
Private Network Heartbeat Links for TEST2: link1=qfe0 link2=qfe1
Is this information correct? (Y) Y
VERITAS CLUSTER SERVER INSTALLATION PROGRAM
输入一个IP,即用于VCS Web Console远程管理的IP
The following information is required to configure Cluster Manager:
A public NIC used by each system in the cluster
A Virtual IP address and netmask for Cluster Manager
Do you want to configure Cluster Manager (Web Console) (Y) Y
输入Web Console的网卡端口和IP,这个端口用来做VCS的远程管理,注意:这个端口同时也可以是ORACLE对外的端口。即漂移地址10.10.10.10占用的端口。
Active NIC devices discovered on TEST1: ce0
Enter the NIC for Cluster Manager (Web Console) to use on TEST1: (ce0)
Is ce0 the public NIC used for all systems (Y) Y
Enter the Virtual IP address for Cluster Manager: 10.10.10.9
Enter the netmask for IP 10.10.10.9: (255.255.255.0)
VERITAS CLUSTER SERVER INSTALLATION PROGRAM
Cluster Manager (Web Console) verification:
NIC: ce0
IP: 10.10.10.9
Netmask: 255.255.255.0
Is this information correct? (Y) Y
VERITAS CLUSTER SERVER INSTALLATION PROGRAM
选择是否要对VCS做SMTP和SNMP管理
The following information is required to configure SMTP notification:
The domain based address of the SMTP server
The email address of each SMTP recipient
A minimum severity level of messages to send to each recipient
Do you want to configure SMTP notification? (Y) n
VERITAS CLUSTER SERVER INSTALLATION PROGRAM
The following information is required to configure SNMP notification:
System names of SNMP console(s) to receive VCS trap messages
SNMP trap daemon port numbers for each console
A minimum severity level of messages to send to each console
Do you want to configure SNMP notification? (Y) n
VERITAS CLUSTER SERVER INSTALLATION PROGRAM