1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

136 Commits

Author SHA1 Message Date
Michael Adam
24b9b6a986 build: also build and install ping_pong
Michael

(This used to be ctdb commit 200de8f299c8fa44d6dc696532f1a947132e7ec4)
2009-05-06 10:39:35 +10:00
Ronnie Sahlberg
0f70c47008 From Mathieu Parent <math.parent@gmail.com>
Install the pkgconfig file

(This used to be ctdb commit 7c4389cc0baa43a0ffa9fb08944c253db7885807)
2009-04-08 09:21:11 +10:00
Ronnie Sahlberg
59fd3bd564 install /etc/ctdb/notify.sh as executable.
this addresses bug 6250

(This used to be ctdb commit b8be5b06c3359d037db336dc12d38e0018349951)
2009-04-08 08:48:55 +10:00
Ronnie Sahlberg
24d84952f8 we should also install the 11.natgw eventscript if we want to be able to use it
(This used to be ctdb commit 42e2797271bc1cdb4eecf1227d4c2db668587193)
2009-03-31 20:00:00 +11:00
Ronnie Sahlberg
53d6626503 install a default /etc/ctdb/notify.sh script as example on how to use
snmptrap/email to notify that a node has changed health status

(This used to be ctdb commit ee52c0866e2b26c396fe60946159c559d47199eb)
2009-03-31 14:38:52 +11:00
Michael Adam
14dc0db232 Merge commit 'ctdb-ronnie/master'
(This used to be ctdb commit f0e3cdde7bd35bb586a46c31609398b7d4b05a26)
2009-02-28 03:09:13 +01:00
Michael Adam
839dec1b12 move common code of system_linux.c and system_aix.c into new system_common.c
Michael

(This used to be ctdb commit 124874847e5e03ce2a44bddfe778f01dfb0a7a03)
2009-02-28 03:08:31 +01:00
Ronnie Sahlberg
a590999f4c From Sumit Bose <sbose@redhat.com>
Fix to the makefile dependencies for smnotify so that make -j works

(This used to be ctdb commit ef9dc810c4309e8eba18d015c73c1b5d0760a4e8)
2009-02-25 09:13:16 +11:00
Michael Adam
d51a6313af Merge commit 'ctdb-ronnie/master'
(This used to be ctdb commit 7412c6706c2d8ec668d0a6a50471db369f3dbf2b)
2009-02-19 23:51:23 +01:00
Ronnie Sahlberg
5c7570b103 Merge branch 'martins'
(This used to be ctdb commit fe4eea45c6b5702a794424037c3f2ab4241d5e5e)
2009-02-18 13:10:03 +11:00
Michael Adam
82b8bf4179 make: add a "showlayout" target for diagnostics
Michael

(This used to be ctdb commit 79b8c87338a2d40464e87e501daae403a2f14427)
2009-02-04 00:22:01 +01:00
Mathieu PARENT
f0d585217e build: Make log-directory configurable indepently of VARDIR
This adds a new configure option "--with-logdir".
logdir defaults to "${localstatedir}/log" .
It is important to have logdir configurable for debian systems,
where localstatedir is set to "/var/lib" and not "/var".

Signed-off-by: Michael Adam <obnox@samba.org>

(This used to be ctdb commit b0c6854d1e886456fabdc8f1c3bd21c89311c601)
2009-02-04 00:19:22 +01:00
Michael Adam
86ee3ca5d0 Makefile: remove extra "/" in paths
Michael

