samba.git
15 years agodont leak file descriptors
Ronnie Sahlberg [Fri, 19 Jun 2009 04:54:22 +0000 (14:54 +1000)]
dont leak file descriptors

(This used to be ctdb commit 268c3e4b269a92741a02280c84384178e73de10e)

15 years agoin the recovery daemon, check that the recovery master can access the recovery lock...
Ronnie Sahlberg [Fri, 19 Jun 2009 04:44:26 +0000 (14:44 +1000)]
in the recovery daemon, check that the recovery master can access the recovery lock file and verify it is not stale from a child process.
This allows us to timeout the operation if the underlying filesystem has become temporarily unresponsive without causing a new recovery.

(This used to be ctdb commit d177b08f1dc79534491f27726b05405d47e12e20)

15 years agoreduce the timeout we wait for the reclock child process to finish to 5 seconds
Ronnie Sahlberg [Fri, 19 Jun 2009 03:09:11 +0000 (13:09 +1000)]
reduce the timeout we wait for the reclock child process to finish to 5 seconds
before we log an error and abort

(This used to be ctdb commit 6d1e4321b63973c2e53c63d386e8cc0bd9605cae)

15 years agoincrease the timeout before we shutdown when ther ecovery daemon is hung
Ronnie Sahlberg [Wed, 17 Jun 2009 23:20:18 +0000 (09:20 +1000)]
increase the timeout before we shutdown when ther ecovery daemon is hung

(This used to be ctdb commit facddcacb4a961cddb117818fa38a3e97770b2fa)

15 years agorename 99.routing to 11.routing
Ronnie Sahlberg [Wed, 17 Jun 2009 23:11:46 +0000 (09:11 +1000)]
rename 99.routing to 11.routing
so it is executed before any of the service scripts

(This used to be ctdb commit 1205673499618f90f413fad9e96a88733b5ce359)

15 years agoNew tests for NFS and CIFS tickles.
Martin Schwenke [Tue, 16 Jun 2009 02:47:59 +0000 (12:47 +1000)]
New tests for NFS and CIFS tickles.

New tests/complex/ subdirectory contains 2 new tests to ensure that
NFS and CIFS connections are tracked by CTDB and that tickle resets
are sent when a node is disabled.

Changes to ctdb_test_functions.bash to support these tests.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 5d188af387a2a1d68d66f47edb7a9ca546ed357c)

15 years agoIncrease threshold in 51_ctdb_bench from 2% to 5%.
Martin Schwenke [Tue, 16 Jun 2009 02:42:29 +0000 (12:42 +1000)]
Increase threshold in 51_ctdb_bench from 2% to 5%.

The threshold for the difference in the number messages sent in either
direction around the ring of nodes was set to 2%.  Something
environmental is causing this different to sometimes be as high as 3%.
We're confident it isn't a CTDB issue so we're increasing the
threshold to 5%.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit be3e23c9fcb9c716e492af102830a4f6ad8bda7b)

15 years agoWhen we ban a node, only drop the IPs on the node being banned, not on every node
Ronnie Sahlberg [Wed, 10 Jun 2009 00:28:47 +0000 (10:28 +1000)]
When we ban a node, only drop the IPs on the node being banned, not on every node

(This used to be ctdb commit 46e8c3737e6ff54fc80de8e962e922924c27bc35)

15 years agoremove unused variable
Ronnie Sahlberg [Tue, 9 Jun 2009 00:58:46 +0000 (10:58 +1000)]
remove unused variable

(This used to be ctdb commit 2a52336ec021dfe8d56ba72726feb7b2dbd41f68)

15 years agodont require particular values for NoIPFailback and DeterministicIPs when
Ronnie Sahlberg [Tue, 9 Jun 2009 00:57:46 +0000 (10:57 +1000)]
dont require particular values for NoIPFailback and DeterministicIPs when
using ctdb moveip

(This used to be ctdb commit d350c631850377c09968d2978ef57d2bd0d50116)

15 years agoimprove ctdb moveip so that it does not always trigger a recovery.
Ronnie Sahlberg [Tue, 9 Jun 2009 00:56:50 +0000 (10:56 +1000)]
improve ctdb moveip so that it does not always trigger a recovery.

(This used to be ctdb commit 0ca28d7336463ecd2ff65620d8dbcbb496991531)

15 years agotry avoiding to cause a recovery when deleting a public ip from a node
Ronnie Sahlberg [Fri, 5 Jun 2009 07:57:14 +0000 (17:57 +1000)]
try avoiding to cause a recovery when deleting a public ip from a node

(This used to be ctdb commit 6318ea13464e2fe630084c40802d8e697c2cb999)

15 years agowhen adding an ip, try manually adding and takingover the ip instead of triggering...
Ronnie Sahlberg [Fri, 5 Jun 2009 07:00:47 +0000 (17:00 +1000)]
when adding an ip, try manually adding and takingover the ip instead of triggering a full recovery to do the same thing

