今天rhel的pcs资源无法正常启动,经过排查为IP地址配置不对导致,将IP地址修改为正确IP后,资源正常启动
[root@mu01 pcsd]# pcs resource debug-start VirtualIP
crm_resource: Error performing operation: Not configured
Operation force-start for VirtualIP (ocf:heartbeat:IPaddr2) returned: 'not configured' (6)
Mar 24 10:17:17 ERROR: IP address [192.168.9.253/23] not valid. # 这里提示了设置的IP地址为无效
ocf-exit-reason:[findif] failed
[root@mu01 pcsd]# pcs resource debug-start VirtualIP # 修改完成后再次启动恢复正常
Operation force-start for VirtualIP (ocf:heartbeat:IPaddr2) returned: 'ok' (0)
[root@mu01 pcsd]# pcs status
Cluster name: my_cluster
Cluster Summary:
* Stack: corosync
* Current DC: imu01 (version 2.1.0-11.el9-7c3f660707) - partition with quorum
* Last updated: Mon Mar 24 10:18:09 2025
* Last change: Mon Mar 24 10:17:57 2025 by hacluster via cibadmin on imu01
* 2 nodes configured
* 1 resource instance configured
Node List:
* Online: [ imu01 imu02 ]
Full List of Resources:
* VirtualIP (ocf:heartbeat:IPaddr2): Started imu01
Daemon Status:
corosync: active/enabled
pacemaker: active/enabled
pcsd: active/enabled