samba.git
16 years agoRevert "- accept an optional set of tdb_flags from clients on open a database,"
Ronnie Sahlberg [Thu, 10 Apr 2008 04:45:45 +0000 (14:45 +1000)]
Revert "- accept an optional set of tdb_flags from clients on open a database,"

This reverts commit 49330f97c78ca0669615297ac3d8498651831214.

(This used to be ctdb commit 4063aed8c6babf02726a1663375ea5d32c423e8c)

16 years agoRevert "Revert "- accept an optional set of tdb_flags from clients on open a database,""
Ronnie Sahlberg [Thu, 10 Apr 2008 04:57:41 +0000 (14:57 +1000)]
Revert "Revert "- accept an optional set of tdb_flags from clients on open a database,""

This reverts commit 171d1d71ef9f2373620bd7da3adaecb405338603.

(This used to be ctdb commit 79ca87e53dc4c1c73c511680d28db644140a326c)

16 years agoRevert "Revert "Revert "- accept an optional set of tdb_flags from clients on open...
Ronnie Sahlberg [Thu, 10 Apr 2008 05:59:51 +0000 (15:59 +1000)]
Revert "Revert "Revert "- accept an optional set of tdb_flags from clients on open a database,"""

remove the transaction stuff and push   so that the git tree will work

This reverts commit 539bbdd9b0d0346b42e66ef2fcfb16f39bbe098b.

(This used to be ctdb commit 7dad1c34f94a433bbb5784cb7156b84bd2e8cd1b)

16 years agomake ctdb eventrscipt accept the -n all argument to run the event script on all conne...
Ronnie Sahlberg [Tue, 15 Apr 2008 08:24:48 +0000 (18:24 +1000)]
make ctdb eventrscipt accept the -n all argument to run the event script on all connected nodes

(This used to be ctdb commit 772052e071718f20a19d24d5e06a5a2ef87549f2)

16 years agowhen a node disgrees with us re who is recmaster
Ronnie Sahlberg [Mon, 21 Apr 2008 14:56:27 +0000 (00:56 +1000)]
when a node disgrees with us re who is recmaster
make it mark that node as a lcuprit so it eventually gets banned

(This used to be ctdb commit 42ceac4d7f31470e9d626a1709de79658aebde7e)

16 years agoadd support for -n all in "ctdb -n all ip"
Ronnie Sahlberg [Tue, 22 Apr 2008 14:55:57 +0000 (00:55 +1000)]
add support for -n all   in "ctdb -n all ip"
this collects all public addresses from all nodes and presents the public ips
for the entire cluster

(This used to be ctdb commit cbf79b2158ab21a58aef967e89f0bd60890a7972)

16 years agofixed permissions on configure.rpm
Andrew Tridgell [Tue, 22 Apr 2008 14:48:25 +0000 (16:48 +0200)]
fixed permissions on configure.rpm

(This used to be ctdb commit badf34692449bf658cef488c0da6c3eb90187555)

16 years ago- accept an optional set of tdb_flags from clients on open a database,
Andrew Tridgell [Thu, 10 Apr 2008 05:25:48 +0000 (15:25 +1000)]
- accept an optional set of tdb_flags from clients on open a database,
  thus allowing the client to pass through the TDB_NOSYNC flag

- ensure that tdb_store() operations on persistent databases that don't
  have TDB_NOSYNC set happen inside a transaction wrapper, thus making
  them crash safe

(This used to be ctdb commit 49330f97c78ca0669615297ac3d8498651831214)

16 years agofix compiler warning during a fatal error failing to lock down the socket
Ronnie Sahlberg [Wed, 9 Apr 2008 23:56:49 +0000 (09:56 +1000)]
fix compiler warning during a fatal error failing to lock down the socket

(This used to be ctdb commit 0ad22de1a614dc2d1926546027be5f5eea3381ed)

16 years agoshell scripts need extra spaces sometime
Ronnie Sahlberg [Wed, 9 Apr 2008 21:01:22 +0000 (07:01 +1000)]
shell scripts need extra spaces sometime

(This used to be ctdb commit f6409b19972fa94257af9aa51def539f639bc226)

16 years agoupdate to version .33
Ronnie Sahlberg [Wed, 9 Apr 2008 20:55:31 +0000 (06:55 +1000)]
update to version .33

(This used to be ctdb commit 2ac9e29c13e9ce5903d26bcc3b845e3b05a53edc)

16 years agoFrom Chris Cowan
Ronnie Sahlberg [Wed, 9 Apr 2008 20:51:53 +0000 (06:51 +1000)]
From Chris Cowan
secure the domain socket and set permissions properly

(This used to be ctdb commit ac6a362fc2fc4a56b4c310478a96eb12daace176)

16 years agoadd possibility to provide site local modifications to the event system
Ronnie Sahlberg [Wed, 9 Apr 2008 20:50:12 +0000 (06:50 +1000)]
add possibility to provide site local modifications to the event system
through a /etc/ctdb/rc.local script that is sources by /etc/ctdb/functions