(This used to be ctdb commit 4d5d22e64270cfb31be6acd71f4f97ec43df5b2c)

15 years agodont list DELETED nodes in the ctdb listnodes output
Ronnie Sahlberg [Thu, 4 Jun 2009 03:25:58 +0000 (13:25 +1000)]
dont list DELETED nodes in the ctdb listnodes output

(This used to be ctdb commit 7eb137aa4c24c69bd93b98fb3c7108e5f3288ebd)

15 years agomake it possible to run 'ctdb listnodes' also if the daemon is not running.
Ronnie Sahlberg [Thu, 4 Jun 2009 03:21:25 +0000 (13:21 +1000)]
make it possible to run 'ctdb listnodes' also if the daemon is not running.
in this case, read the nodes file directly instead of asking the local daemon for the list.

add an option -Y to provide machinereadable output to listnodes

(This used to be ctdb commit 4a55cacc4f5526abd2124460b669e633deeda408)

15 years agoFrom William Jojo <w.jojo[AT]hvcc.edu>
Ronnie Sahlberg [Wed, 3 Jun 2009 23:41:05 +0000 (09:41 +1000)]
From William Jojo <w.jojo[AT]hvcc.edu>

AIX dont have getopt.h by default.
Dont try including this file when building on AIX

(This used to be ctdb commit 06b33a826e71e1dd2f9e02ad614be55535d42045)

15 years agonew version 1.0.84
Ronnie Sahlberg [Tue, 2 Jun 2009 05:05:41 +0000 (15:05 +1000)]
new version 1.0.84

(This used to be ctdb commit af1b3de978089a9819716b33c13c941b5558cb17)

15 years agoteach ONNODE about deleted nodes
Ronnie Sahlberg [Tue, 2 Jun 2009 05:03:44 +0000 (15:03 +1000)]
teach ONNODE about deleted nodes

(This used to be ctdb commit 03d304e72a5839dc8d8d2e2312b346c21dca5774)

15 years agonew version 1.0.83
Ronnie Sahlberg [Tue, 2 Jun 2009 03:13:03 +0000 (13:13 +1000)]
new version 1.0.83

(This used to be ctdb commit f236fa289f3115b1f4eb108eb668392dc520f61a)

15 years agoidocument how to remove a node from an existing cluster using 'ctdb
Ronnie Sahlberg [Tue, 2 Jun 2009 02:43:11 +0000 (12:43 +1000)]
idocument how to remove a node from an existing cluster using 'ctdb
reloadnodes'

(This used to be ctdb commit e3d9722e332f132bd47dc41621d4e1d2b5c9c62a)

15 years agohide all DELETED nodes from the ctdb command output
Ronnie Sahlberg [Mon, 1 Jun 2009 05:43:30 +0000 (15:43 +1000)]
hide all DELETED nodes from the ctdb command output

(This used to be ctdb commit 91fdfee371d6be83af60cd38ac34afb295b9987a)

15 years agolower the loglevel when we long that we skip an evenscript because it is not executable
Ronnie Sahlberg [Mon, 1 Jun 2009 05:29:36 +0000 (15:29 +1000)]
lower the loglevel when we long that we skip an evenscript because it is not executable

(This used to be ctdb commit c265df3c7950aab51b8b6ef17040229b97345c35)

15 years agodont try to queue packets for sending to (recently) deleted nodes since these nodes...
Ronnie Sahlberg [Mon, 1 Jun 2009 04:56:19 +0000 (14:56 +1000)]
dont try to queue packets for sending to (recently) deleted nodes since these nodes do not have a queue.

(This used to be ctdb commit 1b7c88ae7643f9bcc52b1d33095f97de88fc2316)

15 years agowhen building the initial vnnmap, make sure to skip any deleted nodes
Ronnie Sahlberg [Mon, 1 Jun 2009 04:44:15 +0000 (14:44 +1000)]
when building the initial vnnmap, make sure to skip any deleted nodes

(This used to be ctdb commit 0cd66c744cd9533ce8d4c4374bcee3bf49b66dae)

15 years agouse num_nodes and the nodes array instead of walking the vnnmap
Ronnie Sahlberg [Mon, 1 Jun 2009 04:39:34 +0000 (14:39 +1000)]
use num_nodes and the nodes array instead of walking the vnnmap
when counting the number of active nodes

(This used to be ctdb commit df20cd9b05ad9ca72e32ccc42354eafc12b68c04)

15 years agoadd a new node state : DELETED.
Ronnie Sahlberg [Mon, 1 Jun 2009 04:18:34 +0000 (14:18 +1000)]
add a new node state : DELETED.

