Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
rm /var/lib/asterisk/* -R 

Cluster CFG

No Format
pcs cluster cib asterisk_clust_cfg
No Format
pcs -f asterisk_clust_cfg resource create varlibasterisk_drbd_res ocf:linbit:drbd drbd_resource=varlibasterisk op monitor interval=60s
No Format
pcs -f asterisk_clust_cfg resource master VARLIBASTERISKClone varlibasterisk_drbd_res master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true
No Format
pcs -f asterisk_clust_cfg resource create varlibasterisk ocf:heartbeat:Filesystem device="/dev/drbd7" directory="/var/lib/asterisk" fstype="ext4"
No Format
pcs  -f asterisk_clust_cfg resource create Asterisk lsb:asterisk params binary="asterisk" canary_binary="astercany" config="/etc/asterisk/asterisk.conf" user="asterisk" group="asterisk" additional_parameters="-g -vvv" op monitor timeout="30"
No Format
pcs -f asterisk_clust_cfg resource group add ASTERISK-Group varlibasterisk Asterisk
pcs -f asterisk_clust_cfg constraint order promote VARLIBASTERISKClone then ASTERISK-Group
pcs -f asterisk_clust_cfg constraint colocation add  ASTERISK-Group with VARLIBASTERISKClone INFINITY with-rsc-role=Master
pcs -f asterisk_clust_cfg constraint location ASTERISK-Group prefers node1
No Format
pcs -f asterisk_clust_cfg constraint
No Format
pcs cluster cib-push asterisk_clust_cfg
No Format
pcs status