(This used to be ctdb commit a5b7dd97e3faf0c4f289240307d0e22a67cf2353)

16 years agoadd a ctdb command to print the ctdb version
Ronnie Sahlberg [Thu, 3 Apr 2008 06:07:00 +0000 (17:07 +1100)]
add a ctdb command to print the ctdb version

(This used to be ctdb commit 401fb01f8cb06886e2c5c277a9a70512a9b68579)

16 years agowe allocated one byte too little in the blob we need to send as the control to the...
Ronnie Sahlberg [Thu, 3 Apr 2008 05:35:23 +0000 (16:35 +1100)]
we allocated one byte too little in the blob we need to send as the control to the server.

(This used to be ctdb commit 10e585413c217d9b9c32ff3d2fb3d8f24183c458)

16 years agoFrom Chris Cowan
Ronnie Sahlberg [Wed, 2 Apr 2008 23:58:51 +0000 (10:58 +1100)]
From Chris Cowan

Add support in AIX to track the PID of a client that connects to the unix domain socket

(This used to be ctdb commit 4c006c675d577d4a45f4db2929af6d50bc28dd9e)

16 years agobump version to .32
Ronnie Sahlberg [Wed, 2 Apr 2008 01:09:27 +0000 (12:09 +1100)]
bump version to .32

(This used to be ctdb commit 794ed5852c09deaffd1817f8a443b4711ed4d06f)

16 years agoadd a mechanism to force a node to run the eventscripts with arbitrary arguments
Ronnie Sahlberg [Wed, 2 Apr 2008 00:13:30 +0000 (11:13 +1100)]
add a mechanism to force a node to run the eventscripts with arbitrary arguments

ctdb eventscript "command argument argument ..."

(This used to be ctdb commit 118a16e763d8332c6ce4d8b8e194775fb874c8c8)

16 years agodecorate the memdump output with a nice field for ctdb_client structures to show...
Ronnie Sahlberg [Tue, 1 Apr 2008 06:17:21 +0000 (17:17 +1100)]
decorate the memdump output with a nice field for ctdb_client structures to show the pid of the client that attached

(This used to be ctdb commit 0d9314302d0b988b6ab5d533deef40c5b343c249)

16 years agoadd improvements to tracking memory usage in ctdbd adn the recovery daemon
Ronnie Sahlberg [Tue, 1 Apr 2008 04:34:54 +0000 (15:34 +1100)]
add improvements to tracking memory usage in ctdbd adn the recovery daemon

and a ctdb command to pull the talloc memory map from a recovery daemon
ctdb rddumpmemory

(This used to be ctdb commit d23950be7406cf288f48b660c0f57a9b8d7bdd05)

16 years agofrom tridge: decorate dumpmemory output so that packets that are queued show up with...
Ronnie Sahlberg [Tue, 1 Apr 2008 00:31:42 +0000 (11:31 +1100)]
from tridge: decorate dumpmemory output so that packets that are queued show up with a little more information to make memory leak debugging easier

(This used to be ctdb commit 890832ba37d92c7996b38735451f93592c37ff79)

16 years agoreturn 0 if iscsi is disabled
Ronnie Sahlberg [Mon, 31 Mar 2008 01:58:20 +0000 (12:58 +1100)]
return 0 if iscsi is disabled

(This used to be ctdb commit b76400e282cab60ac6b6039dbb33d93bb1350199)

16 years agomake sure the iface string is nullterminated in the addip control packet
Ronnie Sahlberg [Mon, 31 Mar 2008 01:49:39 +0000 (12:49 +1100)]
make sure the iface string is nullterminated in the addip control packet

(This used to be ctdb commit 983490556bc12fe03de4c22b5fdc12d15c11d43c)

16 years agoupdate the iscis support under RHEL5 to allow one iscsi target to be defined for...
Ronnie Sahlberg [Mon, 31 Mar 2008 00:00:08 +0000 (11:00 +1100)]
update the iscis support under RHEL5 to allow one iscsi target to be defined for each public address in the cluster.

update the documentation for iscsi

(This used to be ctdb commit c1130e58296e63be3787ec59690941b2677a3378)

16 years agoAdd two new controls to add/delete public ip address from a node at runtime.
Ronnie Sahlberg [Wed, 26 Mar 2008 22:23:27 +0000 (09:23 +1100)]
Add two new controls to add/delete public ip address from a node at runtime.

The controls only modify the runtime setting of which public addresses a node
can server and does not modify /etc/ctdb/public_addresses.
To make the change permanent you also need to edit /etc/ctdb/public_addresses
manually.

After ip addresses have been added/deleted you need to invoke a recovery
for the ip addresses to be redistributed.

(This used to be ctdb commit f8294d103fdd8a720d0b0c337d3973c7fdf76b5c)

