Crm: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=configure= ==show== Anzeigen der Konfiguration <source lang=bash> root@worf:~# crm configure show node 1: worf node 2: kurn primitive res-ip IPaddr2 \ params…“)
 
Zeile 44: Zeile 44:
 
<source lang=bash>
 
<source lang=bash>
 
root@worf:~# crm configure edit
 
root@worf:~# crm configure edit
 +
</source>
 +
 +
==comit==
 +
*Änderungen übernehmen
 +
<source lang=bash>
 +
crm(live)# configure comit
 +
INFO: apparently there is nothing to commit
 +
INFO: try changing something first
 +
</source>
 +
 +
==delete==
 +
*Änderungen übernehmen
 +
<source lang=bash>
 +
crm(live)# configure comit
 +
INFO: apparently there is nothing to commit
 +
INFO: try changing something first
 
</source>
 
</source>

Version vom 19. Oktober 2016, 13:54 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

delete

  • Änderungen übernehmen
crm(live)# configure comit
INFO: apparently there is nothing to commit
INFO: try changing something first