我目前正在尝试在 debian 7 下制作一个高可用的 NAS。我使用以下软件包:
drbd8-utils
iscsitarget
iscsitarget-dkms
起搏器
corosync
openais
一切正常,没有pacemaker
(所以我认为这不是一个conf错误)
当我将所有东西放在起搏器上时,一切都会正常工作,直到我重新启动其中一个节点。这是我的起搏器配置:
node NAS-1
node NAS-2
primitive nas_ip ocf:heartbeat:IPaddr2 \
params ip="192.168.152.210" cidr_netmask="255.255.255.0"
primitive p_drbd ocf:linbit:drbd \
params drbd_resource="nas" \
op monitor interval="29" role="Master" \
op monitor interval="31" role="Slave"
primitive p_iscsitarget ocf:heartbeat:iSCSITarget \
params iqn="iqn.2015.01.net.utopia:nas" tid="1" \
op monitor interval="10s"
group g_iscsi nas_ip p_iscsitarget
ms ms_drbd p_drbd \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
colocation nas inf: g_iscsi ms_drbd:Master
order o_drbd inf: ms_drbd:promote g_iscsi:start
property $id="cib-bootstrap-options" \
dc-version="1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-enabled="false" \
no-quorum-policy="ignore" \
default-resource-stickiness="1"
crm(live)configure#
这是以下错误:
root@NAS-1:~# crm_mon -1
============
Last updated: Wed Jan 7 16:02:53 2015
Last change: Wed Jan 7 15:57:51 2015 via cibadmin on NAS-1
Stack: openais
Current DC: NAS-2 - partition with quorum
Version: 1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff
2 Nodes configured, 2 expected votes
4 Resources configured.
============
Online: [ NAS-1 NAS-2 ]
Master/Slave Set: ms_drbd [p_drbd]
Masters: [ NAS-2 ]
Slaves: [ NAS-1 ]
Resource Group: g_iscsi
nas_ip (ocf::heartbeat:IPaddr2): Started NAS-2
p_iscsitarget (ocf::heartbeat:iSCSITarget): Started NAS-2 (unmanaged) FAILED
Failed actions:
p_iscsitarget_stop_0 (node=NAS-2, call=16, rc=5, status=complete): not installed
root@NAS-1:~#
注意:NAS 中确实没有配置 iSCSi 逻辑单元,目前在虚拟机上处于测试阶段,但我在之前的测试中遇到了完全相同的错误。
有人可以帮我查明/纠正该错误吗?
PS:我的其他内容的conf文件:
http://pastebin.com/rUZYrhxm (/etc/drbd.d/*)
http://pastebin.com/X4VGNJuP (/etc/iet/ietd.conf)