(This used to be ctdb commit b74ef95004989bcfca5fc6468a6f978a196116ca)
2009-01-19 09:42:48 +01:00
Martin Schwenke
2e87ed4e9d Test binaries now go in tests/bin and ctdb_test_env now adds this
directory to $PATH if local daemons are being used.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit a497010f67d6a8e68f4d6d7e516b88d2261b1062)
2009-01-09 18:15:06 +11:00
Martin Schwenke
2764c2d7be Merge commit 'origin/master' into martins
(This used to be ctdb commit ec354d602d20700e6769deb798436d08256a49d5)
2008-12-08 08:57:46 +11:00
root
bc5f0cf9d5 fix an incorrect path
(This used to be ctdb commit aeb09b08e060be6f833d84ba88abfb168cc5f50e)
2008-12-04 15:03:40 +11:00
Ronnie Sahlberg
51ace76ea6 add a description of the recovery-process
(This used to be ctdb commit 194abb41e1a0036956a9401efcae8b14ed66c532)
2008-12-04 14:35:00 +11:00
Martin Schwenke
734f3ada52 Move tests/*.c to tests/src/*.c and adjust Makefile.in accordingly.
Move setting of $CTDB_NODES_SOCKETS to tests/scripts/run_tests and
make it only happen if $CTDB_TEST_REAL_CLUSTER is not set.  Bugfix in
function ips_are_on_nodeglob.  New/proper implementations of functions
stop_daemons and start_daemons, now called by function restart_ctdb.
In start_daemons.sh, add public addresses file generation/usage, use
new option --nopublicipcheck to ctdbd to avoid crazy behaviour and
kill ctdbd more carefully to avoid killing real daemons on a real
cluster - this should be able to coexist on a node of a real cluster.
start_daemons.sh is temporarily incompatible with start_daemons
function, but expecting to replace that script with function calls
very soon anyway...

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 4c54772c5c2fa7d2a25963379b5b96caf0c2521c)
2008-11-21 19:01:48 +11:00
Ronnie Sahlberg
a9977269f0 install the new multipath monitoring event script
(This used to be ctdb commit 3b8d49bf58f4145cdca08565f06cd43fd36991e1)
2008-10-15 16:29:09 +11:00
Ronnie Sahlberg
3902855275 change ip route add to route add -net since this works more reliably
update the makefile and rpm to install 99.routing

(This used to be ctdb commit c0b3bd8a3fa580dca5afa97c8012fccb25231373)
2008-10-15 01:49:19 +11:00
Ronnie Sahlberg
41d19e650c Revert "from Mathieu Parent <math.parent@gmail.com>"
This reverts commit dc9cd4779db4a89697731e4cf415be51067a07c1.

Conflicts:

(This used to be ctdb commit d13da2e8fe2fab619540525d98a5502a23ab7d20)
2008-10-15 01:08:29 +11:00
Ronnie Sahlberg
e5a3a73e64 from Mathieu Parent <math.parent@gmail.com>
Hi,

I have attached a patch necessary as debian log dir (/var/log) is not
a subdir of VARDIR (/var/lib on rpm systems, /var/lib/ctdb on debian).
As I don't know much about autotools and friends, this patch may be
hacky.

This is part of the process to minimize diff between distributions.

(This used to be ctdb commit dc9cd4779db4a89697731e4cf415be51067a07c1)
2008-10-13 08:27:33 +11:00
Andrew Tridgell
bc1aed395c added a new persistent transaction test program
(This used to be ctdb commit d5dcb46e182466e4b51c106f2491178c23babd8d)
2008-07-30 19:55:54 +10:00
Martin Schwenke
724e64b337 Update Makefile.in for new version of onnode.
(This used to be ctdb commit c47acc0eb2e1275a6c6fc05829bd1131d999f8fd)
2008-07-10 15:40:43 +10:00
Ronnie Sahlberg
9ab368e3b2 install the readme in /usr/share/doc/ctdb/ instead of under /etc
(This used to be ctdb commit becce6a9a759730d0c675a56516bb0a32a54c9f3)
2008-07-09 11:08:44 +10:00
Ronnie Sahlberg
6bf597d061 mark /etc/ctdb/functions as a config file to keep rpmlint happy
(This used to be ctdb commit 8f6cd88e74de24af8dde2b6cabb2348c4f914b99)
2008-07-09 10:24:19 +10:00
Ronnie Sahlberg
03cbb27a79 make /etc/ctdb/functions executable and add a hashbang to it so
rpmlint wont complain

(This used to be ctdb commit 9b8179ad043a80e0e18eeba427a7b7b15690d039)
2008-06-27 09:29:38 +10:00
Ronnie Sahlberg
854a615de9 /etc/ctdb/functions should not be executable
(This used to be ctdb commit d481f0f3d11e66d259cbc84f34cb6ae27d09e42c)
2008-06-26 12:43:30 +10:00
Ronnie Sahlberg
e3770e5f9d From Mathieu PARENT <math.parent@gmail.com>
Set the correct permissions for events.d/README

(This used to be ctdb commit d8953c89adc7d11d2fecc61323b7e1456b56fcaa)
2008-02-13 08:17:53 +11:00
Ronnie Sahlberg
64b6df09a0 update ctdb version
change flags for 41.httpd

(This used to be ctdb commit 88527a4a5423014f9911fa6061632215e153eb7e)
2008-02-06 14:00:04 +11:00
Andrew Tridgell
3777346629 partial merge from ronnie
(This used to be ctdb commit fd316deb8a9e0545c8efa1bfc8ad83962b310405)
2008-01-29 11:39:06 +11:00
Ronnie Sahlberg
9055978b46 add a ctdb uptime command that prints when ctdb was started and when the
last recovery occured

(This used to be ctdb commit b86e8ccbdac044bb949c4fc2ebb27635126272a9)
2008-01-17 11:33:23 +11:00
Andrew Tridgell
b62b7fcde8 added syslog support, and use a pipe to catch logging from child processes to the ctdbd logging functions
(This used to be ctdb commit 1306b04cd01e996fd1aa1159a9521f2ff7b06165)
2008-01-16 22:03:01 +11:00
Ronnie Sahlberg
ba31feaec0 split node health monitoring and checking for connected/disconnected
nodes into two separate files.

move the monitoring of keepalives for detecting connected/disconnected 
remote nodes into ctdb_keepalive.c

(This used to be ctdb commit 23a57b20c314d5f11a433cf251eb9d9de743849a)
2008-01-15 08:42:12 +11:00
Ronnie Sahlberg
59327234ac add eventscript for http
(This used to be ctdb commit 16cba208b041c2bd8dbf801af89dcbcde486abf2)
2008-01-11 10:44:16 +11:00
Andrew Tridgell
fa77de5b34 needs to be in Makefile.in too
(This used to be ctdb commit b3dfdf28fa682a55d177564774cde3af8c260d8e)
2008-01-09 08:50:03 +11:00
Andrew Tridgell
96100fcae6 added two new ctdb commands:
ctdb vacuum   : vacuums all the databases, deleting any zero length
                 ctdb records

 ctdb repack   : repacks all the databases, resulting in a perfectly
                 packed database with no freelist entries

(This used to be ctdb commit 3532119c84ab3247051ed6ba21ba3243ae2f6bf4)
2008-01-08 17:23:27 +11:00
Andrew Tridgell
41fb8e283b add randrec to Makefile
(This used to be ctdb commit ded1f7903e8a6525ab1888e8c4f50c71fa23cc19)
2008-01-04 09:19:06 +11:00
Andrew Tridgell
d7f6b63f0a only link to -lipq if needed
(This used to be ctdb commit 7c378d881e37db0f14e07ccba19fde1f9f4f0831)
2007-10-15 14:44:06 +10:00
Andrew Tridgell
574db736f2 improved handling of systems without libipq.h
(This used to be ctdb commit cfa8ddd3ca53c0160558137cccfc7e73e46ec36c)
2007-10-15 14:37:54 +10:00
Andrew Tridgell
9570939337 disable ipmux code until we have a configure test
(This used to be ctdb commit fd83f0f3eb233f22ce9b5b4afbc4f26e3c865b3c)
2007-10-15 14:29:47 +10:00
Ronnie Sahlberg
292e9d9109 add an initial test version of an ip multiplex tool that allows us
to have one single public ip address for the entire cluster.

this ip address is attached to lo on all nodes but only the recmaster 
will respond to arp requests for this address.
the recmaster then runs an ipmux process that will pass any incoming 
packets to this ip address onto the other node sin the cluster based on 
the ip address of the client host


to use this feature one must
1, have one fixed ip address in the customers network attached 
permanently attached to an interface
2, set CTDB_PUBLI_INTERFACE=
   to specify on which interface the clients attach to the node
3, CTDB_SINGLE_PUBLI_IP=ip-address
   to specify which ipaddress should be the "single public ip address"




to test with only one single client,   attach several ip addresses to 
the client and ping the public address from the client with different -I 
options.   look in network trace to see to which node the packet is 
passed onto.

(This used to be ctdb commit 50d648c95e4e6d7c2867a034c2b550086d853320)
2007-10-08 14:05:22 +10:00
Andrew Tridgell
c60988325d added support for persistent databases in ctdbd
(This used to be ctdb commit 3115090a0d882beca9d70761130b74bb0821f201)
2007-09-21 12:24:02 +10:00
Andrew Tridgell
c572d3c226 added a diagnostics tool for ctdb
(This used to be ctdb commit 032a2238caf688656b00e06bf363182368e037e1)
2007-09-05 14:20:34 +10:00
Ronnie Sahlberg
6681da31df add an initial implementation of a service_id structure and three
controls to  register/unregister/check a server id.

a server id consists of TYPE:VNN:ID    where type is specific to the 
application.  VNN is the node where the serverid was registered and ID 
might be a node unique identifier such as a pid or similar.


Clients can register a server id for themself at the local ctdb daemon.
When a client dissappears   or when the domain socket connection for the 
client drops  then any and all server ids registered across that domain 
socket will also be automatically removed from the store.

clients can register as many server_ids as they want at the same time    
but each TYPE:VNN:ID must be globally unique.

Clients have the option of explicitely unregister a server id by using 
the UNREGISTER control.


Registration and unregistration can only be done by clients to the local 
daemon. clients can not register their server id to a remote node.


clients can check if a server id does exist on any ctdb node in the 
network by using the check control

(This used to be ctdb commit d44798feec26147c5cc05922cb2186f0ef0307be)
2007-08-24 15:53:41 +10:00
Andrew Tridgell
95f6328678 merge from volker
(This used to be ctdb commit 7007e4f2292aa96287b899d6b9e82c7b597ef58f)
2007-08-22 17:16:01 +10:00
Ronnie Sahlberg
3b9d50f3ee change the now rather small /etc/ctdb/events script into a service
specific script /etc/ctdb/events.d/00.ctdb

get rid of CTDB_EVENTS_SCRIPT and --event-script

(This used to be ctdb commit 81ccfaf838e5772d4a58eb6a70224b7b39aba9f3)
2007-08-15 15:01:31 +10:00
Ronnie Sahlberg
83dbfecad7 add a description on how the event scripts works to the README and make
sure it is installed in /etc/ctdb/events.d

(This used to be ctdb commit adec62a924af5bb023f346e705515b09dbe64f21)
2007-08-15 11:36:01 +10:00
Ronnie Sahlberg
6d5af34024 from Chris Cowan
patches to smnotify to make it compile under AIX.

On AIX, we need to specify $(POPT_OBJ) explicitely

On AIX we can not use the -C flag to rpcgen since it is not implemented

On AIX we must explicitely force an #include of rpc/rpc.h in the idl 
file since rpcgen does not automatically add it to the generated files

(This used to be ctdb commit 8c3e7ce645ec829bc465302831cc6b23452525d6)
2007-08-15 07:59:01 +10:00
Ronnie Sahlberg
c1bfda5772 add a tree insert function that takes a callback fucntion to populate
the data of the tree.
this callback makes it more convenient to manage cases where one might 
want to insert multiple entries into the tree with the same key

rename the tree->tree pointer to tree->root  since this is supposed to 
point to the root of the tree

add a small test utility

(This used to be ctdb commit f6313bed9c53e0d1c36c9e08ac707e88e2a4fcd5)
2007-08-08 11:21:18 +10:00