This is used to mark nodes as being DELETED internally in ctdb
so that nodes are not renumbered if / when they are removed from the nodes file.

This is used to be able to do "ctdb reloadnodes" at runtime without
causing nodes to be renumbered.
To do this, instead of deleting a node from the nodes file, just comment it out like

   1.0.0.1
   #1.0.0.2
   1.0.0.3

After removing 1.0.0.2 from the cluster,  the remaining nodes retain their
pnn's from prior to the deletion, namely 0 and 2

Any line in the nodes file that is commented out represents a DELETED pnn

(This used to be ctdb commit 6a5e4fd7fa391206b463bb4e976502f3ac5bd343)

15 years agodont remove the socket when the dameon stops. This can race if the
Ronnie Sahlberg [Fri, 29 May 2009 08:16:13 +0000 (18:16 +1000)]
dont remove the socket when the dameon stops. This can race if the
service is immediately restarted

(This used to be ctdb commit b18356764cd49d934eab901e596bb75c6e3ecdf8)

15 years agoNew attempt at TDB transaction nesting allow/disallow.
Ronnie Sahlberg [Mon, 25 May 2009 07:04:42 +0000 (17:04 +1000)]
New attempt at TDB transaction nesting allow/disallow.

Make the default be that transaction is not allowed and any attempt to create a nested transaction will fail with TDB_ERR_NESTING.

If an application can cope with transaction nesting and the implicit
semantics of tdb_transaction_commit(), it can enable transaction nesting
by using the TDB_ALLOW_NESTING flag.

(This used to be ctdb commit 3e49e41c21eb8c53084aa8cc7fd3557bdd8eb7b6)

15 years agoRevert "we only need to have transaction nesting disabled when we start the new trans...
Ronnie Sahlberg [Mon, 25 May 2009 06:55:27 +0000 (16:55 +1000)]
Revert "we only need to have transaction nesting disabled when we start the new transaction for the recovery"

This reverts commit bf8dae63d10498e6b6179bbacdd72f1ff0fc60be.

(This used to be ctdb commit 87292029cb444ffab130ff7dae47a629c2d15787)

15 years agoRevert "set the TDB_NO_NESTING flag for the tdb before we start a transaction from...
Ronnie Sahlberg [Mon, 25 May 2009 06:55:02 +0000 (16:55 +1000)]
Revert "set the TDB_NO_NESTING flag for the tdb before we start a transaction from within recovery"

This reverts commit 1b2029dbb055ff07367ebc1f307f5241320227b2.

(This used to be ctdb commit 9762a3408f10409b629637d237ec513a825a6059)

15 years agoRevert "add TDB_NO_NESTING. When this flag is set tdb will not allow any nested trans...
Ronnie Sahlberg [Mon, 25 May 2009 06:54:25 +0000 (16:54 +1000)]
Revert "add TDB_NO_NESTING. When this flag is set tdb will not allow any nested transactions and tdb_transaction_start() will implicitely _cancel() any pending transactions before starting any new ones."

This reverts commit 459e4ee135bd1cd24c15e5325906eb4ecfd550ec.

(This used to be ctdb commit f1c6f7dd47bb1081781c0a0d567a92bbbc0aa5d5)

15 years agoremove the obsolete ipmux component.
Ronnie Sahlberg [Mon, 25 May 2009 02:33:52 +0000 (12:33 +1000)]
remove the obsolete ipmux component.
this is replaced by LVS since a long time

(This used to be ctdb commit dca41ec04788922ce5f4c52d346872b3e35f8cbb)

15 years agofix the git path to the repository
Ronnie Sahlberg [Mon, 25 May 2009 02:15:13 +0000 (12:15 +1000)]
fix the git path to the repository

(This used to be ctdb commit b0c32a96f4176747ca772be664888f5c3c483b98)

15 years agoinstall the 31.clamd script as 644 by default
Ronnie Sahlberg [Mon, 25 May 2009 02:02:36 +0000 (12:02 +1000)]
install the 31.clamd script as 644 by default

(This used to be ctdb commit e57c47b75fa501223c57040eac73392b42ae549d)

15 years agoadd 31.clamd to the install and the rpm
Ronnie Sahlberg [Mon, 25 May 2009 01:46:47 +0000 (11:46 +1000)]
add 31.clamd to the install and the rpm

(This used to be ctdb commit bfc6ac07f8b7b326e75d8c9bf73051a440ee0011)

15 years agoFrom Flavio Carmo Junior <carmo.flavio@gmail.com>
Ronnie Sahlberg [Mon, 25 May 2009 02:10:29 +0000 (12:10 +1000)]
From Flavio Carmo Junior <carmo.flavio@gmail.com>

Add an eventscript to manage ClamAV

(This used to be ctdb commit bb4ef6c4d2bc3578bdf4432517e98f85ec94e3b6)

