-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHOWTO
26 lines (23 loc) · 989 Bytes
/
HOWTO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
How to install pyzmq in MS Windows host
* install python 2.7 from binary release
* get pip
* use pip to instal zmq: pip.exe install zmq
How to setup
* in VirtualBox host, e.g., MS Windows, launch the fence simulator
python fence_daemon.py
* in Dual-head controllers (Virtualbox Guests), saying SPA & SPB, start the cluster
* copy fence_apc_vbox and fencing_vbox.py to /usr/sbin/ in both controllers.
* create fence device for SPA & SPB:
pcs stonith create apc_vbox fence_apc_vbox pcmk_host_list="SPA" ipaddr="192.168.56.1" port=1
pcs stonith create apc_vbox2 fence_apc_vbox pcmk_host_list="SPB" ipaddr="192.168.56.1" port=2
* check fence devices if running
pcs stonith show
* fence off SPB from SPA
pcs stonith fence SPB --off
* reboot SPB from SPA
pcs stonith fence SPB
* vice versa
Misc:
* check the fence simualtor w/o Pacemaker
./fence_apc_vbox --ip=192.168.56.1 --ipport=5556 --plug=1 --action=on
./fence_apc_vbox --ip=192.168.56.1 --ipport=5556 --plug=2 --action=off