Crm: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
David (Diskussion | Beiträge) |
David (Diskussion | Beiträge) |
||
Zeile 94: | Zeile 94: | ||
==rctest== | ==rctest== | ||
+ | * testet die resource auf beiden seiten | ||
parallax ssh muss installiern sein | parallax ssh muss installiern sein | ||
+ | |||
https://github.com/krig/parallax | https://github.com/krig/parallax | ||
+ | |||
+ | <source lang=bash> | ||
+ | rsctest virtual-ip-2 | ||
+ | Probing resources .Warning: could not find an executable path for askpass because | ||
+ | Parallax SSH was not installed correctly. Password prompts will not | ||
+ | work. | ||
+ | testing on tic: virtual-ip-2 | ||
+ | testing on tuc: virtual-ip-2 | ||
+ | </source> |
Version vom 19. Oktober 2016, 15:03 Uhr
configure
show
Anzeigen der Konfiguration
root@worf:~# crm configure show
node 1: worf
node 2: kurn
primitive res-ip IPaddr2 \
params ip=192.168.255.100 nic=eth0 \
op monitor interval=10
primitive res-ipsec lsb:ipsec \
op monitor interval=30s
primitive res-iptables lsb:iptables \
op monitor interval=30s
primitive res-pppoe lsb:pppoe \
op monitor interval=30s
group gr-vpn-gw res-pppoe res-ip res-iptables res-ipsec \
meta target-role=Started
location cli-prefer-gr-vpn-gw gr-vpn-gw role=Started inf: worf
property cib-bootstrap-options: \
have-watchdog=false \
dc-version=1.1.14-70404b0 \
cluster-infrastructure=corosync \
cluster-name=debian \
stonith-enabled=false \
no-quorum-policy=ignore
save
Sichern der Konfiguration in eine Datei
root@worf:~# crm configure save vpn-gw.conf
load
Sichern der Konfiguration in eine Datei
root@worf:~# crm configure load update vpn-gw.conf
root@worf:~# crm configure load replace vpn-gw.conf
edit
Interaktiver Modus
root@worf:~# crm configure edit
comit
- Änderungen übernehmen
crm(live)# configure comit
INFO: apparently there is nothing to commit
INFO: try changing something first
monitor
- monitor resourcen-namen (intervall der checks in minuten):(timeout des monitor befehls)
monitor fs_res 6:10
delete
- löschen einer resource
crm(live)# configure delete <res-apache2>
INFO: hanging location:cli-prefer-res-apache2 deleted
INFO: constraint colocation:fs_drbd_colo updated
erase
- erase kann die nodes aus der Konfiguration löschen
crm(live)# configure erase nodes
node
- node hinzufügen
crm(live)# configure node 1: tic
rename
- umbenen eines cib objects
crm(live)configure# rename virtual-ip virtual-ipv4
INFO: modified colocation:fs_drbd_colo from virtual-ip to virtual-ipv4
validate_all
- überprüfen eines cib objects
crm(live)configure# validate_all virtual-ipv4
INFO: Using calculated netmask for 192.168.244.80: 255.255.248.0
rctest
- testet die resource auf beiden seiten
parallax ssh muss installiern sein
https://github.com/krig/parallax
rsctest virtual-ip-2
Probing resources .Warning: could not find an executable path for askpass because
Parallax SSH was not installed correctly. Password prompts will not
work.
testing on tic: virtual-ip-2
testing on tuc: virtual-ip-2