16 years agofix a memory leak
Ronnie Sahlberg [Tue, 25 Mar 2008 00:11:13 +0000 (11:11 +1100)]
fix a memory leak

allocate the memory to the 'call' context and not off the 'ctdb' context

(This used to be ctdb commit be89005bd5d13409e377d425db2aad1c0d5b3826)

16 years agoupdate to version 1.0.31
Ronnie Sahlberg [Mon, 24 Mar 2008 22:43:47 +0000 (09:43 +1100)]
update to version 1.0.31

(This used to be ctdb commit a0c9a451afde0c99efdc92e1fd418991bb81fa2b)

16 years agoFrom M Dietz,
Ronnie Sahlberg [Mon, 24 Mar 2008 21:27:38 +0000 (08:27 +1100)]
From M Dietz,
Add back the controls to enable/disable monitoring we used to have for debugging but removed a while ago

(This used to be ctdb commit 8477f6a079e2beb8c09c19702733c4e17f5032fe)

16 years agoin ctdb_call_local() we can not talloc_steal() the returned data and hang it off...
Ronnie Sahlberg [Wed, 19 Mar 2008 02:54:17 +0000 (13:54 +1100)]
in ctdb_call_local() we can not talloc_steal() the returned data and hang it off ctdb.
This can cause a memory leak if the call is terminated before we have managed to respond to the client.
(and the call is talloc_free()d but the data is still hanging off ctdb)

instead we must talloc_steal() the data and hang it off the call structure to avoid the memory leak.

In order to do this we must also change the call structure that is passed into ctdb_call_local() to be allocated through talloc().

This structure was previously either a static variable, or an element of a larger talloc()ed structure (ctdb_call_state or ctdb_client_call_state) so
we must change all creations of a ctdb_call into explicitely creating it through talloc()

(This used to be ctdb commit 4becf32aea088a25686e8bc330eb47d85ae0ef8f)

16 years agodont steal reply_data.dptr to ctdb if there is no data, since then we would leak
Ronnie Sahlberg [Wed, 19 Mar 2008 01:08:29 +0000 (12:08 +1100)]
dont steal reply_data.dptr to ctdb if there is no data, since then we would leak
memory

(This used to be ctdb commit 53c4f483bb122e6fa13abcc6d4584130f20af461)

16 years agochange the log level for the message when someone connects to a non-public ip
Ronnie Sahlberg [Wed, 12 Mar 2008 20:54:55 +0000 (07:54 +1100)]
change the log level for the message when someone connects to a non-public ip

(This used to be ctdb commit bc9c4f0d52e9b06aceb08cea99ed3fd20b44616c)

16 years agoRedo the vacukming process to mkake it scalable.
Ronnie Sahlberg [Wed, 12 Mar 2008 20:53:29 +0000 (07:53 +1100)]
Redo the vacukming process to mkake it scalable.

Vacumming used to delete one record at a time on all nodes, that was
m*n behaviour and would require a huge storm of ctdb->ctdb controls and just wouldnt scale at all.

The new vacuming process collects all records to be deleted locally and then only sends 1 control to the other nodes. This control contains a list of all records to be deleted.

(This used to be ctdb commit 9e625ece19a91f362c9539fa73b6b2108f0d9c53)

16 years agoupdate to version 1.0.30
Ronnie Sahlberg [Tue, 4 Mar 2008 02:40:29 +0000 (13:40 +1100)]
update to version 1.0.30

(This used to be ctdb commit 89529ea81379335b3db09774d192fb7cefe37338)

16 years agoUpdate ctdb uptime to provide machinereadable output
Ronnie Sahlberg [Tue, 4 Mar 2008 02:29:48 +0000 (13:29 +1100)]
Update ctdb uptime to provide machinereadable output

(This used to be ctdb commit 4f7f8aa6f178115b551ac35f7df2ec5aad054fe2)

16 years agoprovide machinereadble -Y output for 'ctdb getdebug'
Ronnie Sahlberg [Tue, 4 Mar 2008 02:23:06 +0000 (13:23 +1100)]
provide machinereadble -Y output for 'ctdb getdebug'

(This used to be ctdb commit 646f4d9a01637685e967fb3ecc042fc97c0b7529)

16 years agomake 'ctdb ip' provide machinereadble output using '-Y'
Ronnie Sahlberg [Tue, 4 Mar 2008 02:18:27 +0000 (13:18 +1100)]
make 'ctdb ip' provide machinereadble output using '-Y'

(This used to be ctdb commit 446e2f4e650b12d6fce5677a6841006462c23dba)

16 years agodocument some public tunables
Ronnie Sahlberg [Tue, 4 Mar 2008 02:06:46 +0000 (13:06 +1100)]
document some public tunables

(This used to be ctdb commit 61fd50e2b3aa9a3ed32bc81a8e28464f267dc490)

