SUN Zone Cluster安装及配置说明

 

一.实验拓扑图

 

二.安装及配置内容

1.     综述说明

a)         安装vmware workstations 8.0vmware安装省略

b)         vmware上安装solaris 10 u9 x86,分别为aptest/dbtest,两台主机,vmware配置选择兼容vmware 6.0格式

c)         创建solaris虚拟机时注意:格式配置选LSI logic模式,装solaris选择ZFS文件系统

d)         使用vmware-vdiskmanager.exe来模拟新增LUN

Exvmware-vdiskmanager.exe -c -s 80GB -a ide -t 2 D:\mydisk2.vmdk

2.     vmware配置solaris

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3.     solaris安装图例如下:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4.     vdiskmanager分配磁盘

 

 

 

 

 

 

 

5.     配置solaris网卡

添加4个网卡,状态如下

 

注意编辑虚拟机中的vmx文件,在末尾添加如下

disk.locking="FALSE"

scsi0.ShareBus="Virtual"

scsi2.ShareBus="Virtual"

 

几个小技巧

 

A. 开启telnet ftp

# Vi /etc/default/login   ---注释console

#svcadm enable ftp     ----开启ftp服务

#svcadm enable telnet   ---开启telnet服务

#devfsadm    ---发现新磁盘

 

#ifconfig –a   --查看网卡

#ifconfig e1000g1 plumb up ---开启网络接口

#ifconfig e1000g2 unplumb ----之前识别不了是因为 e1000g2 e1000g3 plumb 就默认该适配器被使用了  所以配置cluster的当前机器的心跳网口要unplumb

安装sun cluster 3.3

一.        安装cluster

a.上传solaris-cluster-3_3-ga-x86.zip到服务器,并解压。

 

b.检查config/local_only boolean

Ensure that the local_only property of rpcbind is set to false:

# svcprop network/rpc/bind:default | grep local_only

if not false run:

# svccfg

svc:> select network/rpc/bind

svc:/network/rpc/bind> setprop config/local_only=false

svc:/network/rpc/bind> quit

# svcadm refresh network/rpc/bind:default

 

c.检查options/tcp_listen boolean是否为true

Ensure that the tcp_listen property of webconsole is set to true:

# svcprop /system/webconsole:console | grep tcp_listen

if not true run:

# svccfg

svc:> select system/webconsole

svc:/system/webconsole> setprop options/tcp_listen=true

svc:/system/webconsole> quit

# svcadm refresh svc:/system/webconsole:console

# /usr/sbin/smcwebserver restart 

 

d.两台服务器各自进入解压出来的目录执行安装。

# ./installer –nodisplay

 

 

 

 

 

 

 

 

 

 

 

 

 

.分别对两台服务器打cluster补丁。

 

bash-3.00# patchadd 145334-11

 

.配置资源前建议先对系统做快照,以便配置错误可以回滚。

 

6.     配置sun cluster

如下为摘录内容,t2000a对应aptest;t2000b对应dbtest,请注意,为保障一致性暂不修改名称

 

1.先配置IPMP,建立通讯。

t2000a服务器:

#  vi /etc/hosts

::1     localhost

127.0.0.1       localhost

192.168.0.119   t2000a  loghost sun.com

192.168.0.120   t2000b

#IPMP address

1.1.1.1         t2000a_ipmp

#logic address

192.168.0.121      t2000_c1

 

#  vi /etc/hostname.e1000g0

t2000a     netmask + broadcast + group ipmp1 up

 

#  vi /etc/hostname.e1000g1

aptest_ipmp netmask + broadcast + deprecated group ipmp1 up

 

t2000b服务器:

# vi /etc/hosts

::1     localhost

127.0.0.1       localhost

192.168.0.120   t2000b  loghost sun.com

192.168.0.119   t2000a

#IPMP address

1.1.1.2         t2000b_ipmp