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

1754 Commits

Author SHA1 Message Date
Andrew Tridgell
bf32a8e6c3 cleanup on SIGINT
(This used to be ctdb commit 008533d971aec9c28c6e4750ef4677dd943633ff)
2008-07-30 13:21:02 +10:00
Andrew Tridgell
b7e9d0dccf - cleanup persistent db at start
- catch SIGINT and kill daemons

(This used to be ctdb commit d3f5d75665a78ae0081fda57e58384b27a6ae396)
2008-07-30 13:20:47 +10:00
Andrew Tridgell
9c10147fc1 - show pids during test
- don't use first_time, as it is not safe for multiple 
  clients on a node

(This used to be ctdb commit 22f737be0e70fc043affaa4f953f60d852b7999a)
2008-07-30 13:20:24 +10:00
Ronnie Sahlberg
e8c1785f2b new version 1.0.51
(This used to be ctdb commit ded1a974cdd86b436c6e5cba27069d1a3796dbe9)
2008-07-28 17:11:15 +10:00
Ronnie Sahlberg
78beb27966 From Alexander Saupp.
If we use vlan tagging and bonding we must strip the vlan part off the name
so we can check the main bonde device for status.

I.e. check bond0  instead of bond0.<VLANTAG>

(This used to be ctdb commit 795c190b004d404b84dda053593139ed51d345e5)
2008-07-28 17:07:44 +10:00
Andrew Tridgell
71f0641dda run the testparm commands in 50.samba in the background, only running
in the foreground if something fails

(This used to be ctdb commit b1fed105ad780e89a128a611ef0bd659818eeebf)
2008-07-23 15:36:23 +10:00
Andrew Tridgell
4eac51341c allow for probing of directories without raising an error
(This used to be ctdb commit 8fed021d11160b137f4140ea02947347250e2959)
2008-07-23 15:35:46 +10:00
Andrew Tridgell
79793708a4 fixed buffering in ctdb logging code to handle multiple lines
correctly

(This used to be ctdb commit e8ef9891aa31c374921b23cc74e1eda1f8218bf0)
2008-07-23 15:25:52 +10:00
Ronnie Sahlberg
1bfcca524d From Michael Adams,
change one element from private to private_data

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>

(This used to be ctdb commit 0de79352c9b36c118e36905f08ebbe38ecbb957e)
2008-07-22 09:07:42 +10:00
Ronnie Sahlberg
3637add42b new version 1.0.50
(This used to be ctdb commit b08a988fbdad0da850c9b79791c1a8970555147f)
2008-07-18 13:49:05 +10:00
Ronnie Sahlberg
dbb7a1278e Merge git://git.samba.org/tridge/ctdb
(This used to be ctdb commit eca73bcaa33f88c683b79d57d85b590659018ad8)
2008-07-18 13:42:39 +10:00
Andrew Tridgell
87e19f1f9d fixed a bug where we would look for a signal past the end of the
signal arrays

This could cause the events code to get into a loop chewing CPU

(This used to be ctdb commit e24152fbd06ba4c2b6cfd473751c7f00a676b9ae)
2008-07-18 13:46:01 +10:00
Ronnie Sahlberg
d0707c98c0 if a new node enters the cluster, that node will already be frozen at start
but the rest of the nodes are not frozen.

at this stage an election is called by the new node.

Since in this case the nodes are not froze, we can not modify the recmaster
of the nodes so it is expected that this control would fail.

Add a boolean to send_election_request() to make it not
try to set the recmaster locally for the case where we are in an election phase
while not frozen.

(This used to be ctdb commit c5035657606283d2e35bea40992505e84ca8e7be)
2008-07-18 12:07:25 +10:00
Ronnie Sahlberg
66919db3d7 We can not assume that just because we could complete a TCP handshake
to the remote node  that
1, we are in fact talking to a CTDB daemon
2, that IF we are talking to a ctdb daemon, it is operational.

So, we can not blindly mark the node as CONNECTED just because
we can open a TCP connection.

Instead we rely on "If we did get a KEEPALIVE from the remote node,
is is connected"

(This used to be ctdb commit 60e2cb175c449ae65793a3e1ffb60cf030a3a0d5)
2008-07-18 10:59:34 +10:00
Ronnie Sahlberg
6d5f96c249 lower a debug statement
(This used to be ctdb commit 3d58f9b524a40c7b43a2a855212db090e9becefa)
2008-07-18 10:41:18 +10:00
Ronnie Sahlberg
8b520bcb5f lower a debug message
(This used to be ctdb commit 554dcf16d37c8b9e4704df11d21fb272f30f5cec)
2008-07-18 10:38:51 +10:00
Ronnie Sahlberg
68d01c59b2 Allow the fix-to-make-persistent-writes-safer work with unpatched samba versions
(This used to be ctdb commit 52716d26eb84104d65828bed38e69f214a5fa824)
2008-07-17 18:53:54 +10:00
Ronnie Sahlberg
90ff67dc74 Only decrement the "number of persistent writes in flight" If/when
it is >0    or we will break if used against an unpatched samba server

