- 论坛徽章:
- 0
|
是很老了,难怪无人理,
没有留下手册,可参考下原来的安装过程,尽量留下系统的配置,包括license序列号,以备重装需要:
Solaris 2.6/Quolix2.2双机案例:
节点1: node1,Sybase服务器
节点2: node2,www服务器
1。检查Solaris版本:
# showrev
Hostname: node1
。。。
Kernel version: SunOS 5.6 Generic 105181-16 June 1999
2。检查装Solaris后硬盘空间:
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t10d0s0 2087440 558859 1465958 28% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
/dev/dsk/c1t10d0s7 5572716 9 5516980 1% /u
/dev/dsk/c1t11d0s0 4131384 9 4090062 1% /user
swap 1412016 192 1411824 1% /tmp
3。改/etc/hosts文件:
# vi /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
192.9.200.1 node1 dbserver loghost
192.9.200.2 node2 wwwserver
#
# Heardbeat line 1
192.9.201.1 node1_hb1
192.9.201.2 node2_hb1
#
# Heardbeat line 2
192.9.202.1 node1_hb2
192.9.202.2 node2_hb2
#
# Sun GigabitEthernet
192.9.200.100 db
192.9.200.200 www
#
#
192.9.200.3 dns e250
192.9.200.4 nms e5
192.9.200.5 vod e450
#
4。改/etc/nsswitch.conf文件:
# vi /etc/nsswitch.conf
...
hosts: files dns
...
5。改/etc/resolv.conf文件:
# more /etc/resolv.conf
domain cu.org.cn
nameserver 192.9.200.3
6。加网口配置文件:
# cd /etc
# ls h*e*
hostname.ge0 hostname.qfe2 hostname.qfe3 hosts.equiv
# vi hostname.ge0
db
# vi hostname.qfe2
node1_hb1
# vi hostname.qfe3
node1_hb2
7。装网卡驱动程序,并重启:
# cd /cdrom/cdrom0
# ls
Copyright FR_Copyright Sol_2.5.1+ Sol_2.6 Sol_2.7
# cd Sol_2.6
# ls
SUNWged SUNWgedm SUNWgedu SUNWvtsge
# pkgadd -d .
....
# reboot
8。检查网络通否,包括心跳线:
# ifconfig -a
lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
inet 127.0.0.1 netmask ff000000
ge0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
inet 192.9.200.100 netmask ffffff00 broadcast 192.9.200.255
ether 8:0:20:b5:34:dc
qfe2: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
inet 192.9.201.1 netmask ffffff00 broadcast 192.9.201.255
ether 8:0:20:be:56:c6
qfe3: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
inet 192.9.202.1 netmask ffffff00 broadcast 192.9.202.255
ether 8:0:20:be:56:c7
# ping node2_hb1
node2_hb2 is alive
# ping node2_hb2
node2_hb2 is alive
9。装Veritas Volume Manager 2.6,并重启:
# cd /cdrom/sun_sevm_2_6/Product
# ls
SUNWasevm SUNWvmdev SUNWvmman SUNWvmsa SUNWvxva SUNWvxvm
# pkgadd -d .
下列软件包是可以使用的:
1 SUNWasevm Sun StorEdge Volume Manager 2.6 AnswerBook
(all) 263.1.3
2 SUNWvmdev Sun StorEdge Volume Manager, Header and Library Files
(sparc) 2.6,REV=2.5.3
3 SUNWvmman Sun StorEdge Volume Manager, Manual Pages
(sparc) 2.6,REV=2.5.3
4 SUNWvmsa Sun StorEdge Volume Manager, Server Administration
(sparc) 2.6,REV=1.0.1
5 SUNWvxva Sun StorEdge Volume Manager, Visual Administrator
(sparc) 2.6,REV=2.5.0
6 SUNWvxvm Sun StorEdge Volume Manager
(sparc) 2.6,REV=2.5.3
。。。
# reboot
10。检查系统硬盘,包括SSA磁盘阵列c0:
硬盘规划:
c1t10d0: Solaris 2.6
c1t11d0s7: rootdg
sybase_dg: c0t35d0 c0t38d0 c0t48d0 c0t51d0
www_dg: c0t54d0
11。配置Veritas Volume Manager,并管理SSA阵列盘c0,并重启:
# cd /usr/sbin
# vxinstall
Host type: SUNW,Ultra-Enterprise
。。。
Shutdown and reboot now [y,n,q,?] (default: n)y
(reboot)
12。配置Veritas Volume Manager,创建磁盘组sybase_dg和www-dg:
创建rootdg于c1t11d0s7:
# vxdisk -f init c1t11d0s7 type=simple
# vxdg adddisk c1t11d0s7
# vxdctl enable
# vxva
( rootdg: c0t35d0 c0t38d0 c0t48d0 c0t51d0 c0t54d0 c1t11d0s7 )
创建磁盘组sybase_dg和www-dg:
# vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
。。。
# vxdg list
NAME STATE ID
rootdg enabled 952674450.1025.node1
sybase_dg enabled 952677447.1094.node1
www_dg enabled 952677611.1101.node1
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t35d0s2 sliced sybase_01 sybase_dg online
c0t38d0s2 sliced sybase_02 sybase_dg online
c0t48d0s2 sliced sybase_03 sybase_dg online
c0t51d0s2 sliced sybase_04 sybase_dg online
c0t54d0s2 sliced www_dg01 www_dg online
c1t10d0s2 sliced - - error
c1t11d0s2 sliced - - error
c1t11d0s7 simple c1t11d0s7 rootdg online
# newfs /dev/vx/rdsk/www_dg/vol01
13。服务器节点1装Sybase数据库:
。。。略
14。准备装Qualix HA,检查网络配置,去掉Solaris对共网的配置,并重启:
node1# ifconfig -a
lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
inet 127.0.0.1 netmask ff000000
ge0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
inet 192.9.203.1 netmask ffffff00 broadcast 192.9.203.255
ether 8:0:20:b7:a7:4c
qfe2: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
inet 192.9.201.1 netmask ffffff00 broadcast 192.9.201.255
ether 8:0:20:b7:a7:4c
qfe3: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
inet 192.9.202.1 netmask ffffff00 broadcast 192.9.202.255
ether 8:0:20:b7:a7:4c
node1# rm /etc/hostname.hme0 hostname.gfe0
node1# reboot
15。服务器节点1装Quolix HA 2.2软件:
# cd /cdrom/cdrom0
# ls
AUTORUN.INF FTDATANT FTHAPLUS OCTOPUS ieget_animated.gif
FTCLUSTER FTDATAUNIX INSTALL.HTM ftlogo.GIF
# cd FTHAPLUS
# ls
AIX HPUX SOLARIS
# cd SOLARIS
# ls
SPARC
# cd *
# ls
HAP.PDS
# pkgadd -d HAP.PDS
下列软件包是可以使用的:
1 FTSWhadoc HA+ Documentation
(sparc) 2.2.0
2 QLIXcma HA+ Cluster Management Agent
(sparc) 2.2
3 QLIXcmc HA+ Cluster Management Clients
(sparc) 2.2
4 QUALha HA+ Binary
(sparc) 2.2.0
选择你要执行的软件包(或选择'全部'执行所有的软件包). (default: all) [?,??,q]: 3,4
。。。
16。配置Quolix HA 2.2和软件序列号生效:
# cd /etc/opt/QUALha/etc
# vi machine.conf
...
machine.key: E123 I123 O123 N123 L123 K123
heartbeat.interface: qfe2
heartbeat.interface: qfe3
group.name: sybase_sg
group.id: 192.9.200.1
group.priority: 1
group.ok_to_serve_on_startup: 1
service.name: sybase
group.name: www_sg
group.id: 192.9.200.2
group.priority: 2
service.name: http
# pwd
/etc/opt/QUALha/bin
# checkkey
Mar 11 16:40:29 [668] HA+: Key=E123 I123 O123 N123 L123 K123 is a permanent license for hostid=0x80b7a74c
Mar 11 16:40:29 [668] HA+: Key=E123 I123 O123 N123 L123 K123 is valid.
17。装Netscape Enterprise Server
...略。
18。在节点2上配置web服务器:
...略。
# pwd
/opt/netscape/server4
# startconsole
# cd /opt/netscape
# netscape
http://192.9.200.2:8081
user:admin
passwd:admin
19。安装Quolix Agent,增加服务组:
装Agent包:
# cd QHAmodule
# ls
http.tar sybase.tar
# cp * /etc/opt/QUALha/examples/services
# cd /etc/opt/QUALha/examples/services
# tar xvf http.tar
加服务组:
# cd /etc/opt/QUALha/bin
# addsg 192.9.200.2
修改配置:
# cd /etc/opt/Q*/etc
# ls
init.d machine.conf machine.conf.prototype
# vi machine.conf
...
machine.key: E123 C123 A123 O123 L123 K123
heartbeat.interface: qfe2
heartbeat.interface: qfe3
group.name: www_sg
group.id: 192.9.200.2
group.priority: 1
group.ok_to_serve_on_startup: 1
service.name: http
group.name: sybase_sg
group.id: 192.9.200.1
group.priority: 2
service.name: sybase
...
加磁盘组到服务组:
# pwd
/etc/opt/QUALha/sg/192.9.200.2
# vi fs.tab
...
/dev/vx/dsk/www_dg/vol0 /dev/vx/rdsk/www_dg/vol0 /data ufs vxvm -
...
# vi vxvm.dg.tab
...
www_dg
...
# vi if.tab
....
hme0 192.9.200.2 - - - - - -
# addsvc -g 192.9.200.2 http
修改服务组启动/停止脚本,并重启:
node1# cd /etc/opt/QUALha/sg/192.9.200.2/http.d
node1# ls
HTTP.test add_to_machine.conf restart test
README env start
README.svc failed stop
node2# vi start
node2# vi stop
# reboot
20。测试Quolix HAfu服务的切换:
用界面看:
# cui
Server: node1 Sun Mar 12 12:37:26 2000
HA+ Command Center
................ SERVICE GROUP ............... CURRENT BEST ALERT
NAME ID STATUS SERVER STANDBY
1 www_sg 192.9.200.2 SERVED node2 node1
--------------------------------------------------------|-----------------------
ROLEM PID: 496 (0/5) SM PID: 469 (0/7) HB info: +qfe2 +qfe3
Local information for service group "www_sg":
Local Status: STANDBY (0/3) [pri=2]
OK to serve #standby=1, #offline=0
Service F.Test Restart Status
http 0/3 0/1 STOPPED
Member servers: node1 +node2
Command: 'l'ess, o'f'fline, 'r'econfigure, 'q'uit
Sybase服务组的配置文件:
...
(原70000字节,但CU限制,只能发10000字节,有删改,只能如此了) |
|