16 years agodocument some new ctdb command
Ronnie Sahlberg [Tue, 4 Mar 2008 01:37:24 +0000 (12:37 +1100)]
document some new ctdb command

(This used to be ctdb commit f3648a8a5b3934ea42c7d2550f729a5bd61a4d0f)

16 years agoA new command to 'ctdb'
Ronnie Sahlberg [Tue, 4 Mar 2008 01:20:23 +0000 (12:20 +1100)]
A new command to 'ctdb'

ctdb moveip <IPADDRESS> <NODE>

which can be used to manually fail an ip address over to a specific node.

This can only be used if DeteministicIPs are disabled and also only if NoIPFailback is enabled.

(This used to be ctdb commit ffee062b7e26a6aa6ad254edb58399040ecaa542)

16 years agoadd a new tunable 'NoIPFailback'
Ronnie Sahlberg [Mon, 3 Mar 2008 01:52:16 +0000 (12:52 +1100)]
add a new tunable 'NoIPFailback'
when this tunable is set, ip addresses will only be failed over when a node
fails. And only those ip addresses held by the failed node will be reallocated
in the cluster.

When a node becomes active again, this will not lead to any failback of ip addresses.

This can reduce the number of "ip address movements" in the cluster since we dont automatically fail an ip address back, but can also lead to an unbalanced cluster since we no longer attempt to spread the ip addresses out evenly across the active nodes.

This tuneable can NOT be active at the same time as DeterministicIPs are used.

(This used to be ctdb commit d3b8a461b15bc584fa1785eb5922de6d49d8f6c4)

16 years agowhen we reallocate the ip addresses for nodes, we must make sure that
Ronnie Sahlberg [Sun, 2 Mar 2008 23:53:23 +0000 (10:53 +1100)]
when we reallocate the ip addresses for nodes, we must make sure that
a node that has been allocated to server an ip actually CAN serve that ip
(if we use differing public_addresses files on each node)

(This used to be ctdb commit fdaf7cb2d7682507fbf4c6c2b833b327c93fac08)

16 years agoadd a num_connected field to the rec structure that holds the number
Ronnie Sahlberg [Sun, 2 Mar 2008 23:24:17 +0000 (10:24 +1100)]
add a num_connected field to the rec structure that holds the number
of connected nodes

num_active only contains the number of active nodes and would thus not count
banned nodes

(This used to be ctdb commit 06d3ce470766ef0b60d68ccd84de5437146cc147)

16 years agoadd a new tunable : reclockpingperiod
Ronnie Sahlberg [Sun, 2 Mar 2008 22:19:30 +0000 (09:19 +1100)]
add a new tunable : reclockpingperiod

once every such interval :
* the recovery master on each node will uppdate the "connected" count in the
reclock count file (ctdb getreclock)
* if the node thinks it is a recovery master but it detects another node
  that is DISCONNECTED but which still holds a lock to the reclock count file
  this may mean that we have a split cluster.
  if that other node that is DISCONNECTED but still holds the lock on hte reclock
  pnn count file, is MORE connected than the local node,
  yield the recmaster role and let the other half of the lcuster take over

this add a second, last chance mechanism to detect split clusters.
IF the cluster is split but GPFS is not yet split, this mechanism makes
the largest half of the cluster become the active half.

(This used to be ctdb commit 07af425f444531942cce8abff112c1524228d287)

16 years agochange recmaster from being a local variable in monitor_cluster() to be a member...
Ronnie Sahlberg [Sun, 2 Mar 2008 20:53:46 +0000 (07:53 +1100)]
change recmaster from being a local variable in monitor_cluster() to be a member of the ctdb_recoverd structure

(This used to be ctdb commit b7f955338f50c92374b4f559268fb3a1a516aefa)

16 years agoupdate the reclock pnn count for how many nodes are connected to the current node...
Ronnie Sahlberg [Fri, 29 Feb 2008 02:14:47 +0000 (13:14 +1100)]
update the reclock pnn count for how many nodes are connected to the current node once every 60 seconds

(This used to be ctdb commit bf1863cc9e2539b2c3e53c664b493b459ebfcc8b)

16 years agostore the num_active variable (number of connected/active nodes) inside the rec
Ronnie Sahlberg [Fri, 29 Feb 2008 01:55:20 +0000 (12:55 +1100)]
store the num_active variable (number of connected/active nodes) inside the rec
structure and avoid passing this as an extra parameter to do_recovery()

(This used to be ctdb commit 8bb229aa3b4bd41e48d4e4e2e148d8680c8ba436)

16 years agoadd a new file <reclock>.pnn where each recovery daemon can lock that byte at offset...
Ronnie Sahlberg [Fri, 29 Feb 2008 01:37:42 +0000 (12:37 +1100)]
add a new file <reclock>.pnn where each recovery daemon can lock that byte at offset==pnn to offer an alternative way to detect which nodes are active instead of relying on CONNECTED being accurate.