15 years agoFrom Flavio Carmo Junior <carmo.flavio@gmail.com>
Ronnie Sahlberg [Mon, 25 May 2009 02:08:50 +0000 (12:08 +1000)]
From Flavio Carmo Junior <carmo.flavio@gmail.com>
(with modifications)

Add a webpage about CLAMAV support in CTDB

(This used to be ctdb commit 5fc14f98902ae98abed35eaab3b3495226dcac38)

15 years agodocument the new support for ClamAV
Ronnie Sahlberg [Mon, 25 May 2009 01:44:27 +0000 (11:44 +1000)]
document the new support for ClamAV

(This used to be ctdb commit 39539a2d1784f04245ed7abc84c4f39e1601afa4)

15 years agofix re pattern to accept the new recovery lock times in the statistics output
Sumit Bose [Thu, 21 May 2009 11:43:41 +0000 (13:43 +0200)]
fix re pattern to accept the new recovery lock times in the statistics output

(This used to be ctdb commit ba44aae7307b4fa56f7b2da2cd9d4a7ccd0a135e)

15 years agochange the socket we use for sending grautious ARPs from AF_INET/SOCK_PACKET to AF_PA...
Ronnie Sahlberg [Thu, 21 May 2009 04:10:45 +0000 (14:10 +1000)]
change the socket we use for sending grautious ARPs from AF_INET/SOCK_PACKET to AF_PACKET/SOCK_RAW

(This used to be ctdb commit 2c4c20d7803f4449f8d463314c40d4734ec80e2f)

15 years agoWhitespace changes and using the CTDB_NO_MEMORY() macro changes to
Ronnie Sahlberg [Thu, 21 May 2009 01:49:16 +0000 (11:49 +1000)]
Whitespace changes and using the CTDB_NO_MEMORY() macro changes to
the previous patch.

(This used to be ctdb commit d623ea7c04daa6349b42d50862843c9f86115488)

15 years agoadd missing checks on so far ignored return values
Sumit Bose [Wed, 20 May 2009 10:08:13 +0000 (12:08 +0200)]
add missing checks on so far ignored return values

Most of these were found during a review by Jim Meyering <meyering@redhat.com>

(This used to be ctdb commit 3aee5ee1deb4a19be3bd3a4ce3abbe09de763344)

15 years agostructure member node_list_file is not used anywhere
Sumit Bose [Wed, 20 May 2009 10:02:27 +0000 (12:02 +0200)]
structure member node_list_file is not used anywhere

(This used to be ctdb commit 0e84ea23d1d998d4d4ac7d8a858b3d8294f056cb)

15 years agostructure member logfile is not used anywhere
Sumit Bose [Wed, 20 May 2009 09:47:34 +0000 (11:47 +0200)]
structure member logfile is not used anywhere

(This used to be ctdb commit 4f86c991812c2d0bddbe3de9a9906cf5df118cd4)

15 years agofix a configure warning while checking for netfilter.h
Sumit Bose [Wed, 20 May 2009 07:17:01 +0000 (09:17 +0200)]
fix a configure warning while checking for netfilter.h

(This used to be ctdb commit fa5afee8e9a8fba6017bc58f87bc040de7206e63)

15 years agoadded a missing dependency
Sumit Bose [Wed, 20 May 2009 06:59:00 +0000 (08:59 +0200)]
added a missing dependency

(This used to be ctdb commit 1d833163b57853b84f098dffdb3c5f50164fcc73)

15 years agoChange the loglevel of "registered tcp client for ..." to INFO
Ronnie Sahlberg [Mon, 18 May 2009 22:55:42 +0000 (08:55 +1000)]
Change the loglevel of "registered tcp client for ..." to INFO
instead of ERR

(This used to be ctdb commit 92b5580c38c23b99c1692708540983b0c0fcd6cf)

15 years agoFrom : Flavio Carmo Junior <carmo.flavio@gmail.com>
Ronnie Sahlberg [Mon, 18 May 2009 22:47:19 +0000 (08:47 +1000)]
From : Flavio Carmo Junior <carmo.flavio@gmail.com>

Add a helper function that checks whether a unix domain socket exists
and there is a daemon LISTENING to it  similar to the existing function
to check for a daemon LISTENING to a tcp/ip socket.

(This used to be ctdb commit 025a836ab3be3c078fccd8c10b10dfffbfdd94d0)

15 years agoFix http://ctdb.samba.org/download.html
Volker Lendecke [Fri, 15 May 2009 20:08:21 +0000 (22:08 +0200)]
Fix http://ctdb.samba.org/download.html

(This used to be ctdb commit 177295ba400fcaf47f026653f27a42a8ff798d36)

