После отключения одной ноды не подхватывает res_filesystem_1 на второй ноде и не запускаются все службы,которые находятся на drbd. Лезут ошибки типа
# /usr/sbin/crm_mon -1 -r -f
res_Filesystem: migration-threshold=1000000 fail-count=1000000
Если сбросить ресурсы командой
crm_resource --resource res_filesystem_1 -P
то заводится filesystem и далее
crm_resource --resource res_mysql_mysql_fpbx -P
crm_resource --resource res_asterisk_asterisk -P
crm_resource --resource res_apache_apache -P
Вот конфиг crm.
crm configure show
node fpbx1.group.ru \
attributes standby=off
node fpbx2.group.ru \
attributes standby=off
primitive res_Filesystem_1 Filesystem \
params device="/dev/drbd/by-res/fpbx" directory="/mnt/drbd0" fstype=ext4 \
operations $id=res_Filesystem_1-operations \
op start interval=0 timeout=60 \
op stop interval=0 timeout=60 \
op monitor interval=20 timeout=40 start-delay=0 \
op notify interval=0 timeout=60 \
meta target-role=started
primitive res_IPaddr2_1 IPaddr2 \
params ip=10.10.77.77 \
operations $id=res_IPaddr2_1-operations \
op start interval=0 timeout=21 \
op stop interval=0 timeout=20 \
op monitor interval=10 timeout=20 start-delay=0 \
meta target-role=started
primitive res_IPsrcaddr_src_addr IPsrcaddr \
params ipaddress=10.10.77.77 \
operations $id=res_IPsrcaddr_src_addr-operations \
op start interval=0 timeout=20 \
op stop interval=0 timeout=20 \
op monitor interval=10 timeout=20 start-delay=0 \
meta
primitive res_apache_apache apache \
params port=80 \
operations $id=res_apache_apache-operations \
op start interval=0 timeout=40 \
op stop interval=0 timeout=60 \
op monitor interval=10 timeout=20 start-delay=0 \
meta target-role=Started
primitive res_asterisk_asterisk service:asterisk \
operations $id=res_asterisk_asterisk-operations \
op start interval=0 timeout=15 \
op stop interval=0 timeout=15 \
op monitor interval=15 timeout=15 start-delay=15 \
meta target-role=started
primitive res_drbd_1 ocf:linbit:drbd \
params drbd_resource=fpbx \
operations $id=res_drbd_1-operations \
op start interval=0 timeout=240 \
op promote interval=0 timeout=90 \
op demote interval=0 timeout=90 \
op stop interval=0 timeout=100 \
op monitor interval=10 timeout=20 start-delay=0 \
op notify interval=0 timeout=90 \
meta target-role=master
primitive res_mysql_mysql_fpbx mysql \
params enable_creation=false \
operations $id=res_mysql_mysql_fpbx-operations \
op start interval=0 timeout=120 \
op stop interval=0 timeout=120 \
op monitor interval=30 timeout=30 start-delay=0 \
op notify interval=0 timeout=90 \
meta target-role=started
ms ms_drbd_1 res_drbd_1 \
meta clone-max=2 notify=true interleave=true
property cib-bootstrap-options: \
stonith-enabled=false \
dc-version=1.1.11-97629de \
no-quorum-policy=ignore \
cluster-infrastructure=cman \
last-lrm-refresh=1517404556
rsc_defaults rsc-options: \
resource-stickiness=100