Pacemaker-Fenceagents

Aus xinux.net
Zur Navigation springen Zur Suche springen

Installation der benötigten Pakete

  • apt install autotools-dev python-suds python-pycurl python-pexpect libxml2-utils debhelper python3-pexpect git python-requests

Klonen der fence-agents

Erstellen der Agents

  • ./autogen.sh
  • ./configure --with-agents=pve
  • make

Installieren der Agents

  • make install

Verlinken

  • ln -s /usr/sbin/fence_pve /usr/lib/stonith/plugins/external/fence_pve

Beispiel

Tests

  • fence_pve --ip=10.83.75.13 --nodename=track --username=root@pam --password=sysadm --plug=5021 --action=status
  • fence_pve --ip=10.83.75.12 --nodename=trick --username=root@pam --password=sysadm --plug=5022 --action=status

Einrichten

primitive brunt-fence stonith:fence_pve \
        params delay=15 ipaddr=10.83.75.13 login="root@pam" node_name=track passwd=sysadm pcmk_reboot_action=reboot port=5022 vmtype=proxmox \
        op monitor interval=60s
primitive morn-fence stonith:fence_pve \
        params delay=15 ipaddr=10.83.75.12 login="root@pam" node_name=trick passwd=sysadm pcmk_reboot_action=reboot port=5021 vmtype=proxmox \
        op monitor interval=60s

Links