15 years agoRemove error messages about a non-existing /var/log/log.ctdb when running ctdb with...
Christian Ambach [Wed, 6 May 2009 17:01:58 +0000 (19:01 +0200)]
Remove error messages about a non-existing /var/log/log.ctdb when running ctdb with logging to syslog

(This used to be ctdb commit afdbf3c0df02decd823615134294abf2c8a8a5f3)

15 years agoadd additional log info to track if/why we cant switch to client mode.
Ronnie Sahlberg [Thu, 14 May 2009 08:25:00 +0000 (18:25 +1000)]
add additional log info to track if/why we cant switch to client mode.

(This used to be ctdb commit 722171fc94a36ffe9e0a5c64502b916fde0a13a4)

15 years agoTrack how long it takes to take out the recovery lock from both the main dameon and...
Ronnie Sahlberg [Thu, 14 May 2009 00:33:25 +0000 (10:33 +1000)]
Track how long it takes to take out the recovery lock from both the main dameon and also from the recovery daemon.
Log this in "ctdb statistics".

Also add a varaible "RecLockLatencyMs" that will log an error everytime it takes longer than this to access the reclock file.

(This used to be ctdb commit 042377ed803bb8f7ca9d6ea1a387427b7b8ba45a)

15 years agonew version 1.0.82
Ronnie Sahlberg [Wed, 13 May 2009 22:55:40 +0000 (08:55 +1000)]
new version 1.0.82

(This used to be ctdb commit 82ee458329968001bb03b2aec42e65f532f007b3)

15 years agouse scope host when adding the interface to loopback so we dont respond to ARPs for...
Ronnie Sahlberg [Wed, 13 May 2009 22:55:05 +0000 (08:55 +1000)]
use scope host when adding the interface to loopback so we dont respond to ARPs for this ip

(This used to be ctdb commit fcd6226a6c00cf657532aa76804bfe029df21ba6)

15 years agochange the prefix NATGW_ to CTDB_NATGW_
Ronnie Sahlberg [Wed, 13 May 2009 22:12:48 +0000 (08:12 +1000)]
change the prefix NATGW_ to CTDB_NATGW_

(This used to be ctdb commit b7ed7fd4a5fbd344d41caa1afa100b1f24506173)

15 years agoping pong: fix logic for mmap reads vs. preads
Michael Adam [Tue, 12 May 2009 05:56:23 +0000 (07:56 +0200)]
ping pong: fix logic for mmap reads vs. preads

Michael

(This used to be ctdb commit 0c88fa41bc3c629052bc137ed30c473ed10522fd)

15 years agomaketarball.sh: add GPL license header
Michael Adam [Tue, 12 May 2009 20:59:35 +0000 (22:59 +0200)]
maketarball.sh: add GPL license header

Michael

(This used to be ctdb commit 13270a011016bf20bbf721f6d083b2f113fdbc79)

15 years agomakerpms.sh: add GPL license header
Michael Adam [Tue, 12 May 2009 20:59:08 +0000 (22:59 +0200)]
makerpms.sh: add GPL license header

Michael

(This used to be ctdb commit 7498e176817719eadd91201bbd0d9ceb91eefdae)

15 years agoRemove generated binary files.
Michael Adam [Thu, 26 Mar 2009 18:03:03 +0000 (19:03 +0100)]
Remove generated binary files.

Noted by Mathieu Parent <math.parent@gmail.com>

Michael

(This used to be ctdb commit b321dfd1d23492169ac25ed901d49d7c69ad5340)

15 years agoremove NATGW_PRIVATE_IFACE from the documentation since we do not need
Ronnie Sahlberg [Tue, 12 May 2009 08:21:26 +0000 (18:21 +1000)]
remove NATGW_PRIVATE_IFACE from the documentation since we do not need
it any more.

(This used to be ctdb commit c967b234f59e5998bc8f2250062f4b0d1f39d820)

15 years agoassign the natgw address to loopback and not the private network so that natgw will...
Ronnie Sahlberg [Tue, 12 May 2009 08:42:13 +0000 (18:42 +1000)]
assign the natgw address to loopback and not the private network so that natgw will still work even when public and private networks are one and the same

(This used to be ctdb commit 2bd796b8a098074502fe20e3ab69098b2109c133)

15 years agoadd extra debug statements to the log to make it easier to see when a recovery dameon...
Ronnie Sahlberg [Tue, 12 May 2009 08:39:34 +0000 (18:39 +1000)]
add extra debug statements to the log to make it easier to see when a recovery dameon has hung due to the underlying filesystem hanging.

(This used to be ctdb commit 5b0067a4e335cbbf6e606646e612d4bfcfdb7441)

15 years agocheck that a node is banned before trying to unban it.
Ronnie Sahlberg [Tue, 12 May 2009 08:32:41 +0000 (18:32 +1000)]
check that a node is banned before trying to unban it.

(This used to be ctdb commit 4467b5f88d749d455854512f60a5d313cafa828b)

