crm resource cleanup <rsc>
在 Pacemaker 配置系统中是否有替代命令?我从 pcs status 收到以下错误消息,我在不同的站点上发现crm resource cleanup <rsc>
可以解决问题。如果没有替代命令,还有其他方法可以正确调出资源吗?
OS: CentOS 6.4 x86_64
Kernel: 2.6.32
pcs version: 0.9.26
电脑状态:
Stack: classic openais (with plugin)
Current DC: drbd1 - partition with quorum
Version: 1.1.8-7.el6-394e906
2 Nodes configured, 2 expected votes
5 Resources configured.
Online: [ drbd1 drbd2 ]
Full list of resources:
Master/Slave Set: master_drbd [drbd_r0]
Masters: [ drbd1 ]
Slaves: [ drbd2 ]
Resource Group: iSCSI_Group
ClusterIP (ocf::heartbeat:IPaddr2): Started drbd1
iSCSI_Target (ocf::heartbeat:iSCSITarget): Started drbd2
iSCSI_LUN1 (ocf::heartbeat:iSCSILogicalUnit): Stopped
Failed actions:
iSCSI_LUN1_start_0 (node=drbd2, call=42, rc=1, status=complete): unknown error
iSCSI_LUN1_start_0 (node=drbd1, call=42, rc=1, status=complete): unknown error
pcs 资源显示--全部:
Master: master_drbd
Resource: drbd_r0 (provider=linbit type=drbd class=ocf)
Attributes: drbd_resource=r0 interval=10s
Group: iSCSI_Group
Resource: ClusterIP (provider=heartbeat type=IPaddr2 class=ocf)
Attributes: ip=192.168.10.105 cidr_netmask=24
Operations: monitor interval=10s
Resource: iSCSI_Target (provider=heartbeat type=iSCSITarget class=ocf)
Attributes: iqn=iqn.2013-10.localdomain:storage.localdomain tid=1
Operations: monitor interval=10s
Resource: iSCSI_LUN1 (provider=heartbeat type=iSCSILogicalUnit class=ocf)
Attributes: target_iqn=iqn.2013-10.localdomain:storage.localdomain lun=1 path=/dev/drbd1
Operations: monitor interval=10s
请指教,谢谢!
答案1
我知道这已经过时了,但这是解决方案:pcs resource cleanup iSCSI_LUN1