(This used to be ctdb commit 21d3319eaf463e2a00637d440ee2d4d15f53bf09)

16 years agoadd a control to get the name of the reclock file from the daemon
Ronnie Sahlberg [Thu, 28 Feb 2008 23:03:39 +0000 (10:03 +1100)]
add a control to get the name of the reclock file from the daemon

(This used to be ctdb commit 9effb22cc1616d684352d7ebabb359e69adb0f52)

16 years agoadd a new tunable DisableWhenUnhealthy which when set will cause a node to automatica...
Ronnie Sahlberg [Thu, 21 Feb 2008 23:33:09 +0000 (10:33 +1100)]
add a new tunable DisableWhenUnhealthy which when set will cause a node to automatically become DISABLED anytime monitoring fails and the node becomes UNHEALTHY.

Use with caution.

(This used to be ctdb commit c20293360db67f9876b0c84e5e9e12a5868964cb)

16 years agodocument the --start-as-disabled argument
Ronnie Sahlberg [Thu, 21 Feb 2008 23:01:15 +0000 (10:01 +1100)]
document the --start-as-disabled argument

(This used to be ctdb commit 613881a06186dec90fb64a7190ddf4afd7437d67)

16 years agoAdd debug output to indicate why a node starts up in DISABLED state
Ronnie Sahlberg [Thu, 21 Feb 2008 22:52:57 +0000 (09:52 +1100)]
Add debug output to indicate why a node starts up in DISABLED state

(This used to be ctdb commit 8df75775966ead36e1073896fedeff674a6e0587)

16 years agoAdd a new parameter to /etc/sysconfig/ctdb
Ronnie Sahlberg [Thu, 21 Feb 2008 22:42:52 +0000 (09:42 +1100)]
Add a new parameter to /etc/sysconfig/ctdb
CTDB_START_AS_DISABLED="yes"

and command line argument
--start-as-disabled

When set, this makes the ctdb node to always start in DISABLED mode and will thus not host any public ip addresses.
The administrator must manually "ctdb enable" the node after it has started when the administrator wants the node to start hosting public ip addresses.

Using this option it is possible to start ctdb on a node without causing any reallocation of ip addresses when it is starting. The node will still merge with the cluster and there will still be a recovery phase but the ip address allocations will not change in the cluster.

(This used to be ctdb commit b93d29f43f5306c244c887b54a77bca8a061daf2)

16 years agomonitor the amount of free memory and if this treshold is crossed, monitoring will...
Ronnie Sahlberg [Thu, 21 Feb 2008 02:29:28 +0000 (13:29 +1100)]
monitor the amount of free memory and if this treshold is crossed, monitoring will log an OOM memory in the ctdb log and shut down ctdb on the node.

by default ctdb does not monitor for OOM.
to enable this you need to uncomment the CTDB_MONITOR_FREE_MEMORY line in /etc/sysconfig/ctdb and specify the amount in MByte free that will trigger OOM and cause ctdb to shutdown the node

(This used to be ctdb commit 35627c7450a03f36a353c3dd7cce31ce3433a7ff)

16 years agoupdate version to 1.0.29
Ronnie Sahlberg [Wed, 20 Feb 2008 21:37:29 +0000 (08:37 +1100)]
update version to 1.0.29

(This used to be ctdb commit bb8229d7b479bd486b07fa6cd04100fec02bddee)

16 years agomake the ctdb reloadnodes reload the nodes file on all nodes and restart the transport
Ronnie Sahlberg [Wed, 20 Feb 2008 21:25:01 +0000 (08:25 +1100)]
make the ctdb reloadnodes reload the nodes file on all nodes and restart the transport

(This used to be ctdb commit 6272ad33b4af6ea9d6fd0ac877df3f75be45d665)

16 years agoto make it easier/less disruptive to add nodes to a running cluster
Ronnie Sahlberg [Tue, 19 Feb 2008 03:44:48 +0000 (14:44 +1100)]
to make it easier/less disruptive to add nodes to a running cluster

add a new control that causes the node to drop the current nodes list
and reread it from the nodes file.
During this operation, the node will also drop the tcp layer and restart it.

When we drop the tcp layer, by talloc_free()ing the ctcp structure
add a destructor to ctcp so that we also can clean up and remove the references in the ctdb structure to the transport layer

add two new commands for the ctdb tool.
one to list all nodes in the nodesfile and the second a command to trigger a node to drop the transport and reinitialize it with the nde nodes file

(This used to be ctdb commit 4bc20ac73e9fa94ffd43cccb6eeb438eeff9963c)

16 years agothe ctdb structure must make its own copy of the ->address field and not just
Ronnie Sahlberg [Tue, 19 Feb 2008 03:35:15 +0000 (14:35 +1100)]
the ctdb structure must make its own copy of the ->address field and not just
copy the content of the nodes structure.