15 years agoIn 51_ctdb_bench.sh now allows a 2% difference between positive and
Martin Schwenke [Fri, 3 Apr 2009 01:54:26 +0000 (12:54 +1100)]
In 51_ctdb_bench.sh now allows a 2% difference between positive and
negative.  ctdb_bench.c checks to ensure the timer has advanced from 0
before dividing.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 723413f246399b25166462d2018237920515655f)

15 years agoAvoid floating point divide by 0 in ctdb_fetch.c's bench_fetch().
Martin Schwenke [Tue, 21 Apr 2009 06:50:37 +0000 (16:50 +1000)]
Avoid floating point divide by 0 in ctdb_fetch.c's bench_fetch().

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 3c67e164eb92591f8763883430490805c1dfa9ed)

15 years agoBug fixes for tests: simple/12_ctdb_getdebug.sh and scripts/test_wrap.
Martin Schwenke [Fri, 1 May 2009 07:40:45 +0000 (17:40 +1000)]
Bug fixes for tests: simple/12_ctdb_getdebug.sh and scripts/test_wrap.

simple/12_ctdb_getdebug.sh now recognises output with multi-digit node
numbers.

Sharing the ctdb directory via NFS and testing on a real cluster by
setting CTDB_TEST_REAL_CLUSTER didn't work by default.  The fix is to
hack scripts/test_wrap so that it tries to find a valid bin directory
next to the directory containing it is in.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit ea2ca769e1d1068fbbad843750b19acfd87360e0)

15 years agoFrom: Sumit Bose <sbose@redhat.com>
Ronnie Sahlberg [Mon, 11 May 2009 22:59:49 +0000 (08:59 +1000)]
From: Sumit Bose <sbose@redhat.com>

 fix handling of AC_INIT

(This used to be ctdb commit 1c31fea7432b870169fb839c1fbba5a33dec8e8a)

15 years agoFix lvsmaster and natgwlist nodespecs.
Martin Schwenke [Mon, 11 May 2009 04:43:17 +0000 (14:43 +1000)]
Fix lvsmaster and natgwlist nodespecs.

They both need to use a -Y option to ctdb and for natgwlist we only
want the 1st line.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit e781ff61e17d733349021bb036514f823c7cbfbb)

15 years agoUpdated onnode docs to reflect recent changes.
Martin Schwenke [Mon, 11 May 2009 04:14:11 +0000 (14:14 +1000)]
Updated onnode docs to reflect recent changes.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit cdf092d69a710310d82d1d67baa0ffb19f676927)

15 years agoNew lvs/lvsmaster and natgw/natgwlist nodespecs for onnode.
Martin Schwenke [Mon, 11 May 2009 03:39:31 +0000 (13:39 +1000)]
New lvs/lvsmaster and natgw/natgwlist nodespecs for onnode.

Some code re-factoring to implement this and to make it easy to
implement new ones.  New simpler implementation of echo_nth() no
longer uses deleted get_nth() function.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 29559f5dd099bec210e98909c9b2e048461b7c81)

15 years agoNew option "-o <prefix>" saves stdout from each node to file <prefix>.<ip>.
Martin Schwenke [Wed, 6 May 2009 03:17:34 +0000 (13:17 +1000)]
New option "-o <prefix>" saves stdout from each node to file <prefix>.<ip>.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit a0f5148ac749758e2dfbd6099e829c5bf1d900e6)

15 years agoUse ctdb_fetch_lock rather than ctdb_call.
Martin Schwenke [Tue, 5 May 2009 06:02:30 +0000 (16:02 +1000)]
Use ctdb_fetch_lock rather than ctdb_call.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 5f3d2e29a446972ac244e20a08e48f4c2f4ffef4)

15 years ago41.httpd event script workaround for RHEL5-ism.
Martin Schwenke [Mon, 11 May 2009 04:50:28 +0000 (14:50 +1000)]
41.httpd event script workaround for RHEL5-ism.

RHEL5 can SIGKILL httpd when stopping it, causing it to leak
semaphores.  This means that eventually a node runs out of semaphores
and httpd can't be started.  So, before we attempt to start httpd we
clean up any semaphores owned by apache.  We also try to restart httpd
in the monitor event if httpd has gone away.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 2d3fbbbb63f443686f9fec42c0bc2058d115806e)

15 years agoAdd a -Y machinereadable flag to "lvsmaster"
Ronnie Sahlberg [Mon, 11 May 2009 04:44:59 +0000 (14:44 +1000)]
Add a -Y machinereadable flag to "lvsmaster"

(This used to be ctdb commit bbae698656d5da9a4a5b0fbfc3003844f246d54b)

