summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | fix bug #7152: check NFS-Shares, fails with to long path-namesMichael Adam2010-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Thanks to Thomas Sesselmann <t.sesselmann@dkfz.de> . Michael (This used to be ctdb commit da5fc07baa9aa806c3cba52c00fb10cf8b7f2dc5)
| * | server:ctdb_send_dmaster_reply: fix a message typo.Michael Adam2010-02-231-1/+1
| | | | | | | | | | | | | | | | | | Michael (This used to be ctdb commit aa63f728152c37e31cecf2258efcdc8cf5ac0092)
| * | doc: regenerate ctdb.1*Stefan Metzmacher2010-02-232-286/+534
| | | | | | | | | | | | | | | | | | metze (This used to be ctdb commit 00b249d9d098d5ed03e21caed404e66336f63629)
| * | doc/ctdb.1.xml: document "ctdb setifacelink <iface> <status>"Stefan Metzmacher2010-02-231-0/+11
| | | | | | | | | | | | | | | | | | metze (This used to be ctdb commit b151a5bf750ffde4845d19a6ef875b4ee6085426)
| * | doc/ctdb.1.xml: document "ctdb ipinfo <ip>"Stefan Metzmacher2010-02-231-0/+20
| | | | | | | | | | | | | | | | | | metze (This used to be ctdb commit c72b637cc838ae6ea1694a476628c3fb4770f63b)
| * | doc/ctdb.1.xml: update "ctdb ip" documentationStefan Metzmacher2010-02-231-5/+26
| | | | | | | | | | | | | | | | | | metze (This used to be ctdb commit 283338275c1e02811ce5062b24cc0da2288f64cc)
| * | doc/ctdb.1.xml: document "ctdb ifaces"Stefan Metzmacher2010-02-231-0/+33
| | | | | | | | | | | | | | | | | | metze (This used to be ctdb commit 5ac32d3152ba11bacfab47c72ba998ac495fac00)
| * | doc/ctdb.1.xml: document PARTIALLYONLINE statusStefan Metzmacher2010-02-231-0/+6
| | | | | | | | | | | | | | | | | | metze (This used to be ctdb commit 51a455940464accece218b1a018be444993b3b4b)
| * | config/13.per_ip_routing: fix typo in error messageStefan Metzmacher2010-02-231-1/+1
| | | | | | | | | | | | | | | | | | metze (This used to be ctdb commit 4b06665b77cb24d488f4ef03cc9ad5fd5d0feb0e)
| * | config/13.per_ip_routing: use better names for release_script and setup_scriptStefan Metzmacher2010-02-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the basename of the script will be used for the readd script from setup_iface_ip_readd_script, it's know easier to identify what script is called by delete_ip_from_iface() while readding ips to the interface. metze (This used to be ctdb commit 3ee225b0b6ed37c22478bd145ced56b1b9b86842)
| * | config/13.per_ip_routing: register the setup script with ↵Stefan Metzmacher2010-02-231-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setup_iface_ip_readd_script() This is needed because we need to resetup the routing table when the delete_ip_from_iface() function readds the ip to the interface. metze (This used to be ctdb commit ea87185ec9977006ef72d5a68c875154e4c84099)
| * | config/13.per_ip_routing: add a setup_per_ip_routing() functionStefan Metzmacher2010-02-231-50/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This combines the logic into a shell function which can be used by the "takeip" and "updateip" hooks. We check the return values of the "ip" commands now instead of ignoring them. We now create a setup_script.sh similar to the release_script.sh which makes it easier to analyze problems. metze (This used to be ctdb commit 624e8878851b4957cc7c02e922ec86926d6927ee)
| * | server: add "setup" eventStefan Metzmacher2010-02-238-8/+56
| | | | | | | | | | | | | | | | | | | | | | | | This is needed because the "init" event can't use 'ctdb' commands. metze (This used to be ctdb commit 1493436b6b24eb05a23b7a339071ad85f70de8f4)
| * | config/10.interface: use delete_ip_from_iface also in the "init" eventStefan Metzmacher2010-02-231-1/+1
| | | | | | | | | | | | | | | | | | metze (This used to be ctdb commit e2bc5c25116747c58505fe1cb3e2d164257377d1)
| * | config/11.natgw: use delete_ip_from_iface() instead of remove_ip()Stefan Metzmacher2010-02-231-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | This also initializes the variables correctly for the shutdown|removenatgw code path to delete_all. metze (This used to be ctdb commit 2c2cbed4fcbc868a990fa6b32fc96126ffc61bb5)
| * | config: make remove_ip() a wrapper of delete_ip_from_iface()Stefan Metzmacher2010-02-231-18/+8
| | | | | | | | | | | | | | | | | | metze (This used to be ctdb commit e66d6636b80e3614f183366ec92fc3c6d5c323da)
| * | config: interface_modify states in a $CTDB_BASE/state/interface_modify directoryStefan Metzmacher2010-02-231-6/+27
| | | | | | | | | | | | | | | | | | metze (This used to be ctdb commit 756c8b953fef7132dae74b5b244baeb3108dec54)
| * | config: add setup_iface_ip_readd_script() helper functionStefan Metzmacher2010-02-232-4/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a generic infrastructure to register scripts which will be called when the delete_ip_from_iface() funtion needs to readd secondary ips to an interface. metze (This used to be ctdb commit ac97d65f44e8dc8bf2ec8f68e4db3448521755a2)
| * | config: readd ips with a broadcast address in delete_ip_from_iface()Stefan Metzmacher2010-02-231-1/+1
| | | | | | | | | | | | | | | | | | metze (This used to be ctdb commit e7a6f64cf5bce5abdc47f5db96b286c5a8d66aff)
| * | In ctdb_control_end_recovery,Ronnie Sahlberg2010-02-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to talloc_steal c (the command packet) and make it a child of the "event script state context". If we failed to create a eventscript child context for some reason, this would have talloc freed state, but at the same time it would also implicitely have freed c. Once ctdb_control_end_recovery() returns the error back to the caller, the caller would dereference both c, and also outdata which is a child of c and we would either read garbage data or segv. Change the ordering so we only talloc_steal c as a child of state IFF we have successfully created a child context for the script. BZ61068 (This used to be ctdb commit 259054c3632e42bbaa614ee7e888e6e850733d60)
| * | Make sure that the natgw eventscript also triggers on the "stopped" eventRonnie Sahlberg2010-02-231-1/+1
| |/ | | | | | | | | | | | | | | to remove the natgw configuration and ip assignments used. BZ61036 (This used to be ctdb commit 344b1f95b126ecabeb4576330038b08bf88e8cb8)
| * ctdb regsrvids is much more useful for testing if it sleeps once it has ↵Ronnie Sahlberg2010-02-221-0/+2
| | | | | | | | | | | | | | | | registered its srvid. Othervise, as soon as it terminates, ctdbd will deregister the id automatically. (This used to be ctdb commit 23b059dcb8074872d7900b225790d4df7da071b6)
| * From Sumit Bose <sbose@redhat.com>Ronnie Sahlberg2010-02-221-7/+13
| | | | | | | | | | | | Fixes for init script to meet guidelines (This used to be ctdb commit 9f484404030211df85a215fd2280568a2ec020fb)
| * From Elia Pinto <gitter.spiros@gmail.com>Ronnie Sahlberg2010-02-221-3/+0
| | | | | | | | | | | | We dont need to include getopt.h under AIX (This used to be ctdb commit fcebbc3484ce56c57def745ea51c053dfb02a657)
| * Ignore any scripts that timesout for most events, except startup.Ronnie Sahlberg2010-02-161-1/+15
| | | | | | | | | | | | Threat hung scripts always (except startup) as success. (This used to be ctdb commit b6d939c9758c7d2e39206838492f2f644dd61db7)
| * try to restart rpc-rquotad if it is not runningRonnie Sahlberg2010-02-161-0/+10
| | | | | | | | | | | | bz60317 (This used to be ctdb commit 2263cd74d511247debadd0f6602bc6396b46ac5e)
| * Leave sequence number alone when merely migrating records.Rusty Russell2010-02-161-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Based on earlier version from Ronnie which modified tdb; this one is standalone). When storing records in a tdb that has "automatic seqnum updates" also check if the actual data for the record has changed or not. If it has not changed at all, except for possibly the header, this is likely just a dmaster migration operation in which case we want to write the record to the tdb but we do not want the tdb sequence number to be increased. This resolves the problem of notify.tdb being thrashed under load: the heuristic in smbd to only reread this when the sequence number increases (rarely) breaks down. Before, running nbench --num-progs=512 across 4 nodes, we saw numbers like: 512 1496 118.33 MB/sec execute 60 sec latency 0.00 msec And turning on latency tracking, this was typical in the logs: ctdbd: High latency 9380914.000000s for operation lockwait on database notify.tdb After this commit: 512 2451 143.85 MB/sec execute 60 sec latency 0.00 msec And no more latency messages... Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 9ed2f8b2fcb7e3f0d795eef22cfa317066490709)
| * Reduce loglevel for two eventscript related debug messagesRonnie Sahlberg2010-02-161-2/+2
| | | | | | | | (This used to be ctdb commit f8994790e65baebb81bbfad646cdda6234b6d29a)
| * Reducing the log level for a debug messageRonnie Sahlberg2010-02-161-1/+1
| | | | | | | | | | | | DEBUG(DEBUG_DEBUG,("pnn %u starting migration of %08x t\ (This used to be ctdb commit 6ce4b21b00cce1530aff022584bf695c257a5d55)
| * Reduce the log level for two debug messagesRonnie Sahlberg2010-02-161-2/+2
| | | | | | | | | | | | | | DEBUG(DEBUG_DEBUG,("pnn %u dmaster response %08x\n", ctdb->pnn, ctdb_has DEBUG(DEBUG_DEBUG,("pnn %u dmaster request on %08x for %u from %u\n", (This used to be ctdb commit a3473e7a445b14520a49585c460429dfbfe1fce0)
| * Add a variable CTDB_CHECK_SWAP_IS_NOT_USED="yes"Ronnie Sahlberg2010-02-161-5/+7
| | | | | | | | | | | | | | | | | | | | | | to control whether or not to check if we are swapping, and produce useful output into the logfile if we are. For production systems with dedicated nas-heads we should never swap. But for developer/test systems we often use smaller nondedicated systems where we can no longer guarantee that we will not be using swap. (This used to be ctdb commit db87849bf3380914a63a626412bec209dbea7d20)
| * lower the loglevel for a debug message for redundant releases of public ipsRonnie Sahlberg2010-02-161-1/+1
| | | | | | | | (This used to be ctdb commit cfc1a4f878b61c85063af649d2339431e799647d)
| * Add a new variable : CTDB_NFS_SKIP_KNFSD_ALIVE_CHECKRonnie Sahlberg2010-02-161-1/+3
| | | | | | | | | | | | | | | | when set to "yes" this will skip checking if knfsd has hung or not. bz59626 (This used to be ctdb commit b0bf3794753c5bb898295b5109707953cc3dcec5)
| * fixed printing of high latencyAndrew Tridgell2010-02-161-1/+1
| | | | | | | | (This used to be ctdb commit 88aacab30a36d66fe03d120bbf655edfe791ec32)
| * Merge commit 'martins/master'Ronnie Sahlberg2010-02-116-34/+70
| |\ | | | | | | | | | (This used to be ctdb commit 06ae8630dfe297e0d7ebcdbb43969170f3d06e20)
| * | Test suite: Make "ctdb ip" test backward compatible with older ctdb versions.Martin Schwenke2010-02-111-14/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recent updates to the test meant that it only worked with the latest ctdb versions. This changes things so that we never bother matching the machine readable header, just the actual data in the output. It also takes a slightly more liberal approach in massaging the human readable output to ensure it matches the machine readable output. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 11e72356e849ed4cb315c942e30e9bcadc624f42)
* | | ctdb_setstatus in /etc/ctdb/functions was not working correctly because it ↵Wolfgang Mueller-Friedt2010-03-111-1/+2
| |/ |/| | | | | | | | | was called with a wrong parameter list (This used to be ctdb commit da5cd6d4231d01e6a55090ce737dc44e66916625)
* | Test suite: Make "ctdb ip" test backward compatible with older ctdb versions.Martin Schwenke2010-02-101-14/+7
| | | | | | | | | | | | | | | | | | | | | | | | Recent updates to the test meant that it only worked with the latest ctdb versions. This changes things so that we never bother matching the machine readable header, just the actual data in the output. It also takes a slightly more liberal approach in massaging the human readable output to ensure it matches the machine readable output. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 8a1cb5dc1ddf82f3b9cbb23e40b3914b3d5c2783)
* | Merge commit 'origin/master'Martin Schwenke2010-02-104-94/+133
|\| | | | | | | (This used to be ctdb commit 19523fbb12db1ec1e5ee38de1b2d3b99a74c6ca4)
| * commands that relate to manual failover of ip addresses (moveip)Ronnie Sahlberg2010-02-091-3/+3
| | | | | | | | | | | | can sometimes take long so allow for a longer timeout for the controls used. (This used to be ctdb commit 144c69b633eeb17e120f962162feed6de3dc16a6)
| * dont just exit(0) upon successful completion of waiting for an ipreallocate ↵Ronnie Sahlberg2010-02-091-1/+9
| | | | | | | | | | | | | | | | | | | | to finish. return success back to the caller instead. otherwise things like 'ctdb enable -n all' will just finish after the first disabled node has become enabled. (This used to be ctdb commit f4eb41cd3a1099da8265351818fba9bd4688a188)
| * event scripts: add logging for low memory conditionsRusty Russell2010-02-091-0/+10
| | | | | | | | | | | | | | | | 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)
| * ctdb: migrate to new dlinklist.h from SambaAndrew Tridgell2010-02-092-90/+111
| | | | | | | | (This used to be ctdb commit f63c091f12f8d582e9518673365c7c52479c470c)
* | onnode documentation - update documentation to reflect recent onnode changes.Martin Schwenke2010-02-053-25/+63
| | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 2fb2eb0fd7396de33474ce43fe95c66a5784d05b)
* | Merge branch 'master' of git://git.samba.org/sahlberg/ctdbMartin Schwenke2010-02-0515-25/+170
|\| | | | | | | (This used to be ctdb commit a442668923d4d8f8d624e00138fe37d76d593d21)
| * ctdb: when we fill the client packet queue we need to drop the clientAndrew Tridgell2010-02-041-5/+12
| | | | | | | | | | | | | | | | | | | | We can't just drop packets to the list, as those packets could be part of the core protocol the client is using. This happens (for example) when Samba is doing a traverse. If we drop a traverse packet then Samba hangs indefinately. We are better off dropping the ctdb socket to Samba. (This used to be ctdb commit a7a86dafa4d88a6bbc6a71b77ed79a178fd802a6)
| * ctdb: move ctdb_io.c to use TLIST_*() macrosAndrew Tridgell2010-02-041-21/+6
| | | | | | | | | | | | This will make large packet queues much more efficient (This used to be ctdb commit e3f198056230073135ea6354bbef30c5bb022f8f)
| * util: added TLIST_*() macrosAndrew Tridgell2010-02-041-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | The TLIST_*() macros are like the DLIST_*() macros, but take both a head and tail pointer for the list. This means that adding an element to the end of the list is efficient (it doesn't need to walk the list). We should move all uses of the DLIST_*() macros which use DLIST_ADD_END() to use the TLIST_*() macros instead. (This used to be ctdb commit 2d05a71349e9ade869b62cf261c2a9a21818a474)
| * When trying to enable/disable a node.Ronnie Sahlberg2010-02-041-0/+20
| | | | | | | | | | | | | | Check if the node is already enabled/disabled and log an information message if so. (This used to be ctdb commit c3eec8f10764a647106087099eeb47b7196f7aac)
| * We only queued up to 1000 packets per queue before we start droppingRonnie Sahlberg2010-02-042-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | packets, to avoid the queue to grow excessively if smbd has blocked. This could cause traverse packets to become discarded in case the main smbd daemon does a traverse of a database while there is a recovery (sending a erconfigured message to smbd, causing an avalanche of unlock messages to be sent across the cluster.) This avalance of messages could cause also the tranversal message to be discarded causing the main smbd process to hang indefinitely waiting for the traversal message that will never arrive. Bump the maximum queue length before starting to discard messages from 1000 to 1000000 and at the same time rework the queueing slightly so we can append messages cheaply to the queue instead of walking the list from head to tail every time. (This used to be ctdb commit 59ba5d7f80e0465e5076533374fb9ee862ed7bb6)