| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
We should never enter swap; if we do, show the memory state of the machine and the process list. This will help us diagnose what caused the condition before it's too late and the box starts OOM-killing processes.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit 627a6d67a0e9e61f8713e62695b3518c51909230)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This puts single quotes around everything and uses eval on the
command-lines that actually start ctdbd. The eval causes the single
quotes to be interpreted.
The "redhat" init style no longer uses the Red Hat daemon function.
It loses the quoting and re-splits on spaces. Instead we add an extra
line that uses the success/failure functions to keep things pretty.
Note that this means that we don't respect daemon's
$DAEMON_COREFILE_LIMIT variable but we do our own core file handling
with $CTDB_SUPPRESS_COREFILE anyway. daemon's core file handling was
probably overriding what we were doing anyway, so this can be regarded
as a bug fix.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 522fbb012524fe41a67dbe43589a282dda6bcbe2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
path
This is very useful for testing, I use such a script:
cat ~/bin/ethtool
#!/bin/sh
IFACE=$1
case "$IFACE" in
Neth2)
;;
Neth3)
;;
Neth4)
;;
Neth5)
;;
*)
exec /usr/sbin/ethtool $@
;;
esac
ip link set down $IFACE
exec /usr/sbin/ethtool $@
metze
(This used to be ctdb commit 3bab985cf615720eded4d47b4f9f37a9c28840aa)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit 829150e814a5e6c85d0f21421f46f41e81d74c53)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit a5cdf1277387f8c6292153c37fa9ceb64707d04f)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit 712ed0c4c0bff1be9e96a54b62512787a4aa6259)
|
|
|
|
|
|
|
|
|
| |
With this option set to "yes", we don't become unhealthy
as long as at least one interface is still available.
metze
(This used to be ctdb commit d054eb33c6ae92560cddb40732e5dcf622591a3c)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit 615dec051c26aac628f120e96bf12fb39fc6d28a)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit c465f63585c419ba59a6b04cbbf78ae615a7259d)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit b5ba56dea57db97d6c6ba3e7582e74fe0e3041fc)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit f9837f8b6f887d28f29aeb3eeffe8cfb423b40b4)
|
|
|
|
|
|
|
|
|
| |
With this script it's possible to generate routing tables
per public ip address.
metze
(This used to be ctdb commit ff5678fbec2daef461143acf00cef3f94d7655fc)
|
|
|
|
|
|
|
|
|
| |
Many thanks to Michael Adam <obnox@samba.org>
for the basic work.
metze
(This used to be ctdb commit ff9c641763702ae99632bbf4d0825d578440c074)
|
|
|
|
|
|
|
|
|
|
|
| |
on interfaces atomic
When two releaseip events run in parallel it's possible that the 2nd script
readds a secondary ip that was removed by the 1st script.
metze
(This used to be ctdb commit e02417b2a55c45ac2c125b1b3463c9c39e7bc07a)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit 24cd42769d8f32b90a8876a6a08a36ab23076cd1)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit 2397f13d7b5ca3847ef148187c6b179d06f6a47a)
|
|
|
|
|
|
|
|
|
| |
This is needed because the "startup" event runs after the initial recovery,
but we need to do some actions before the initial recovery.
metze
(This used to be ctdb commit e953808449c102258abb6cba6f4abf486dda3b82)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit 8171d66f0061fe23ed6dfef87ffe63bfc19596eb)
|
|
|
|
| |
(This used to be ctdb commit 085d1bea78fabf754ef6dd6d323f74a1d361e45c)
|
|
|
|
|
|
|
|
| |
configureable using --log-ringbuf-size=<num-entries>.
Add an entry in the sysconfig file to set this persistently.
(This used to be ctdb commit c79c2da69bc352f509e7fca4b9172a4b7f23c0f8)
|
|
|
|
|
|
|
|
|
|
| |
reliable way to determine if winbindd is in a useful state."
This reverts commit 7c95e56ba871a4e0cb893a5cb5d821e7ff6e6dd6.
wbinfo --ping-dc is proving too unreliable.
(This used to be ctdb commit b70021856e76df1ba407c83cfc19bf332fbfc869)
|
|
|
|
|
|
|
|
| |
This reverts commit 7b73834ba3ac197cc8a3020c111f9bb2c567e70b.
wbinfo --ping-dc is proving too unreliable.
(This used to be ctdb commit 178f429a7b6d1008d35e857b6ca1df6adb60d255)
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Merge commit 'rusty/ctdb-no-setsched'
Conflicts:
server/ctdb_vacuum.c
(This used to be ctdb commit b4365045797f520a7914afdb69ebd1a8dacfa0d9)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The do_setsched was being tested for whether to mmap tdbs: let's make it
explicit. We can also happily move the kill-child eventscript hack under
this flag.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit 2ee86cc1f311d7b7504c7b14d142b9c4f6f4b469)
|
| |
| |
| |
| |
| |
| | |
metze
(This used to be ctdb commit fc5f556d488488040303438aefecb5ae2a8e54bc)
|
| |
| |
| |
| |
| |
| |
| |
| | |
checks
metze
(This used to be ctdb commit 52e6d81f4d8a4035272d9256d01bafb8ed593027)
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
All other scripts do 'loadconfig ctdb' before any other 'loadconfig foo'
call. I think we should do the same in statd-callout.
Otherwise it's very confusing, if you have configured some Options
in /etc/sysconfig/ctdb, but /etc/ctdb/statd-callout doesn't notice
them.
metze
(This used to be ctdb commit 10d95581fb90bfdf58ec32345c4e36c27acf4f37)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when checking link status for an interface, first
check if this interface is in fact a bond device
(by the precense of a /proc/net/bonding/IFACE file)
and use that file for checking status.
Othervise assume ib* is an infiniband interface which we donnt know how
to check, or otherwise it is an ethernet interface and ethtool should
hopefully work.
(This used to be ctdb commit 8cc6c5de3d7abb0b72eaa6e769e70963b02d84cb)
|
|
|
|
|
|
|
| |
and have a link.
if not the node should become unhealthy
(This used to be ctdb commit 03b5bbaae1b53830a4cd20d3079ab8f45ffce923)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit 7b73834ba3ac197cc8a3020c111f9bb2c567e70b)
|
|
|
|
|
|
| |
to determine if winbindd is in a useful state.
(This used to be ctdb commit 7c95e56ba871a4e0cb893a5cb5d821e7ff6e6dd6)
|
|
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 9ea261f791ab919eb1ce5b37073b4f1d30694bb8)
|
|
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 4c6e68ae942c05224c5f8b683fbc2dc1adced8ee)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The functions file no longer causes a side-effect by doing a shift.
It also doesn't set a convenience variable for $1.
All eventscripts now explicitly use "$1" in their case statement, as
does the initscript. The absence of a shift means that the
takeip/releaseip events now explicitly reference $2-$4 rather than
$1-$3.
New function ctdb_standard_event_handler handles the status and
setstatus events, and exits for either of those events. It is called
via a default case in each eventscript, replacing an explicit status
case where applicable.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 3d55408cbbb3bb71670b80f3dad5639ea0be5b5b)
|
|
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit a1f37fdc5217e57d2d643d77a811afca747685e0)
|
|
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 517e9d9b188b18dffc712a8fecddb41540d27b8d)
|
|
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 5d97c07be13a8209a81dfc8f73e49371949e4dc3)
|
|
|
|
|
|
|
|
|
|
| |
Apart from lots of cleanup work, this also fixes a bug where the share
checks didn't used to cope with directory names containing spaces.
The previous commit also loaded the config incorrectly.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 3c93336ab92c2e4829ff4dc360045bfa6df21d50)
|
|
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit f1e350f9edb74cc44b6c5be4c062fd93e98ba8c4)
|
|
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit ac655b0a65b32d809d47fec9821f7f31bb2fe2a7)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the first stage of an experimental change to eventscripts.
Ronnie and I did a few hours of factorisation of 40.vsftpd and applied
many of the changes to 41.httpd. Other eventscripts were also
modified.
At this stage this is completely untested.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 364e70b763f0ccd7714d15723ad3ea4d7e2968a1)
|
|
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit 6ccb495d1110157c06596763c7e252f3182c251e)
|
|
|
|
|
|
|
|
| |
use killtcp and kill both directions of the nfs connections.
we used to kill only one direction since the other direction was unkillble
but recent kernels allow us to kill both
(This used to be ctdb commit 8001ae580bcc28d45f6026b529d7ffc247cbba34)
|
|
|
|
|
|
| |
Michael
(This used to be ctdb commit b7dc1e0720991cc65353e07cf87608acea21ba27)
|
|
|
|
|
|
|
|
|
|
|
| |
This just sleeps for twice the value of EventScriptTimeout
in the monitor action. It is not run by default, but
can be activated by setting CTDB_RUN_TIMEOUT_MONITOR
in /etc/sysconfig/ctdb .
Michael
(This used to be ctdb commit 1a3ecdee85b82bb3234a92ae6bcdeb92238eb7ee)
|
|
|
|
|
|
|
|
| |
It's much nicer for post-mortem debugging to have a body to examine.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit 058e21d96c3c02759833fd5ddfe7b43e6a5f5740)
|
|
|
|
|
|
| |
this to handle the case where all links do have a physical layer, but where all slaves have been disabled using ifdown
(This used to be ctdb commit bf50709630df000583f2b0ef0edc177c01d60eaf)
|
|
|
|
| |
(This used to be ctdb commit 9e1b99221c8f257129641f6eda2795537b7ce9de)
|
|
|
|
|
|
| |
more scary and easier to spot in the logs
(This used to be ctdb commit 0c9b0466fd87b3f1e5d53f867c863217802ac43b)
|
|
|
|
|
|
|
|
| |
time since the last recovery OR failover."
This reverts commit 3b0d44497800a16400d05a30bdaf6e6c285d4b36.
(This used to be ctdb commit cb36bbb5418290e8e5b770d2d836285b15da2a6f)
|