15 years agoin the "lvsmaster" command, return -1 if there is no lvsmaster
Ronnie Sahlberg [Mon, 11 May 2009 03:56:28 +0000 (13:56 +1000)]
in the "lvsmaster" command, return -1 if there is no lvsmaster

(This used to be ctdb commit ce6afbdef36e3c386b75709f73ef55efe0bd1987)

15 years ago new version 1.0.81
Ronnie Sahlberg [Fri, 8 May 2009 07:29:57 +0000 (17:29 +1000)]
 new version 1.0.81

(This used to be ctdb commit a8019f20cd42a1965410fef5bac2c5b73657b38e)

15 years agoFrom: Sumit Bose <sbose@redhat.com>
Ronnie Sahlberg [Wed, 6 May 2009 10:32:39 +0000 (20:32 +1000)]
From: Sumit Bose <sbose@redhat.com>

fix handling of AC_INIT and read version from ctdb.spec

(This used to be ctdb commit f7f64f92e26a0757af210d33288162eefcd07d79)

15 years agoping_pong: add GPL comment header with Tridge's copyright
Michael Adam [Tue, 5 May 2009 11:16:38 +0000 (13:16 +0200)]
ping_pong: add GPL comment header with Tridge's copyright

Michael

(This used to be ctdb commit a87ef6a9206820d5110a7117240f743af010ff19)

15 years agoping_pong: get pread/pwrite prototypes from unistd.h
Michael Adam [Wed, 29 Apr 2009 22:35:55 +0000 (00:35 +0200)]
ping_pong: get pread/pwrite prototypes from unistd.h

by defining _XOPEN_SOURCE to be 500 before including headers

Michael

(This used to be ctdb commit 96c79bddf7895e57ccf90f0d250bd08b7c4daf40)

15 years agoping_pong: reduce a couple of prototype warnings
Michael Adam [Wed, 29 Apr 2009 16:03:03 +0000 (18:03 +0200)]
ping_pong: reduce a couple of prototype warnings

Michael

(This used to be ctdb commit fce851621fe2099c9692acfbfaade24c3d69727a)

15 years agopackaging: also package ping_pong
Michael Adam [Wed, 29 Apr 2009 15:58:17 +0000 (17:58 +0200)]
packaging: also package ping_pong

Michael

(This used to be ctdb commit 300e84f7023e9194b313e96db943e4050bd64e68)

15 years agobuild: also build and install ping_pong
Michael Adam [Wed, 29 Apr 2009 15:57:43 +0000 (17:57 +0200)]
build: also build and install ping_pong

Michael

(This used to be ctdb commit 200de8f299c8fa44d6dc696532f1a947132e7ec4)

15 years agoadd tridge's ping_pong.c to the utils folder
Michael Adam [Wed, 29 Apr 2009 15:50:38 +0000 (17:50 +0200)]
add tridge's ping_pong.c to the utils folder

Michael

(This used to be ctdb commit fe59ecb697fb4686ad8ea2fe4ec1cc7b4629e74f)

15 years agoFrom Sumit Bose <sbose@redhat.com>
Ronnie Sahlberg [Wed, 6 May 2009 00:29:07 +0000 (10:29 +1000)]
From Sumit Bose <sbose@redhat.com>

add more 64bit plattforms to configure.ac and preserve cli settings

(This used to be ctdb commit 8a86f65826b58c2ee3f07f221a4fc82193beec81)

15 years agoadded link to michaels sambaxp papers
Andrew Tridgell [Tue, 5 May 2009 06:06:58 +0000 (16:06 +1000)]
added link to michaels sambaxp papers

(This used to be ctdb commit 48c011188c624f10c9a754d4ead27db558088fd4)

15 years agoallow pages in subdirs
Andrew Tridgell [Tue, 5 May 2009 06:49:05 +0000 (16:49 +1000)]
allow pages in subdirs

(This used to be ctdb commit 68da42c4ee92fcdfe65baf04c1a2d6446583858b)

15 years agomore subdir html support
Andrew Tridgell [Tue, 5 May 2009 06:52:24 +0000 (16:52 +1000)]
more subdir html support

(This used to be ctdb commit 9ce9a500543de4f0aef5e8c28cda9bbc3c9d1b77)

15 years agouse less intrusive smbstatus call in periodic connections cleanup
Andrew Tridgell [Tue, 5 May 2009 22:18:21 +0000 (08:18 +1000)]
use less intrusive smbstatus call in periodic connections cleanup

(This used to be ctdb commit a152fdc79e3360049aee66c3e628237a91df181f)

15 years agochange the talloc hierarchy for the main transaction_start context and the individual...
root [Tue, 5 May 2009 06:33:21 +0000 (16:33 +1000)]
change the talloc hierarchy for the main transaction_start context and the individual transaction_all handles

(This used to be ctdb commit 919b29850671b59bcf748aec25658ea09d8b4f1c)