this ctdb_address structure contains a pointer which is talloced hanging off the structure itself.
If we copy the content of this structure as we did in assigning to ctdb->address from nodes[i]
then if we talloc_free() the node structure we end up with a wild pointer in ctdb->address

(This used to be ctdb commit 644a7248548260d37df432979b129797750907f4)

16 years agoread the current debuglevel in each loop in the recovery daemon so that we
Ronnie Sahlberg [Mon, 18 Feb 2008 08:38:04 +0000 (19:38 +1100)]
read the current debuglevel in each loop in the recovery daemon so that we
pick up when they change in the parent daemon

(This used to be ctdb commit 792d5471ff0c2947b6e66183925860de27f30eaf)

16 years agofrom Mathieu PARENT <math.parent@gmail.com>
Ronnie Sahlberg [Tue, 12 Feb 2008 21:20:20 +0000 (08:20 +1100)]
from Mathieu PARENT <math.parent@gmail.com>

Simulate "nice service" on systems that do not have "service"

(This used to be ctdb commit d0e6dcbadaf41745d423640e5ff5bafd9f68eb88)

16 years agoFrom Mathieu PARENT <math.parent@gmail.com>
Ronnie Sahlberg [Tue, 12 Feb 2008 21:17:53 +0000 (08:17 +1100)]
From Mathieu PARENT <math.parent@gmail.com>

Set the correct permissions for events.d/README

(This used to be ctdb commit d8953c89adc7d11d2fecc61323b7e1456b56fcaa)

16 years agoadd helpers to stop/start nfs lockmanager on different platforms
Ronnie Sahlberg [Sun, 10 Feb 2008 22:52:09 +0000 (09:52 +1100)]
add helpers to stop/start nfs lockmanager on different platforms

(This used to be ctdb commit 3b797d851bd4bdb8ec2b3981061c668d2cf0f97c)

16 years agocreate a startstop_nfs function that can start/stop the nfs service of different...
Ronnie Sahlberg [Sun, 10 Feb 2008 22:35:37 +0000 (09:35 +1100)]
create a startstop_nfs function that can start/stop the nfs service of different platforms

(This used to be ctdb commit f6cc6bd1f62138fbf812d1917f7341e2fa2323da)

16 years agoupdate to revision 28
Ronnie Sahlberg [Fri, 8 Feb 2008 04:12:06 +0000 (15:12 +1100)]
update to revision 28

(This used to be ctdb commit ca266a989ba1c6fcac48b1739e7cff7766481df7)

16 years agocarefully step around the recovery area when doing a tdb_wipe_all. This prevents
Andrew Tridgell [Fri, 8 Feb 2008 03:10:54 +0000 (14:10 +1100)]
carefully step around the recovery area when doing a tdb_wipe_all. This prevents
problems with wipe_all on databases that may need crash recovery

(This used to be ctdb commit e7b1349bf8784c151c2651edd99b3f40ebcece1f)

16 years agodon't ship the .git directory in the srpm
Andrew Tridgell [Fri, 8 Feb 2008 02:22:47 +0000 (13:22 +1100)]
don't ship the .git directory in the srpm

(This used to be ctdb commit 0e88962c3f37eb38c4c6bfec918ce833b4481170)

16 years agoMerge git://git.samba.org/tridge/ctdb
Ronnie Sahlberg [Thu, 7 Feb 2008 21:21:03 +0000 (08:21 +1100)]
Merge git://git.samba.org/tridge/ctdb

(This used to be ctdb commit a8762bf8ca1958985896f174ccafe09361092d09)

16 years agofixed a problem with tdb growing after each recovery
Andrew Tridgell [Thu, 7 Feb 2008 12:01:06 +0000 (23:01 +1100)]
fixed a problem with tdb growing after each recovery

(This used to be ctdb commit d754380961e67271809fed6c44f45356fe7a9c77)

16 years agodont use absolute pathnames for the netstat tool
Ronnie Sahlberg [Thu, 7 Feb 2008 04:41:48 +0000 (15:41 +1100)]
dont use absolute pathnames for the netstat tool
it can be either in /bin or /usr/bin

(This used to be ctdb commit 4ab09e90a8a81b26d2e2af168cfce3c49a98c0e5)

16 years agodont use an absolute pathname for the touch command
Ronnie Sahlberg [Thu, 7 Feb 2008 04:38:59 +0000 (15:38 +1100)]
dont use an absolute pathname for the touch command

(This used to be ctdb commit dbfa5cb7f91b5c3c7a2dcf337f60b5c4c188a688)

16 years agodont use an absolute pathname for the iptables tool
Ronnie Sahlberg [Thu, 7 Feb 2008 04:36:26 +0000 (15:36 +1100)]
dont use an absolute pathname for the iptables tool

(This used to be ctdb commit 8f87385c09b16c0e32d797c4b442865d8185d9ee)