(This used to be ctdb commit 52a38487f981fd5981c02a7a063ad2c598591c10)
2008-07-17 18:47:20 +10:00
Andrew Tridgell
7fea1f76cf Merge commit 'ronnie/master'
(This used to be ctdb commit af38c8d4cc03e1b5a314ea2338346c5f8c80aa95)
2008-07-17 18:45:15 +10:00
Ronnie Sahlberg
b9ba443da3 new version 1.0.48
(This used to be ctdb commit ccf9334bd20b1398623dd649987aa15119dac14e)
2008-07-17 13:56:17 +10:00
Ronnie Sahlberg
6eb4e46fe1 Add two new controls to start and cancel a persistent update.
This allows ctdb to automatically start a new full blown recovery
if a client has started updating the local tdb for a persistent database
but is kill -9ed before it has ensured the update is distributed clusterwide.

(This used to be ctdb commit 1ffccb3e0b3b5bd376c5302304029af393709518)
2008-07-17 13:50:55 +10:00
Ronnie Sahlberg
0964c59dc6 Do not allow "ctdb eventscript" to start new eventscripts while we are in recovery mode
(This used to be ctdb commit 8140825e1d06053a900fd0adf0a150622c0fc146)
2008-07-17 09:04:15 +10:00
Andrew Tridgell
6ec4d4e8c0 Merge commit 'ronnie/master'
(This used to be ctdb commit 05918bcb58acd2add7e13c028de09641a7519cd1)
2008-07-16 16:58:16 +10:00
Ronnie Sahlberg
f85ad25aee Merge git://git.samba.org/tridge/ctdb
(This used to be ctdb commit d7e9c0010a40f9335d28cf108e8f5cf411970a03)
2008-07-16 16:51:37 +10:00
Andrew Tridgell
48d2851fe9 Merge commit 'ronnie/master'
(This used to be ctdb commit 9478852f2b4f530994b2211fff45413d1da82dd9)
2008-07-16 12:46:43 +10:00
Ronnie Sahlberg
e4e298e10e change how we filter out "empty" records in the traversecode
so that we output the same list of keys in "catdb" as "tdbdump".

when traversing a persistent database, as an optimization, only
traverse on the local node (and thus skip checking if we are
dmaster or not). If the local node is not part of the vnnmap and thus
would not be guaranteed to have an uptodate persistent database
we instead traverse it on one of the other nodes that are in the vnnmap.

(This used to be ctdb commit 2b0bd6c302545f2533a7a67dfc6bb5f9f60799f7)
2008-07-16 12:23:18 +10:00
Andrew Tridgell
d7da19a608 fixed postun script to prevent corrupting RPM database
(This used to be ctdb commit 9043913a54fe707083697f0587c6ffde86ca5a69)
2008-07-16 12:23:05 +10:00
Ronnie Sahlberg
9a9b506d23 Add two new options
CTDB_SAMBA_SKIP_CONF_CHECK and CTDB_SAMBA_CHECK_PORTS.
The first is used to tell ctdb to no longer monitoring if the smb.conf file is consistent or not.

The second specifies which ports to check that smb is listening on
instead of using testparm to figure this out.

Since the net, testparm and smbstatus may block indefinitely in some configurations
we must have a way to configure ctdb to NOT use any of these three commands
in the scripts. These commands should thus never be used in scripts.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>

(This used to be ctdb commit 2fe52c7979ecd28250ec4ac195d3c3999916e573)
2008-07-15 11:03:35 +10:00
Ronnie Sahlberg
0934f40c2a remove a debugging echo statement
(This used to be ctdb commit 495a6293c284a1e74b9c5e0c112e6ed5feead107)
2008-07-14 11:22:41 +10:00
Andrew Tridgell
3fa8aaa4e2 fixed up exit status for onnode
(This used to be ctdb commit c26afe26cc5c1f9cd9eef74166b5fc39dde591d3)
2008-07-14 09:19:22 +10:00
Andrew Tridgell
3bb727aaaf Merge commit 'ronnie/master'
(This used to be ctdb commit f8c5f6ff1cae747aae917c454b49dc5db227e140)
2008-07-11 19:21:39 +10:00
Ronnie Sahlberg
d16bc2f655 new version 1.0.47
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>

(This used to be ctdb commit 1de62d1ad71fa784d5e93f76da8f872cad9b9f42)
2008-07-11 11:48:41 +10:00
Ronnie Sahlberg
66222af5e4 Fix a very subtle race where we could get a double free of a talloced
memory if ctdb_run_eventscript() would be called
during processing of ctdb_event_script_timeout() for
user unvoked eventscripts. (eventsccripts invoked by "ctdb eventscript ...")

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>

(This used to be ctdb commit 15bc66ae801b0c69a65a7a2acf5df151e76edc2a)
2008-07-11 10:33:46 +10:00
Martin Schwenke
80c95f1820 Signed-off-by: Martin Schwenke <martin@meltin.net>
Update packaging/RPM/ctdb.spec to reflect onnode changes.

