如何在crm中重新配置vip_public?

How to re-configure the vip_public in crm?

之前在crm中配置了错误的IP:

crm(live)configure# primitive vip_public ocf:heartbeat:IPaddr2 params ip="45.117.40.168.168" cidr_netmask="24" nic=eno50332184 op monitor interval="30s"
crm(live)configure# primitive vip_management ocf:heartbeat:IPaddr2 params ip="10.10.0.168" cidr_netmask="24" nic=eno33554960 op monitor interval="30s"
crm(live)configure# commit
crm(live)configure# cd ..
crm(live)# status
Last updated: Sun Jul 23 19:41:36 2017      Last change: Sun Jul 23 19:41:33 2017 by root via cibadmin on ha-node1
Stack: corosync
Current DC: ha-node3 (version 1.1.13-10.el7-44eb2dd) - partition with quorum
3 nodes and 2 resources configured

Online: [ ha-node1 ha-node2 ha-node3 ]

Full list of resources:

 vip_public (ocf::heartbeat:IPaddr2):   Stopped
 vip_management (ocf::heartbeat:IPaddr2):   Started ha-node2

Failed Actions:
* vip_public_start_0 on ha-node1 'not configured' (6): call=10, status=complete, exitreason='[findif] failed',
    last-rc-change='Sun Jul 23 19:41:34 2017', queued=0ms, exec=282ms

所以我想在 crm 中重新配置 vip_public:

crm(live)# configure
crm(live)configure# primitive vip_public ocf:heartbeat:IPaddr2 params ip="45.117.40.168" cidr_n

但我收到错误:

ERROR: Cannot create primitive with ID 'vip_public': Found existing primitive with same ID.

如何解决?

最后得到方法:

在 中,我使用 show 命令来显示配置文件。 我可以使用 edit 来编辑我的配置。

最后,使用commit命令提交配置。