16 years agodont use an absolute path for the basename command
Ronnie Sahlberg [Thu, 7 Feb 2008 04:33:52 +0000 (15:33 +1100)]
dont use an absolute path for the basename command

(This used to be ctdb commit 2519d30162fa3e9d5d81efd374543a2e4dfce545)

16 years agoin the 91.lvs event script
Ronnie Sahlberg [Wed, 6 Feb 2008 22:42:35 +0000 (09:42 +1100)]
in the 91.lvs event script

IF lvs has been configured, check that the ipvsadm package has also
been installed since we depend on it.
If not, log an error and return 1

(This used to be ctdb commit 506174bbc47f1176122be2e55099149e3db27d57)

16 years agochange the IF interface is a BOND THEN xxx ELSE assume everything is ethernet
Ronnie Sahlberg [Wed, 6 Feb 2008 22:35:46 +0000 (09:35 +1100)]
change the IF interface is a BOND THEN xxx ELSE assume everything is ethernet

into a case and add an arm for ib*) (infiniband interfaces)

Dont try using ethtool on ib devices
(mii_tool doesnt work either)

IB does have a command ibv_devinfo   which can tell whether a physical port
is up or not   but it seems nontrivial to map this into a interface name such as ib0

(This used to be ctdb commit ab6bd25542946a732b4378f5476edfb466d6c000)

16 years agoadd documentation on how to set up ha-iscsi with ctdb
Ronnie Sahlberg [Wed, 6 Feb 2008 08:08:03 +0000 (19:08 +1100)]
add documentation on how to set up ha-iscsi with ctdb

(This used to be ctdb commit 1060af64efcba7d2bc8f2187a0005b8c18086017)

16 years agoadd monitoring of iscsi to the eventscript
Ronnie Sahlberg [Wed, 6 Feb 2008 03:26:35 +0000 (14:26 +1100)]
add monitoring of iscsi to the eventscript

(This used to be ctdb commit e190c4d71c0b54f4c6615258986770eba15f335d)

16 years agoupdate ctdb revision
Ronnie Sahlberg [Wed, 6 Feb 2008 03:07:53 +0000 (14:07 +1100)]
update ctdb revision

(This used to be ctdb commit ec0c7b55d131ad37b5b1b918c886fcb07d85a9e6)

16 years agoupdate ctdb version
Ronnie Sahlberg [Wed, 6 Feb 2008 03:00:04 +0000 (14:00 +1100)]
update ctdb version
change flags for 41.httpd

(This used to be ctdb commit 88527a4a5423014f9911fa6061632215e153eb7e)

16 years agoadd an eventscript to start/stop iscsi
Ronnie Sahlberg [Wed, 6 Feb 2008 01:41:00 +0000 (12:41 +1100)]
add an eventscript to start/stop iscsi

(This used to be ctdb commit 1aecd8c9dc2855c40c9182f30e4e71bdae5705e3)

16 years agonicer use of structures and use isalpha()
Andrew Tridgell [Mon, 4 Feb 2008 23:36:06 +0000 (10:36 +1100)]
nicer use of structures and use isalpha()

(This used to be ctdb commit 19b5fbcd16596a4b6c22056585dd4bd988db3db7)

16 years agoSpecify and print debuglevels by name and not by number
Ronnie Sahlberg [Mon, 4 Feb 2008 23:26:23 +0000 (10:26 +1100)]
Specify and print debuglevels by name and not by number

(This used to be ctdb commit 79ad830294b8b677fbd0c5ad7ed6fbde71f74f8d)

16 years agoMerge branch 'master' of git://git.samba.org/tridge/ctdb
Ronnie Sahlberg [Mon, 4 Feb 2008 09:28:19 +0000 (20:28 +1100)]
Merge branch 'master' of git://git.samba.org/tridge/ctdb

(This used to be ctdb commit 08164957f948f0c9f604c260ccf658df9b3440b7)

16 years agomerge from ronnie
Andrew Tridgell [Mon, 4 Feb 2008 09:07:15 +0000 (20:07 +1100)]
merge from ronnie

(This used to be ctdb commit e7b57d38cf7255be823a223cf15b7526285b4f1c)

16 years agoMerge branch 'master' of git://git.samba.org/tridge/ctdb
Ronnie Sahlberg [Mon, 4 Feb 2008 06:45:45 +0000 (17:45 +1100)]
Merge branch 'master' of git://git.samba.org/tridge/ctdb

(This used to be ctdb commit 5e2f0805bbfe3b2d1dbdbd259962a6d76c8767fb)

16 years agoadded debug constants to allow for better mapping to syslog levels
Andrew Tridgell [Mon, 4 Feb 2008 06:44:24 +0000 (17:44 +1100)]
added debug constants to allow for better mapping to syslog levels

(This used to be ctdb commit 7ba8f1dde318eab03f4257e5a89fd23e7281e502)

