IBM双机系统常用命令

IBM共享磁盘双机系统的启动


启动cluster


在主机上使用smit clstart 或者运行


# /usr/sbin/cluster/etc/rc.cluster -boot -N -i 命令启动cluster


先启动的节点将成为主节点,将自动获得浮动IP,监控程序等资源


在备机上使用smit clstart 或者运行


# /usr/sbin/cluster/etc/rc.cluster -boot -N -i 命令启动节点


IBM HACMP双机软件运行状态查询


命令:lssrc -g cluster


系统会显示:


Subsystem Group PID Status


clstrmgr cluster 21926 active
clsmuxpd cluster 29916 active
clinfo cluster 32648 active


clstrmgr是cluster manager,其处理双机的大部分工作。


clsmuxpd是cluster中管理双机网络部分的进程。


clinfo是cluster information的意思,其负责收集和监控双机当前状态信息。


IBM HACMP双机子系统状态查询


命令:lssrc -s appspy


系统会显示(主机):


Subsystem Group PID Status


appspy 19136 active


或者显示(备机):
Subsystem Group PID Status


appspy inoperative


命令:/usr/sbin/cluster/clstat

系统会显示:

IBM HACMP双机运行状态查询
Cluster: scp_cluster (100) Fri Jul 19 09:59:26 TAIST 2002
State: UP Nodes: 2
SubState: STABLE
Node: mscp1 State: UP
Interface: mscp1_boot (0) Address: 10.136.148.101
State: UP
Interface: mscp1_tty (1) Address: 0.0.0.0
State: UP
Node: mscp2 State: UP
Interface: mscp2_boot (0) Address: 10.136.148.102
State: UP
Interface: mscp2_tty (1) Address: 0.0.0.0
State: UP

在备机上停止cluster    ,用smit clstop 或者clstop -gr 命令将备机退出cluster


注意:使用smit clstop 方式关闭该节点上的双机软件时有三种选项:forced指立即关闭;graceful指在关闭前将调用用户定义的应用处理程序;takeover指将释放资源请求备用节点接管。应该选graceful方式。

 


在主机上停止cluster  ,用smit clstop 或者clstop -gr 命令停止cluster ,注意使用smit clstop 方式只能选graceful方式


需要注意的是若该节点是主节点并且备节点上的HACMP 软件亦正常运行则需注意


clstop 关闭模式的三种选项的不同


1 forced 是指立即关闭双机软件不调用任何客户应用的善后处理例程.
2 graceful 是指在关闭双机软件时将调用客户应用预定义的善后处理例程.
3 takeover 是指该节点将关闭双机软件并释放资源请求备节点进行接管.如该节点是备节点


则关闭模式选项没有多大意义.

IBM热备份双机的启动和停止 AIX+HACMP+INFORMIX+应用


1:首先启动主机数据库,主机应用软件
2:启动备机数据库和应用软件
3:启动主机双机软件,待浮动IP地址拉起后,启动备机双机软件


在root用户下,使用smit clstart命令拉起主机双机软件,注意各项设置如下:
* Start now, on system restart or both now

BROADCAST message at startup? false
Startup Cluster Lock Services? false
Startup Cluster Information Daemon? true


6:最后检查主备机数据库状态是否正常,应用是否正常,双机状态是否正常,浮动IP是否已经拉起,SCP是否和周围各网元建立连接。


如何停止SCP双机数据库,SCP应用平台,双机软件,拉起浮动IP地址
1:先杀掉备机监控进程
2:然后停止备机应用,停备机的数据库
4:然后停备机双机


在root用户下使用smit clstop命令停止备机双机软件
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Dec 27 2005 20:23:35
/usr/sbin/cluster/utilities/clstop : called with flags -y -N -g
0513-044 The clstrmgr Subsystem was requested to stop.
0513-044 The clinfo Subsystem was requested to stop.
0513-044 The clsmuxpd Subsystem was requested to stop.

posted @ 2020-09-01 14:03  chengxuyonghu  阅读(867)  评论(0编辑  收藏  举报