Added a pcs wrapper to serialize pcs constraint calls.

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 1 year ago
parent 88af919142
commit cc71df686b
  1. 2
      Anvil/Tools.pm
  2. 1
      tools/Makefile.am
  3. 10
      tools/anvil-pcs-wrapper

@ -1254,7 +1254,7 @@ sub _set_paths
pamscale => "/usr/bin/pamscale",
pamtopng => "/usr/bin/pamtopng",
passwd => "/usr/bin/passwd",
pcs => "/usr/sbin/pcs",
pcs => "/usr/sbin/anvil-pcs-wrapper",
perccli64 => "/opt/MegaRAID/perccli/perccli64",
pidof => "/usr/sbin/pidof",
ping => "/usr/bin/ping",

@ -28,6 +28,7 @@ dist_sbin_SCRIPTS = \
anvil-migrate-server \
anvil-network-profiler \
anvil-parse-fence-agents \
anvil-pcs-wrapper \
anvil-provision-server \
anvil-rename-server \
anvil-report-usage \

@ -0,0 +1,10 @@
#!/bin/sh -e
(
if [ "$1" != "constraint" ]; then
pcs $@
exit $?
fi
flock -e 200
pcs $@
) 200>/tmp/pcs.lock
Loading…
Cancel
Save