Я настраиваю кластер Red Hat с помощью кардиостимулятора и хочу добавить ресурс LVM. Я установил следующие пакеты,
ОС: Red Hat 7.4
Установленные пакеты: lvm2-cluster, кардиостимулятор, corosync, pcs, забор-агенты-все
но мой ресурс LVM имеет неисправное состояние со следующей ошибкой:
[root@node1 ~]# pcs status
Cluster name: jcluster
WARNING: no stonith devices and stonith-enabled is not false
Stack: corosync
Current DC: node2 (version 1.1.16-12.el7_4.8-94ff4df) - partition with quorum
Last updated: Sat Mar 10 11:54:41 2018
Last change: Sat Mar 10 11:17:13 2018 by hacluster via cibadmin on node1
2 nodes configured
3 resources configured (2 DISABLED)
Online: [ node1 node2 ]
Full list of resources:
Clone Set: juris-clvmd-clone [juris-clvmd]
Stopped (disabled): [ node1 node2 ]
juris-lvm (ocf::heartbeat:LVM): FAILED node1
Failed Actions:
* juris-lvm_monitor_0 on node1 'unknown error' (1): call=15, status=complete, exitreason='WARNING: jurisvg is active without the cluster tag, "pacemaker"',
last-rc-change='Fri Mar 9 20:38:50 2018', queued=0ms, exec=255ms
* juris-lvm_monitor_10000 on node1 'unknown error' (1): call=16, status=complete, exitreason='WARNING: jurisvg is active without the cluster tag, "pacemaker"',
last-rc-change='Sat Mar 10 10:24:55 2018', queued=0ms, exec=0ms
Daemon Status:
corosync: active/enabled
pacemaker: active/enabled
pcsd: active/enabled
Я использую iscsi
для совместного использования диска для обоих узлов. После того, как я представил общий диск узлам, я создал pvcreate, vgcreate, lvcreate
для нового представленного диска.
После этого я меняю новый vg и создаю кластеризованный атрибут, используя следующую команду.
[root@node1 ~]# vgchange -cy jurisvg
/dev/jurisvg/ha_lv: read failed after 0 of 4096 at 0: Input/output error
/dev/jurisvg/ha_lv: read failed after 0 of 4096 at 53687025664: Input/output error
/dev/jurisvg/ha_lv: read failed after 0 of 4096 at 53687083008: Input/output error
/dev/jurisvg/ha_lv: read failed after 0 of 4096 at 4096: Input/output error
LVM cluster daemon (clvmd) is not running. Make volume group "jurisvg" clustered anyway? [y/n]: y
Volume group "jurisvg" successfully changed
Нужна ли нам работающая служба clvmd для настройки ресурса LVM? затем для кардиостимулятора я могу найти службу /usr/sbin/clvmd, но не могу ее запустить.
[root@node1 ~]# /usr/sbin/clvmd
clvmd could not connect to cluster manager
Consult syslog for more information
Кто-нибудь знает, почему у моего ресурса LVM такая ошибка и произошел сбой?