(This used to be ctdb commit f4a6dd98c86f2028c00b62313a071a94cafc95f9)
2008-07-11 09:34:40 +10:00
Ronnie Sahlberg
0c1ead9043 Revert "Yip yip yip!"
This reverts commit f7bdf96843a7e4ad61ad378786922d6281de9d93.

(This used to be ctdb commit b18a1b59ecd8913e03a59b1a105002f2c9221324)
2008-07-10 17:06:52 +10:00
Martin Schwenke
47cb226c9b Yip yip yip!
(This used to be ctdb commit f7bdf96843a7e4ad61ad378786922d6281de9d93)
2008-07-10 17:05:20 +10:00
Martin Schwenke
a92de86c2f When in verbose mode with -p, each line is prefixed with the node
address/name.  To implement this stderr has redirected to stdout -
this doesn't need to be done but is the simplest implementation.
Remove -t option since it doesn't seem to accomplish much but causes
spurious messages to be displayed by ssh.  Add explicit -h and --help
options.  Make style of usage message consistent with documentation.
Document new features in doc/onnode.1.xml.

(This used to be ctdb commit dfaf2c1581e547df831b3171ad47acd27b4ca2af)
2008-07-10 15:41:11 +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
Martin Schwenke
db55b91317 Complete rewrite of tools/onnode. Remove old tools/onnode.ssh,
tools/onnode.rsh.

(This used to be ctdb commit 2cc9aba3d7e608eccc29c897f710b69f30653bbf)
2008-07-10 15:39:30 +10:00
Ronnie Sahlberg
a89778c048 explain why you have to have a real ip address as well as the "virtual"
ip address for lvs

(This used to be ctdb commit 919af5aadb797cfdd10473b6a1269f4ae2a9dbda)
2008-07-10 13:40:00 +10:00
Ronnie Sahlberg
4dfcceb3de new version 10.0.46
(This used to be ctdb commit d94e76bfb3e464c0540331caf282efc13ff60e42)
2008-07-10 13:00:50 +10:00
Ronnie Sahlberg
d7aa3b4c69 add documentation for both LVS:single-ip and CAPABILITIES:wan-accelerator
(This used to be ctdb commit 563cdf2bd9cca358d234c797d8e1d9c8838c6ca6)
2008-07-10 12:50:16 +10:00
Ronnie Sahlberg
aa0cab2aaa Update to the LVS eventscript.
Do not assume all nodes are members of LVS so always deciding the recmaster will be lvsmaster wont work.

Instead,
Create the set of active LVS nodes as those nodes that are LVS capable and
also HEALTHY.
Except if ALL LVS capable nodes are unhealthy in which case we allow the unhealthy
nodes to be part of the active set.

In the active set, pick one of the active nodes as being the lvsmaster
which will receive all incoming traffic and distribute it across
the active lvs nodes in the cluster.

(This used to be ctdb commit b2ccb891b81b041e2186e038b67bb4354b7892aa)
2008-07-10 11:42:37 +10:00
Ronnie Sahlberg
efd840276b Add three mode commands to the CTDB tool.
lvs: which shows which nodes are active LVS servers
lvsmaster: which shows which node is the lvs master multiplex node
pnn: which prints the pnn of the local node

(This used to be ctdb commit 00025eef662b867293829228c681df491cd6f371)
2008-07-10 11:12:58 +10:00
Ronnie Sahlberg
ab8535eaa5 make LVS a capability so that we can see which nodes are configured with
LVS and which are not using LVS.

"ctdb getcapabilities"

(This used to be ctdb commit 172d01fb34f032e098b1c77a7b0f17bf11301640)
2008-07-10 10:37:22 +10:00
Ronnie Sahlberg
3c0d725e0b add an option to skip checking that all the samba shares are ok
when monitoring the node health.
this might be useful to skip for environments with thousands of shares

(This used to be ctdb commit dd900d4ed8f07003c4f1db2d441cfc2ef2c89ef5)
2008-07-10 08:56:33 +10:00
Ronnie Sahlberg
3523899c2e remove the attempts to restart NFS.
nfs should never stop spontaneously so trying to restart it is
just counterproductive and at best a workaround to
hide real bugs.

(This used to be ctdb commit 90ab48bb8e17f59fcb27ddbff51de546c4447b64)
2008-07-10 08:05:34 +10:00
Ronnie Sahlberg
31967abf5c if we have enabled LVS but we dont have all the required packages
just log it to the messages
dont stop ctdb from starting

(This used to be ctdb commit 3c3d3ac5f7dec258589aaaf0633cab3b3af65cf3)
2008-07-09 15:17:27 +10:00
Ronnie Sahlberg
334db8ccba proper waitpid() fix.
remove all waitpid() calls and use the event system to trap sigchld

(This used to be ctdb commit 77458b2b6b51b2970c12b0e5b097088d3fb9d358)
2008-07-09 14:02:54 +10:00
Ronnie Sahlberg
0fba2e36b1 Revert "pull the development files out into their own package"
This reverts commit 36be210bbc5e0af75c5fd6e57863272bfa0e942e.

(This used to be ctdb commit 02ed800f3c09e2a3d56de5ae226708d0953dd4a1)
2008-07-09 13:14:47 +10:00