15 years agofixed a problem with clients disconnecting during a traverse
root [Tue, 5 May 2009 21:32:25 +0000 (07:32 +1000)]
fixed a problem with clients disconnecting during a traverse

When a client (such as smbstatus) is killed, it may have outstanding
traverse children on remote nodes. We need to catch the client
disconnect in ctdbd and send a control to all nodes telling them to
kill those outstanding traverse children.

(This used to be ctdb commit f2fb2df4619a14f7f6c11f9132ee7d793028042c)

15 years agonew version 1.0.80
root [Fri, 1 May 2009 02:37:52 +0000 (12:37 +1000)]
new version 1.0.80

(This used to be ctdb commit bf1b76955db6ba00ec64686b53084268573ba6a0)

15 years agowhen tracking the ctdb statistics, only decrement num_clients and pending_calls...
root [Fri, 1 May 2009 02:30:26 +0000 (12:30 +1000)]
when tracking the ctdb statistics,    only decrement num_clients and pending_calls IFF the counter is >0

Otherwise there is the chance that we will reset the statistics after the counter has been incremented (client connects) to zero   and when the client disconnects we decrement it to a negative number.

this is a pure cosmetic patch with no operational impact to ctdb

(This used to be ctdb commit 72f1c696ee77899f7973878f2568a60d199d4fea)

15 years agoAdd a new variable VerifyRecoveryLock which can be used to disable the test that...
root [Thu, 30 Apr 2009 15:18:27 +0000 (01:18 +1000)]
Add a new variable VerifyRecoveryLock which can be used to disable the test that the recovery daemon holds the lock properly when performing a recovery

(This used to be ctdb commit 329df9e47e6ca8ab5143985a999e68f37c6d88a5)

15 years agodont unconditionally kill/restart ctdb when given "service ctdb start" only start...
Ronnie Sahlberg [Thu, 30 Apr 2009 07:38:30 +0000 (17:38 +1000)]
dont unconditionally kill/restart ctdb when given "service ctdb start"   only start ctdb if it is not already running,   and print an error message othervise

(This used to be ctdb commit 94343309992929a592348c936e09a7b4f8b512c1)

15 years agowe only need to have transaction nesting disabled when we start the new transaction...
Ronnie Sahlberg [Sat, 25 Apr 2009 22:47:38 +0000 (08:47 +1000)]
we only need to have transaction nesting disabled when we start the new transaction for the recovery

(This used to be ctdb commit bf8dae63d10498e6b6179bbacdd72f1ff0fc60be)

15 years agoset the TDB_NO_NESTING flag for the tdb before we start a transaction from within...
Ronnie Sahlberg [Sat, 25 Apr 2009 22:42:54 +0000 (08:42 +1000)]
set the TDB_NO_NESTING flag for the tdb before we start a transaction from within recovery

(This used to be ctdb commit 1b2029dbb055ff07367ebc1f307f5241320227b2)

15 years agoadd TDB_NO_NESTING. When this flag is set tdb will not allow any nested transactions...
Ronnie Sahlberg [Sat, 25 Apr 2009 22:38:37 +0000 (08:38 +1000)]
add TDB_NO_NESTING. When this flag is set tdb will not allow any nested transactions and tdb_transaction_start() will implicitely _cancel() any pending transactions before starting any new ones.

(This used to be ctdb commit 459e4ee135bd1cd24c15e5325906eb4ecfd550ec)

15 years agoadd a tuneable RecoveryDropAllIPs so it is possible to control after how long a...
Ronnie Sahlberg [Fri, 24 Apr 2009 08:23:48 +0000 (18:23 +1000)]
add a tuneable RecoveryDropAllIPs  so it is possible to control after how long a node that has been stuck in recovery will wait until it will yield all public addresses.

this now defaults to 60 seconds

This is useful if a split brain occurs due to network partitioning since it will make sure that the "other half" of the cluster that does not contain the recovery master will eventually release all ips and thus avoiding a duplicate ip situation for the public addresses

(This used to be ctdb commit 70f21428c9eec96bcc787be191e7478ad68956dc)

15 years agoincrease the loglevel for the message we print when we automatically release all...
Ronnie Sahlberg [Fri, 24 Apr 2009 08:09:51 +0000 (18:09 +1000)]
increase the loglevel for the message we print when we automatically release all ips when we have been in recovery for too long

(This used to be ctdb commit 7af060ded5113a49832f6a08a942523a202586b3)

15 years agotweak some timeouts so that we do trigger a banning even if the control hangs/timesout
Ronnie Sahlberg [Fri, 24 Apr 2009 04:41:21 +0000 (14:41 +1000)]
tweak some timeouts so that we do trigger a banning even if the control hangs/timesout

(This used to be ctdb commit 1860a365e6ba8212e15c33016c80a2adcf8d10f4)