PowerHA 双机软件管理和检查

PowerHA

双机软件管理和检查

一. HA的启动和停止

HA启动

#smitty clstart

[Entry Fields]

* Start now, on system restart or both now +

Start Cluster Services on these nodes [sgapp1, sgapp2-> +

* Manage Resource Groups Automatically +

BROADCAST message at startup? false +

Startup Cluster Information Daemon? true +

Ignore verification errors? false +

Automatically correct errors found during Interactively +

说明:

  1. 执行smitty clstart出现菜单后,光标移动到Start Cluster Services on these nodes,按F4同时可以选择2个节点,使其同时启动。如果只启动当前节点,这里保持默认。
  2. 光标移动到Startup Cluster Information Daemon,然后按tab键改为true。
  3. 最后,按回车执行HA的启动。

HA停止

#smitty clstop

[Entry Fields]

* Stop now, on system restart or both now +

Stop Cluster Services on these nodes [sgapp1 > +

BROADCAST cluster shutdown? false +

* Select an Action on Resource Groups Move Resource Group> +

说明:

  1. Stop Cluster Services on these nodes 选择要关闭的节点。
  2. Select an Action on Resource Groups 选择资源组处理的方式。如果关闭HA后,要将资源组(服务IP、数据VG、应用)切换到另一个节点,择Move Resource Group。

或者选择另两种方式:Offline Resource Group或Unmanned Resource Group

二、状态检查

2.1查看HA进程

# lssrc -g cluster 

Subsystem Group PID Status

clstrmgrES cluster 4522068 active

clevmgrdES cluster 5373968 active

clinfoES cluster 6226384 active

说明:HA启动后,应该会出现红色的2个进程

2.2查看服务IP

# netstat -in

Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll

en4 1500 link#2 40.f2.e9.13.b0.22 18840 0 11731 3 0

en4 1500 10.12.253 10.12.253.22 18840 0 11731 3 0

en4 1500 10.12.2 10.12.2.22 18840 0 11731 3 0

en5 1500 link#3 40.f2.e9.13.b0.23 8500 0 2649 3 0

en5 1500 10.12.2 10.12.2.202 8500 0 2649 3 0

en5 1500 10.12.252 10.12.252.22 8500 0 2649 3 0

说明:HA启动后,检查服务IP是否已经启动。

可以通过cat /etc/hosts文件查看服务IP的地址。

2.3查看卷组

#lspv

hdisk0 00c70b97454be64f rootvg active

hdisk1 00c70b974a0a653d rootvg active

hdisk2 00c70b8764b3e67a caavg_private active

hdisk3 00c70b974f853429 appvg1 active

说明:HA启动后,检查数据VG是否已经启动。

其他常用命令

  1. 查看HA的资源组状态 (命令区分大小写)

/usr/es/sbin/cluster/utilities/clRGinfo 

  1. 查看HA配置信息

/usr/es/sbin/cluster/utilities/cltopinfo

1 次浏览 更新于 2026-11-04

同组文章PowerHA 高可用

查看本组全部 4 篇

没有找到想要的答案?

上传日志让 AI 帮你诊断,或者在控制台里直接向 AI 提问。