16 years agoprepare for release
Ronnie Sahlberg [Wed, 30 Jan 2008 22:24:02 +0000 (09:24 +1100)]
prepare for release

(This used to be ctdb commit 1226e50d466da4caae1f44a41d594f3a2c322108)

16 years agofixed a crash bug in the new transaction code
Andrew Tridgell [Wed, 30 Jan 2008 22:18:26 +0000 (09:18 +1100)]
fixed a crash bug in the new transaction code

(This used to be ctdb commit 0d298e863c8ab2945fd329661c09ec6889152326)

16 years agoremoved dependence on dprintf
Andrew Tridgell [Tue, 29 Jan 2008 03:31:51 +0000 (14:31 +1100)]
removed dependence on dprintf

(This used to be ctdb commit c156db449218bf9432e3a6cb3ce0f617197c9069)

16 years agoupdate for release 1.0.25
Andrew Tridgell [Tue, 29 Jan 2008 03:11:49 +0000 (14:11 +1100)]
update for release 1.0.25

(This used to be ctdb commit 86d57412eb94ad1f46e39951649d717f18bffe64)

16 years agoupdate download instructions for new git tree
Andrew Tridgell [Tue, 29 Jan 2008 03:08:09 +0000 (14:08 +1100)]
update download instructions for new git tree

(This used to be ctdb commit f0a787f2e6ac98b13b61316f410cbb299042242b)

16 years agoignore some autogenerated test files
Andrew Tridgell [Tue, 29 Jan 2008 03:00:16 +0000 (14:00 +1100)]
ignore some autogenerated test files

(This used to be ctdb commit 63ac38a0c5bc81c42db67b86485a9cccd6af8a19)

16 years agomerge async recovery changes from Ronnie
Andrew Tridgell [Tue, 29 Jan 2008 02:59:28 +0000 (13:59 +1100)]
merge async recovery changes from Ronnie

(This used to be ctdb commit 576e317640d25f8059114f15c6f1ebcee5e5b6e2)

16 years agouseful for building with equivalent options to the spec file
Andrew Tridgell [Tue, 29 Jan 2008 00:46:32 +0000 (11:46 +1100)]
useful for building with equivalent options to the spec file

(This used to be ctdb commit e4a817f750f8e8833f624059dd57a7febaae55ff)

16 years agoadded an ignore file
Andrew Tridgell [Tue, 29 Jan 2008 00:46:09 +0000 (11:46 +1100)]
added an ignore file

(This used to be ctdb commit 33521ed8300ebf32fb3d9c041d8217e3b8744b73)

16 years agopartial merge from ronnie
Andrew Tridgell [Tue, 29 Jan 2008 00:39:06 +0000 (11:39 +1100)]
partial merge from ronnie

(This used to be ctdb commit fd316deb8a9e0545c8efa1bfc8ad83962b310405)

16 years agofixed egrep pattern to use more compatible expression for spaces
Andrew Tridgell [Mon, 28 Jan 2008 06:27:16 +0000 (17:27 +1100)]
fixed egrep pattern to use more compatible expression for spaces

(This used to be ctdb commit 2da3871417bb05da8802093ceeb02e89102d99ad)

16 years agomake ctdb dumpmemory work remotely, and dump the talloc
Andrew Tridgell [Tue, 22 Jan 2008 03:22:41 +0000 (14:22 +1100)]
make ctdb dumpmemory work remotely, and dump the talloc
memory tree to stdout. This is much more useful than putting it in the log, and also fixes
a bug where the pipe would overflow internally and cause ctdbd to lockup

(This used to be ctdb commit e236979e2162d9bd7a495086342168a696cf76c5)

16 years agomerged 60.nfs changes from ronnie
Andrew Tridgell [Mon, 21 Jan 2008 01:46:11 +0000 (12:46 +1100)]
merged 60.nfs changes from ronnie
(This used to be ctdb commit aa7996d4555883360082d9017185464b3551ae08)

16 years agomerge from samba4
Andrew Tridgell [Fri, 18 Jan 2008 04:48:36 +0000 (15:48 +1100)]
merge from samba4
(This used to be ctdb commit 21245b894b32f232251fd7c0e2fbfd073fb10514)

16 years agomore efficient freelist allocation
Andrew Tridgell [Fri, 18 Jan 2008 02:32:54 +0000 (13:32 +1100)]
more efficient freelist allocation
This takes advantage of the fact that we can do left merges but not right merges
By allocating data from the end of the freelist entry rather than the beginning
we can guarantee that if we immediately free the record again it will be merged
with the previous freelist entry, reducing fragmentation

(This used to be ctdb commit 6d159f2c115dd5e9b8bab8798f7ac710b4427593)

16 years agomerge from ronnie
Andrew Tridgell [Thu, 17 Jan 2008 05:46:56 +0000 (16:46 +1100)]
merge from ronnie
(This used to be ctdb commit 5f6d59b9d18c694d82591238bc7a6bb98726a3ed)