我正在学习如何用fence_virtualbox和[ClusterLabs] VirtualBox围栏代理隔离起搏器,但我无法让它起作用。当我尝试运行stonith_admin –-reboot <node id>时,它失败了。
目前,我的设置是:
Node ID: VM name:
orcllinux1 OL7
orcllinux2 OL7_2我设置它时使用:
pcs stonith create fence_vbox fence_virtualbox pcmk_host_map=”orcllinux1:OL7,orcllinux2:OL7_2” pcmk_host_list=”orcllinux1,orcllinux2” pcmk_host_check=static_list ipaddr=”192.168.57.1” login=”root”
但是stonith_admin –-reboot <node id>导致了这个错误:

我尝试用以下方法手动使用fence_virtualbox:
fence_virtualbox -s 192.168.57.1 -p OL7 -o=reboot它成功了。
我的巨石创建语法错了吗?如果错误的话,正确的语法是什么?
发布于 2021-02-16 03:51:25
这对我起了作用:
pcs stonith create myfence_vbox fence_vbox identity_file=/root/.ssh/id_rsa ipaddr=192.168.1.20 login=bk201 host_os=linux pcmk_host_map="node1:6051319b-6d94-4469-93ec-b918d047e849 node2:8cbc8c1c-2da0-4ae6-a902-fcc15dfa7745"
要获得每个VM的UUID列表,请运行:fence_vbox -o list -l bk201 -x -a 192.168.1.20 -k /root/.ssh/id_rsa
用stonith_admin --reboot node2从node1和node2重新启动测试。
https://unix.stackexchange.com/questions/628178
复制相似问题