VCS安装与管理 联系客服

发布时间 : 星期日 文章VCS安装与管理更新完毕开始阅读e038d42758fb770bf78a557c

错误!未找到引用源。

技术文档 #ifconfig qfe1 192.168.100.2 netmask 255.255.255.0 up # ifconfig qfe2 plumb

#ifconfig qfe2 192.168.200.2 netmask 255.255.255.0 up 测试: 在A主机上:

# ping 192.168.100.2 # ping 192.168.200.2

在B主机上:

# ping 192.168.100.1 # ping 192.168.200.1

2.1.3 共享阵列配置

a) Fibre Channel ? ?

安装所需的FC-AL控制器;(详细可参见相应文档)

将FC-AL控制器和磁盘阵列(如:T3)连接至同一个hub或switch。

b) SCSI硬盘

如果共享磁盘为SCSI通道,注意修改Taget id 以免冲突 ?

nvedit

probe-all install-console banner cd /pci@6,4000/scsi@3

6 \device-end

cd /pci@6,4000/scsi@2,1

6 \device-end ? ? ? ?

Do a ctrl-c,and store the nvramrc: ok>nvstore

Set the system to use the nvramrc: ok>setenv use-nvramrc? true

Author:grace Page 5 of 33

错误!未找到引用源。

技术文档 c) reboot -- -r

d) 当两台机器都起好之后,使用format命令查看硬盘,确认两台主机都能认到磁盘阵列。如果是用Volume Manager来管理阵列,阵列上硬盘的个数是一致的,但是盘符有可能不一样。

2.1.4 禁止插拔键盘时进入OK的现象

在/etc/default/kdb文件中,加上一行: KEYBOARD_ABORT=disable

2.1.5 reboot

2.2 安装与配置

2.2.1 VCS软件安装

1. 设置环境变量

$PATH=/sbin:/usr/sbin:/opt/VRTSvcs/bin:$PATH $export PATH

2. 设置系统之间的通讯

VCS安装时需要确保安装的服务器到集群中的其他主机必须能够无口令验证的登录操作。以下提供ssh及rsh 两种方式来实现该要求。 SSH方式: 以root用户登录A主机,执行下列命令: #cd /

#/usr/local/ssh/bin/ssh-keygen –d Generating public/private dsa key pair.

Enter file in which to save the key (/home1/oracle/.ssh/id_dsa):【回车】 Enter passphrase (empty for no passphrase):【回车】 Enter same passphrase again:【回车】

该命令将在/.ssh目录下生成id_dsa.pub,id_dsa,known_hosts文件,将id_dsa.pub ftp至B主机的相应

目录下,并改名为authorized_keys

#ssh B

测试一下ssh B,是否能够不加验证就登录。

Author:grace Page 6 of 33

错误!未找到引用源。

技术文档 按照上述步骤在B上也执行一遍即可。

RSH方式:

以root登录A主机,编辑/.rhosts文件,输入B主机的主机名; 在B主机上执行 rsh A

测试一下rsh A,是否能够不加验证就登录; 在A主机上执行rsh B

测试一下rsh B,是否能够不加验证就登录; 3. 获得VCS的License KEY 4. 开始安装VCS

1) mount 光盘(在C主机上)

2) 运行./installvcs命令,出现如下画面:

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 Do you want to start the Cluster installation now (Y/N)[Y] ? Y Please enter the unique Cluster Name : vcs //输入cluster domain的名称

Please enter the unique Cluster ID(a number from 0-255) : 192 //输入cluster domain的ID

Enter the systems on which you want to install. (system names separated by spaces) : coredb pmdb //输入安装的主机名

Analyzing the system for install. coredb ..... OK.

SunOS db 5.8 Generic_108528-18 sun4u sparc SUNW,Sun-Fire-880 pmdb ..... OK.

SunOS portalman 5.8 Generic_108528-18 sun4u sparc SUNW,Sun-Fire-880

Author:grace Page 7 of 33

错误!未找到引用源。

技术文档

Enter the license key for coredb: PJZZ-6WRG-JW3C-WXP6-DHRP-N Enter the license key for pmdb: PJZZ-6WRG-JW3C-T6P6-DHRP-N //输入License KEY

Checking for VCS requirements on system for install. coredb .. OK. pmdb .. OK.

Discovering NICs for setting up private network links on db. This may take some time.

Following is the list of discovered NICs: No. NIC Device 1. ce:0 2. qfe:0 3. qfe:1 4. qfe:2 5. qfe:3 6. Other

From the list above, please enter the number (the number appearing in the No. column) of the NIC for First PRIVATE network link: 3

上述提示的意思就是说,安装程序在主机上找到了以上的可以用来做心跳的设备,

让你选择首选的心跳设备,输入3表示选择qfe1作为首选的心跳设备。 选择完首选心跳设备后,出现如下提示:

From the list above, please enter the number (the number appearing in the No. column) of the NIC for Second PRIVATE network link: 4

就是要你选择第二心跳设备,输入4表示选择的是 qfe2 选择完第二心跳设备后,出现如下提示:

Do you have the same network cards set up on all systems (Y/N)[Y] ? Y 接下来询问其他的主机是否使用相同的心跳设备。

Author:grace Page 8 of 33