git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d277e29
)
ctdb: use properly configured ctdb in 10.external
author
Michael Adam
<obnox@samba.org>
Wed, 8 Jun 2016 11:22:44 +0000
(13:22 +0200)
committer
Martin Schwenke
<martins@samba.org>
Sat, 11 Jun 2016 04:20:14 +0000
(06:20 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/config/events.d/10.external
patch
|
blob
|
history
diff --git
a/ctdb/config/events.d/10.external
b/ctdb/config/events.d/10.external
index 3fcb0e105b56b43d48e7c0c81757b4111edf9695..40f4680e63cf15d8c3f0df1ceb088b3dc8dfc452 100644
(file)
--- a/
ctdb/config/events.d/10.external
+++ b/
ctdb/config/events.d/10.external
@@
-28,12
+28,12
@@
takeover_assigned_ips ()
{
ctdb_get_pnn
-
ctdb
-X ip |
+
$CTDB
-X ip |
awk -F'|' '{print $2}' |
while read ip ; do
if [ -n "$(ip_maskbits_iface $ip)" ] ; then
echo "Assigning $ip to this node ($pnn)"
-
ctdb
moveip "$ip" "$pnn"
+
$CTDB
moveip "$ip" "$pnn"
fi
done
}