2007-06-03 11:39:11 +04:00
%define initdir %{_sysconfdir}/init.d
2010-05-26 04:01:37 +04:00
Name : ctdb
2007-05-28 00:48:18 +04:00
Summary : Clustered TDB
Vendor : Samba Team
Packager : Samba Team <samba@samba.org>
2010-07-02 07:21:08 +04:00
Version : @VERSION@
Release : 1
2007-05-28 00:48:18 +04:00
Epoch : 0
2007-07-10 09:29:31 +04:00
License : GNU GPL version 3
2007-05-28 00:48:18 +04:00
Group : System Environment/Daemons
2007-06-01 15:10:49 +04:00
URL : http://ctdb.samba.org/
2007-05-28 00:48:18 +04:00
2007-06-11 06:30:32 +04:00
Source : ctdb-%{version} .tar.gz
2007-05-28 00:48:18 +04:00
2009-10-20 19:02:16 +04:00
Prereq : /bin/mktemp /usr/bin/killall
2007-05-28 00:48:18 +04:00
Prereq : fileutils sed /etc/init.d
Provides : ctdb = %{version}
Prefix : /usr
BuildRoot : %{_tmppath} /%{name} -%{version} -root
%description
ctdb is the clustered database used by samba
#######################################################################
2010-05-26 04:01:37 +04:00
2007-05-28 00:48:18 +04:00
%prep
%setup -q
# setup the init script and sysconfig file
2007-06-01 17:25:33 +04:00
%setup -T -D -n ctdb-%{version} -q
2007-05-28 00:48:18 +04:00
%build
2009-01-19 16:46:30 +03:00
## check for ccache
if ccache -h >/dev/null 2>&1 ; then
CC=" c c a c h e g c c "
else
CC=" g c c "
fi
export CC
2007-05-28 00:48:18 +04:00
## always run autogen.sh
./autogen.sh
2008-04-03 10:07:00 +04:00
CFLAGS=" $RPM_OPT_FLAGS $ E X T R A - O 0 - D _ G N U _ S O U R C E - D C T D B _ V E R S = \" %{version} - %{release} \" " ./configure \
2007-05-28 00:48:18 +04:00
--prefix=%{_prefix} \
2007-05-29 10:23:47 +04:00
--sysconfdir=%{_sysconfdir} \
2007-06-09 09:28:32 +04:00
--mandir=%{_mandir} \
2007-05-29 10:23:47 +04:00
--localstatedir=" / v a r "
2007-05-28 00:48:18 +04:00
2008-07-05 16:42:46 +04:00
make docdir=%{_docdir} showflags
make docdir=%{_docdir}
2007-05-28 00:48:18 +04:00
%install
# Clean up in case there is trash left from a previous build
rm -rf $RPM_BUILD_ROOT
# Create the target build directory hierarchy
mkdir -p $RPM_BUILD_ROOT %{_sysconfdir} /sysconfig
2007-06-03 11:39:11 +04:00
mkdir -p $RPM_BUILD_ROOT %{_sysconfdir} /init.d
2007-05-28 00:48:18 +04:00
2008-07-05 16:42:46 +04:00
make DESTDIR=$RPM_BUILD_ROOT docdir=%{_docdir} install
2007-05-28 00:48:18 +04:00
2007-06-02 13:40:07 +04:00
install -m644 config/ctdb.sysconfig $RPM_BUILD_ROOT %{_sysconfdir} /sysconfig/ctdb
install -m755 config/ctdb.init $RPM_BUILD_ROOT %{initdir} /ctdb
2007-05-29 16:53:28 +04:00
2009-12-05 01:18:12 +03:00
mkdir -p $RPM_BUILD_ROOT %{_docdir} /ctdb/tests/bin
install -m755 tests/bin/ctdb_transaction $RPM_BUILD_ROOT %{_docdir} /ctdb/tests/bin
2007-05-28 00:48:18 +04:00
# Remove "*.old" files
find $RPM_BUILD_ROOT -name " * . o l d " -exec rm -f {} \;
%clean
rm -rf $RPM_BUILD_ROOT
#######################################################################
## Files section ##
#######################################################################
%files
%defattr (-,root,root)
%config (noreplace) %{_sysconfdir} /sysconfig/ctdb
2009-03-31 07:38:52 +04:00
%config (noreplace) %{_sysconfdir} /ctdb/notify.sh
2010-04-22 08:02:11 +04:00
%config (noreplace) %{_sysconfdir} /ctdb/ctdb-crash-cleanup.sh
2008-07-09 04:24:19 +04:00
%config (noreplace) %{_sysconfdir} /ctdb/functions
2008-06-27 03:31:18 +04:00
%attr (755,root,root) %{initdir} /ctdb
2007-05-28 00:48:18 +04:00
2008-07-09 05:08:44 +04:00
%{_docdir} /ctdb/README.eventscripts
2008-12-04 06:35:00 +03:00
%{_docdir} /ctdb/recovery-process.txt
2007-08-15 09:01:31 +04:00
%{_sysconfdir} /ctdb/events.d/00.ctdb
2009-09-28 08:06:40 +04:00
%{_sysconfdir} /ctdb/events.d/01.reclock
2007-06-04 09:09:03 +04:00
%{_sysconfdir} /ctdb/events.d/10.interface
2009-12-19 20:26:01 +03:00
%{_sysconfdir} /ctdb/events.d/13.per_ip_routing
2009-03-31 13:00:00 +04:00
%{_sysconfdir} /ctdb/events.d/11.natgw
2009-06-23 05:29:26 +04:00
%{_sysconfdir} /ctdb/events.d/11.routing
2008-10-15 09:29:09 +04:00
%{_sysconfdir} /ctdb/events.d/20.multipathd
2009-05-25 05:46:47 +04:00
%{_sysconfdir} /ctdb/events.d/31.clamd
2011-08-11 04:00:53 +04:00
%{_sysconfdir} /ctdb/events.d/40.fs_use
2007-06-05 12:14:01 +04:00
%{_sysconfdir} /ctdb/events.d/40.vsftpd
2008-01-11 02:44:16 +03:00
%{_sysconfdir} /ctdb/events.d/41.httpd
2007-06-04 09:09:03 +04:00
%{_sysconfdir} /ctdb/events.d/50.samba
%{_sysconfdir} /ctdb/events.d/60.nfs
2010-12-06 03:30:24 +03:00
%{_sysconfdir} /ctdb/events.d/60.ganesha
2010-05-04 07:56:55 +04:00
%{_sysconfdir} /ctdb/events.d/62.cnfs
2008-02-06 06:00:04 +03:00
%{_sysconfdir} /ctdb/events.d/70.iscsi
2008-01-07 06:31:13 +03:00
%{_sysconfdir} /ctdb/events.d/91.lvs
2007-05-31 05:09:45 +04:00
%{_sysconfdir} /ctdb/statd-callout
2007-05-29 09:15:00 +04:00
%{_sbindir} /ctdbd
%{_bindir} /ctdb
2007-08-04 04:16:37 +04:00
%{_bindir} /smnotify
2009-04-29 19:58:17 +04:00
%{_bindir} /ping_pong
2011-05-04 16:28:26 +04:00
%{_bindir} /ltdbtool
2007-09-05 08:20:34 +04:00
%{_bindir} /ctdb_diagnostics
2007-05-30 05:17:52 +04:00
%{_bindir} /onnode
2007-06-09 09:28:32 +04:00
%{_mandir} /man1/ctdb.1.gz
2007-06-10 04:45:52 +04:00
%{_mandir} /man1/ctdbd.1.gz
2007-06-12 07:44:01 +04:00
%{_mandir} /man1/onnode.1.gz
2011-05-04 16:28:26 +04:00
%{_mandir} /man1/ltdbtool.1.gz
2011-03-26 13:55:30 +03:00
%{_mandir} /man1/ping_pong.1.gz
2010-05-26 04:01:37 +04:00
%{_libdir} /pkgconfig/ctdb.pc
%{_docdir} /ctdb/tests/bin/ctdb_transaction
2010-08-23 10:00:19 +04:00
%package devel
Summary : CTDB developmnet libraries
Group : Development
%description devel
development libraries for ctdb
2010-05-26 04:01:37 +04:00
%files devel
%defattr (-,root,root)
2008-07-09 07:14:47 +04:00
%{_includedir} /ctdb.h
2010-05-20 09:48:30 +04:00
%{_includedir} /ctdb_client.h
%{_includedir} /ctdb_protocol.h
2008-07-09 07:14:47 +04:00
%{_includedir} /ctdb_private.h
2010-06-02 03:18:48 +04:00
%{_includedir} /ctdb_typesafe_cb.h
2010-05-26 04:01:37 +04:00
%{_libdir} /libctdb.a
2009-12-05 01:18:12 +03:00
2007-12-04 07:50:43 +03:00
%changelog
2012-03-01 05:36:03 +04:00
* Thu Mar 1 2012 : Version 1.13
- This is the new stable branch for modern features for ctdb.
Main new features are performance/scaling improvements for
concurrnet fetch and fetch_lock operations.
2011-11-08 09:20:09 +04:00
* Tue Nov 8 2011 : Version 1.12
- Add new tunable : AllowClientDBAttach that can be used to stop
client db access during maintenance operations
- Updated logging for interfaces that are missing or dont exist but are
configured to be used.
- Add timeout argument to ctdb_cmdline_client
- PDMA support
- Initial support for 'readonly' delegations for ctdb databases
This will when finished greatly improve performance for contended hot
records that are used for just read-access.
- New 'ctdb cattdb' command
- Massive updates to tests and eventscripts
- LCP2 ip allocation algorithm
- Record Fetch collapse. Collapse multiple fetch-lock requests from cients
to a single network fetch and defer other concurrent requests until the
initial fetch completes, and then service the deferred calls locally.
This will greatly improve performance for contended hot records
where clients request write-locks.
2011-09-01 06:30:00 +04:00
* Thu Sep 1 2011 : Version 1.11
- Major updates.
2010-10-21 04:12:30 +04:00
* Tue May 25 2010 : Version 1.10
- New version 1.10
2010-05-25 06:47:15 +04:00
* Tue May 25 2010 : Version 1.9
- Lots of changes
2010-03-24 09:21:10 +03:00
* Wed Mar 25 2010 : Version 1.0.114
- Lots of changes from Metze
2010-01-12 23:12:08 +03:00
* Wed Jan 13 2010 : Version 1.0.113
- Incorrect use of dup2() could cause ctdb to spin eating 100% cpu.
2010-01-12 13:07:45 +03:00
* Tue Jan 12 2010 : Version 1.0.112
- Revert the use of wbinfo --ping-dc as it is proving too unreliable.
- Minor testsuite changes.
2009-12-18 07:16:04 +03:00
* Fri Dec 18 2009 : Version 1.0.111
- Fix a logging bug when an eventscript is aborted that could cause a crash.
- Add back cb_status that was lost in a previous commit.
2009-12-18 04:32:58 +03:00
* Fri Dec 18 2009 : Version 1.0.110
- Metxe: fix for filedescriptor leak in the new eventscript code.
- Rusty: fix for a crash bug in the eventscript code.
2009-12-17 07:49:01 +03:00
* Thu Dec 17 2009 : Version 1.0.109
- Massive eventscript updates. (bz58828)
- Nice the daemon instead of using realtime scheduler, also use mlockall() to
reduce the risk of blockign due to paging.
- Workarounds for valgrind when forking once for each script. Valgrind consumes
massive cpu when terminating the scripts on virtual systems.
- Sync the tdb library with upstream, and use the new TDB_DISALLOW_NESTING flag.
- Add new command " c t d b d u m p d b b a c k u p "
- Start using the new tdb check framework to validate tdb files upon startup.
- A new framework where we can control health for individual tdb databases.
- Fix a crash bug in the logging code.
- New transaction code for persistent databases.
- Various other smaller fixes.
2009-12-07 11:04:41 +03:00
* Mon Dec 7 2009 : Version 1.0.108
- Transaction updates from Michael Adam.
- Use the new wbinfo --ping-dc instead of -p in the eventscript for samba
the check if winbindd is ok.
- Add a better " p r o c e s s - e x i s t " for samba so it will automatically
reap smbd's on stopped and banned nodes to reclaim subrecords.
This will be done a bit differently in the next release.
- Use a statically allocated buffer for the 'first-time' capture buffer
to reduce the pressure on malloc/free.
2009-12-02 03:28:42 +03:00
* Wed Dec 2 2009 : Version 1.0.107
- fix for rusty to solve a double-free that can happen when there are
multiple packets queued and the connection is destroyed before
all packets are processed.
2009-12-02 03:26:51 +03:00
* Tue Dec 1 2009 : Version 1.0.106
- Buildscript changes from Michael Adam
- Dont do a full recovery when there is a mismatch detected for ip addresses,
just do a less disruptive ip-reallocation
- When starting ctdbd, wait until all initial recoveries have finished
before we issue the " s t a r t u p " event.
So dont start services or monitoring until the cluster has
stabilized.
- Major eventscript overhaul by Ronnie, Rusty and Martins and fixes of a few
bugs found.
2009-11-19 03:08:14 +03:00
* Thu Nov 19 2009 : Version 1.0.105
- Fix a bug where we could SEGV if multiple concurrent " c t d b e v e n t s c r i p t . . . "
are used and some of them block.
- Monitor the daemon from the syslog child process so we shutdown cleanly when
the main daemon terminates.
- Add a 500k line ringbuffer in memory where all log messages are stored.
- Add a " c t d b g e t l o g < l e v e l > " command to pull log messages from the in memory
ringbuffer.
- From martin : fixes to cifs and nfs autotests
- from michael a : fix a bashism in 11.natgw
2009-11-06 03:16:05 +03:00
* Fri Nov 6 2009 : Version 1.0.104
- Suggestion from Metze, we can now use killtcp to kill local connections
for nfs so change the killtcp script to kill both directions of an NFS
connection.
We used to deliberately only kill one direction in these cases due to
limitations.
- Suggestion from christian Ambach, when using natgw, try to avoid using a
UNHEALTHY node as the natgw master.
- From Michael Adam: Fix a SEGV bug in the recent change to the eventscripts
to allow the timeout to apply to each individual script.
- fix a talloc bug in teh vacuuming code that produced nasty valgrind
warnings.
- From Rusty: Set up ulimit to create core files for ctdb, and spawned
processes by default. This is useful for debugging and testing but can be
disabled by setting CTDB_SUPRESS_COREFILE=yes in the sysconfig file.
- Remove the wbinfo -t check from the startup check that winbindd is happy.
- Enhance the test for bond devices so we also check if the sysadmin have
disabled all slave devices using " i f d o w n " .
2009-11-03 03:46:37 +03:00
* Tue Nov 3 2009 : Version 1.0.103
- Dont use vacuuming on persistent databases
- Michael A : transaction updates to persistent databases
- Dont activate service automatically when installing the RPM. Leave this to the admin.
- Create a child process to send all log messages to, to prevent a hung/slow syslogd
from blocking the main daemon. In this case, discard log messages instead and let the child
process block.
- Michael A: updates to log messages
2009-10-29 05:49:27 +03:00
* Thu Oct 29 2009 : Version 1.0.102
- Wolfgang: fix for the vacuuming code
- Wolfgang: stronger tests for persistent database filename tests
- Improve the log message when we refuse to startup since wbinfo -t fails
to make it easier to spot in the log.
- Update the uptime command output and the man page to indicate that
" t i m e s i n c e l a s t . . . " if from either the last recovery OR the last failover
- Michael A: transaction updates
2009-10-28 09:42:01 +03:00
* Wed Oct 28 2009 : Version 1.0.101
- create a separate context for non-monitoring events so they dont interfere with the monitor event
- make sure to return status 0 in teh callback when we abort an event
2009-10-28 08:18:28 +03:00
* Wed Oct 28 2009 : Version 1.0.100
- Change eventscript handling to allow EventScriptTimeout for each individual script instead of for all scripts as a whole.
- Enhanced logging from the eventscripts, log the name and the duration for each script as it finishes.
- Add a check to use wbinfo -t for the startup event of samba
- TEMP: allow clients to attach to databases even when teh node is in recovery mode
- dont run the monitor event as frequently after an event has failed
- DEBUG: in the eventloops, check the local time and warn if the time changes backward or rapidly forward
- From Metze, fix a bug where recovery master becoming unhealthy did not trigger an ip failover.
- Disable the multipath script by default
- Automatically re-activate the reclock checking if the reclock file is specified at runtime. Update manpage to reflect this.
- Add a mechanism where samba can register a SRVID and if samba unexpectedly disconnects, a message will be broadcasted to all other samba daemons.
- Log the pstree on hung scripts to a file in /tmp isntead of /var/log/messages
- change ban count before unhealthy/banned to 10
2009-10-22 11:16:33 +04:00
* Thu Oct 22 2009 : Version 1.0.99
- Fix a SEGV in the new db priority code.
- From Wolfgang : eliminate a ctdb_fatal() if there is a dmaster violation detected.
- During testing we often add/delete eventscripts at runtime. This could cause an eventscript to fail and mark the node unhealthy if an eventscript was deleted while we were listing the names. Handle the errorcode and make sure the node does not becomne unhealthy in this case.
- Lower the debuglevel for the messages when ctdb creates a filedescruiptor so we dont spam the logs with these messages.
- Dont have the RPM automatically restart ctdb
- Volker : add a missing transaction_cancel() in the handling of persistent databases
- Treat interfaces with the anme ethX* as bond devices in 10.interfaces so we do the correct test for if they are up or not.
2009-10-20 08:36:35 +04:00
* Tue Oct 20 2009 : Version 1.0.98
- Fix for the vacuuming database from Wolfgang M
- Create a directory where the test framework can put temporary overrides
to variables and functions.
- Wait a lot longer before shutting down the node when the reclock file
is incorrectly configured, and log where it is configured.
- Try to avoid running the " m o n i t o r " event when databases are frozen.
- Add logging for every time we create a filedescriptor so we can trap
fd leaks.
2009-10-15 00:41:56 +04:00
* Thu Oct 14 2009 : Version 1.0.97
- From martins : update onnode.
Update onnode to allow specifying an alternative nodes file from
the command line and also to be able to specify hostnames on the
list of targets :
onnode host1,host2,...
2009-10-14 07:52:24 +04:00
* Tue Oct 13 2009 : Version 1.0.96
- Add more debugging output when eventscripts have trouble. Print a
" p s t r e e - p " to the log when scripts have hung.
- Update the initscript, only print the " N o r e c l o c k f i l e u s e d " warning
when we do " s e r v i c e c t d b s t a r t " , dont also print them for all other
actions.
- When changing between unhealthy/healthy state, push a request to the
recovery master to perform an ip reallocation instead of waiting for the
recovery master to pull and check the state change.
- Fix a bug in the new db-priority handling where a pre-.95 recovery master
could no longer lock the databases on a post-.95 daemon.
- Always create the nfs state directories during the " m o n i t o r " event.
This makes it easier to configure and enable nfs at runtime.
- From Volker, forward-port a simper deadlock avoiding patch from the 1.0.82
branch. This is a simpler versionof the " d b p r i o r i t y l o c k o r d e r " patch
that went into 1.0.95, and will be kept for a few versions until samba
has been updated to use the functionality from 1.0.95.
2009-10-12 11:53:20 +04:00
* Mon Oct 12 2009 : Version 1.0.95
- Add database priorities. Allow samba to set the priority of databases
and lock the databases in priority order during recovery
to avoid a deadlock when samba locks one database then blocks indefinitely
while waiting for the second databaso to become locked.
- Be aggressive and ban nodes where the recovery transaction start call
fails.
2009-10-08 12:17:57 +04:00
* Thu Oct 10 2009 : Version 1.0.94
- Be very aggressive and quickly ban nodes that can not freeze their databases
2009-10-06 10:05:14 +04:00
* Tue Oct 8 2009 : Version 1.0.93
- When adding an ip, make sure to update this assignment on all nodes
so it wont show up as -1 on other nodes.
- When adding an ip and immediately deleting it, it was possible that
the daemon would crash accessing already freed memory.
Readjust the memory hierarchy so the destructors are called in the right order.
- Add a handshake to the recovery daemon to eliminate some rare cases where
addip/delip might cause a recovery to occur.
- updated onnode documenation from Martin S
- Updates to the natgw eventscript to allow disabling natgw at runtime
2009-10-02 08:38:16 +04:00
* Fri Oct 2 2009 : Version 1.0.92
- Test updates and merge from martin
- Add notification for " s t a r t u p "
- Add documentation for notification
- from martin, a fix for restarting vsftpd in the eventscript
2009-09-29 07:31:41 +04:00
* Tue Sep 29 2009 : Version 1.0.91
- New vacuum and repack design from Wolgang Mueller.
- Add a new eventscript 01.reclock that will first mark a node unhealthy and later ban the node if the reclock file can not be accessed.
- Add machinereadable output to the ctdb getreclock command
- merge transaction updates from Michael Adam
- In the new banning code, reset the culprit count to 0 for all nodes that could successfully compelte a full recovery.
- dont mark the recovery master as a ban culprit because a node in the cluster needs a recovery. this happens naturally when using ctdb recover command so dont make this cause a node to be banned.
2009-09-12 01:30:18 +04:00
* Sat Sep 12 2009 : Version 1.0.90
- Be more forgiving for eventscripts that hang during startup
- Fix for a banning bug in the new banning logic
2009-09-03 21:05:37 +04:00
* Thu Sep 3 2009 : Version 1.0.89
- Make it possible to manage winbind independently of samba.
- Add new prototype banning code
- Overwrite the vsftpd state file instead of appending. This eliminates
annoying errors in the log.
- Redirect some iptables commands to dev null
- From Michael A, explicitely set the broadcast when we takeover a public ip
- Remove a reclock file check we no longer need
- Skip any persistent database files ending in .bak
2009-08-17 05:04:40 +04:00
* Mon Aug 17 2009 : Version 1.0.88
- Add a new state for eventscripts : DISABLED.
Add two new commands " c t d b e n a b l e s c r i p t / d i s a b l e s c r i p t " to enable/disable
eventscripts at runtime.
- Bugfixes for TDB from rusty.
- Merge/Port changes from upstream TDB library by rusty.
- Additional new tests from MartinS. Tests for stop/continue.
- Initial patch to rework vacuuming/repacking process from Wolfgang Mueller.
- Updates from Michael Adam for persistent writes.
- Updates from MartinS to handle the new STOPPED bit in the test framework.
- Make it possible to enable/disable the RECMASTER and LMASTER roles
at runtime. Add two new commands
" c t d b s e t l m a s t e r r o l e / s e t r e c m a s t e r r o l e o n / o f f "
- Make it possible to enable/disable the natgw feature at runtime. Add
the command " c t d b s e t n a t g w s t a t e o n / o f f "
2009-07-17 07:01:11 +04:00
* Fri Jul 17 2009 : Version 1.0.87
- Add a new event " s t o p p e d " that is called when a node is stopped.
- Documentation of the STOPPED flag and the stop/continue commands
- Make it possible to start a node in STOPPED mode.
- Add a new node flag : STOPPED and commands " c t d b s t o p " " c t d b c o n t i n u e "
These commands are similar to " d i a s b l e / e n a b l e " but will also remove the node from the vnnmap, while disable only fails all ip addresses over.
- tests for NFS , CIFS by martins
- major updates to the init script by martins
- Send gratious arps with a 1.1 second stride instead of a 1 second stride to workaround interesting " f e a t u r e s " of common linux stacks.
- Various test enhancements from martins:
- additional other tests
- add tests for grat arp generation, ping during failover, ssh and failover
- New/updated tcp tickle tests and supprot functions
- provide better debugging when a test fails
- make ctdbd restarts more reliable in the tests
- update the " w a i t b a r " to make the wait progress in tests more obvious
- various cleanups
- when dispatching a message to a handler, make the message a real talloc object so that we can reparent the object in the tallic hierarchy.
- document the ipreallocate command
- Updates to enable/disable to use the ipreallocate command to block until the following ipreallocation has completed.
- Update the main daemon and the tools to allow debug level to be a string instead of an integer.
- Update the sysconfig file to show using string literals instead of numeric values for the debuglevels used.
- If no debuglevel is specific, make " c t d b s e t d e b u g " show the available options.
- When trying to allocate network packets, add explicit checks if the network transport has been shutdown before trying and failing, to make log messages easier to read. Add this extra check and logging to every plave packets are allocated.
2009-06-30 03:09:06 +04:00
* Tue Jun 30 2009 : Version 1.0.86
- Do not access the reclock at all if VerifyRecoveryLock is zero, not even try to probe it.
- Allow setting the reclock file as " " , which means that no reclock file at all should be used.
- Document that a reclock file is no longer required, but that it is dangerous.
- Add a control that can be used to set/clear/change the reclock file in the daemon during runtime.
- Update the recovery daemon to poll whether a reclock file should be sued and if so which file at runtime in each monitoring cycle.
- Automatically disable VerifyRecoveryLock everytime a user changes the location of the reclock file.
- do not allow the VerifyRecoveryLock to be set using ctdb setvar if there is no recovery lock file specified.
- Add two commands " c t d b g e t r e c l o c k " and " c t d b s e t r e c l o c k " to modify the reclock file.
2009-06-23 05:30:25 +04:00
* Tue Jun 23 2009 : Version 1.0.85
- From William Jojo : Dont use getopt on AIX
- Make it possible to use " c t d b l i s t n o d e s " also when the daemon is not running
- Provide machinereadable output to " c t d b l i s t n o d e s "
- Dont list DELETED nodes in the ctdb listnodes output
- Try to avoid causing a recovery for the average case when adding/deleting/moving an ip
- When banning a node, drop the IPs on that node only and not all nodes.
- Add tests for NFS and CIFS tickles
- Rename 99.routing to 11.routing so it executes before NFS and LVS scripts
- Increase the default timeout before we deem an unresponsive recovery daemon hung and shutdown
- Reduce the reclock timout to 5 seconds
- Spawn a child process in the recovery daemon ot check the reclock file to
avoid blocking the process if the underlying filesystem is unresponsive
- fix for filedescriptor leak when a child process timesout
- Dont log errors if waitpid() returns -1
- Onnode updates by Martins
- Test and initscript cleanups from Martin S
2009-06-02 09:05:41 +04:00
* Tue Jun 2 2009 : Version 1.0.84
- Fix a bug in onnode that could not handle dead nodes
2009-06-02 07:13:03 +04:00
* Tue Jun 2 2009 : Version 1.0.83
- Document how to remove a ndoe from a running cluster.
- Hide all deleted nodes from ctdb output.
- Lower the loglevel on some eventscript related items
- Dont queue packets to deleted nodes
- When building initial vnnmap, ignode any nonexisting nodes
- Add a new nodestate : DELETED that is used when deleting a node from an
existing cluster.
- dont remove the ctdb socket when shutting down. This prevents a race in the
initscripts when restarting ctdb quickly after stopping it.
- TDB nesting reworked.
- Remove obsolete ipmux
- From Flavio Carmo Junior: Add eventscript and documentation for ClamAV antivirus engine
- From Sumit Bose: fix the regex in the test to handle the new ctdb
statistics output that was recently added.
- change the socket type we use for grauitious arps from the obsolete
AF_INET/SOCK_PACKET to instead use PF_PACKET/SOCK_RAW.
- Check return codes for some functions, from Sumit Bose, based on codereview by Jim Meyering.
- Sumit Bose: Remove structure memeber node_list_file that is no longer used.
- Sumit Bose: fix configure warning for netfilter.h
- Updates to the webpages by Volker.
- Remove error messages about missing /var/log/log.ctdb file from ctdb_diagnostics.sh from christian Ambach
- Additional error logs if hte eventscript switching from dameon to client mode fails.
- track how long it takes for ctdbd and the recovery daemon to perform the rec-lock fcntl() lock attemt and show this in the ctdb statistics output.
2009-05-14 02:55:40 +04:00
* Thu May 14 2009 : Version 1.0.82
- Update the " c t d b l v s m a s t e r " command to return -1 on error.
- Add a -Y flag to " c t d b l v s m a s t e r "
- RHEL5 apache leaks semaphores when crashing. Add semaphore cleanup to the
41.httpd eventscript and try to restart apache when it has crashed.
- Fixes to some tests
- Add a -o option to " o n n o d e " which will redirect all stdout to a file for
each of the nodes.
- Add a natgw and a lvs node specifier to onnode so that we can use
" o n n o d e n a t g w . . . "
- Assign the natgw address to lo instead of the private network so it can also
be used where private and public networks are the same.
- Add GPL boilerplates to two missing scripts.
- Change the natgw prefix NATGW_ to CTDB_NATGW_
2009-05-08 11:29:57 +04:00
* Fri May 8 2009 : Version 1.0.81
- use smbstatus -np instead of smbstatus -n in the 50.samba eventscript
since this avoids performing an expensive traverse on the locking and brlock
databases.
- make ctdb automatically terminate all traverse child processes clusterwide
associated to a client application that terminates before the traversal is
completed.
- From Sumit Bose : fixes to AC_INIT handling.
- From Michael Adam, add Tridge's " p i n g _ p o n g " tool the the ctdb distro since
this is very useful for testing the backend filesystem.
- From Sumit bose, add support for additional 64 bit platforms.
- Add a link from the webpage to Michael Adams SambaXP paper on CTDB.
2009-05-01 06:37:52 +04:00
* Fri May 1 2009 : Version 1.0.80
- change init shutdown level to 01 for ctdb so it stops before any of the other services
- if we can not pull a database from a remote node during recovery, mark that node as a culprit so it becomes banned
- increase the loglevel when we volunteer to drop all ip addresses after beeing in recovery mode for too long. Make this timeout tuneable with " R e c o v e r y D r o p A l l I P s " and have it default to 60 seconds
- Add a new flag TDB_NO_NESTING to the tdb layer to prevent nested transactions which ctdb does not use and does not expect. Have ctdb set this flag to prevent nested transactions from occuring.
- dont unconditionally kill off ctdb and restrat it on " s e r v i c e c t d b s t a r t " . Fail " s e r v i c e c t d b s t a r t " with an error if ctdb is already running.
- Add a new tunable " V e r i f y R e c o v e r y L o c k " that can be set to 0 to prevent the main ctdb daemon to verify that the recovery master has locked the reclock file correctly before allowing it to set the recovery mode to active.
- fix a cosmetic bug with ctdb statistics where certain counters could become negative.
2009-04-08 06:56:52 +04:00
* Wed Apr 8 2009 : Version 1.0.79
- From Mathieu Parent: add a ctdb pkgconfig file
- Fix bug 6250
- add a funciton remove_ip to safely remove an ip from an interface, taking care to workaround an issue with linux alias interfaces.
- Update the natgw eventscript to use the safe remove_ip() function
- fix a bug in the eventscript child process that would cause the socket to be removed.
- dont verify nodemap on banned nodes during cluster monitoring
- Update the dodgy SeqnumInterval to have ms resolution
2009-03-31 13:04:45 +04:00
* Tue Mar 31 2009 : Version 1.0.78
- Add a notify mechanism so we can send snmptraps/email to external management systems when the node becomes unhealthy
- include 11.natgw eventscript in thew install so that the NATGW feature works
2009-03-31 04:42:10 +04:00
* Tue Mar 31 2009 : Version 1.0.77
- Update the 99.routing eventscript to also try to add the routes (back) during a releaseip event. Similar to the reasons why we must add addresses back during releaseip in 10.interfaces
2009-03-25 06:52:08 +03:00
* Wed Mar 24 2009 : Version 1.0.76
- Add a debugging command " x p n n " which can print the pnn of the node even when ctdbd is not running.
- Redo the NATGW implementation to allow multiple disjoing NATGW groups in the same cluster.
2009-03-24 06:08:57 +03:00
* Tue Mar 24 2009 : Version 1.0.75
- Various updates to LVS
- Fix a bug in the killtcp control where we did not set the port correctly
- add a new " c t d b s c r i p t s t a t u s " command that shows the status of the eventrscripts.
2009-03-16 01:27:56 +03:00
* Mon Mar 16 2009 : Version 1.0.74
- Fixes to AIX from C Cowan.
- Fixes to ctdb_diagnostics so we collect correct GPFS data
- Fixes to the net conf list command in ctdb_diagnostics
- Check the static-routes file IFF it exists in ctdb_diagnostics
2009-03-03 23:25:26 +03:00
* Wed Mar 4 2009 : Version 1.0.73
- Add possibility to disable the check of shares for NFS and Samba
- From Sumit Bose, fix dependencies so make -j works
2009-02-18 05:22:26 +03:00
* Wed Feb 18 2009 : Version 1.0.72
- Updates to test scripts by martin s
- Adding a COPYING file
- Use netstat to check for services and ports and fallback to netcat
only if netstat is unavailable.
2009-02-02 06:04:40 +03:00
* Mon Feb 2 2009 : Version 1.0.71
- Additional ipv6 fixes from Michael Adams
2009-01-16 02:13:53 +03:00
* Fri Jan 16 2009 : Version 1.0.70
- IPv6 support is completed. this is backward compatible with ipv4-only
systems. To use IPv6 with samba and ctdb you need current GIT of samba 3.3
or michael adams samba-ctdeb branch.
- Many enhancements to the build system and scripts to make it more SUSE
friendly by Michael Adams.
- Change of how the naming of the package is structured. We are now
using " 1 . 0 . 7 0 " as a release and " - 1 " as the revision instead of as
previously using " 1 . 0 " as release and " . 7 0 " as the revision.
By Michael Adams.
2008-12-18 06:31:28 +03:00
* Thu Dec 18 2008 : Version 1.0.69
- Various fixes to scripts by M Adam
- Dont call ctdb_fatal() when the transport is down during shutdown
2008-12-12 01:39:55 +03:00
* Fri Dec 12 2008 : Version 1.0.68
- Fixes for monitoring of interfaces status from Michael Adam.
- Use -q instead of >/dev/null for grep to enhance readability of the
scripts from Michael Adam.
- Update to the " c t d b r e c o v e r " command. This command now block until the
has completed. This makes it much easier to use in scripts and avoids
the common workaround :
ctdb recover
... loop while waiting for recovery completes ...
continue ...
- Add a CTDB_TIMEOUT variable. If set, this variable provides an automatic
timeout for " c t d b < c o m m a n d > " , similar to using -T <timeout>
- Set a unique errorcode for " c t d b < c o m m a n d > " when it terminates due to a
timeout so that scripts can distinguish between a hung command and what was
just a failure.
- Update " c t d b b a n / u n b a n " so that if the cluster is in recovery these commands
blocks and waits until after recovery is complete before the perform the
ban/unban operation. This is necessary since the recovery process can cause
nodes to become automatically unbanned.
- Update " c t d b b a n / u n b a n " to block until the recovery that will follow shortly
after this command has completed.
This makes it much easier to use in scripts and avoids the common
workaround :
ctdb ban/unban
... loop while waiting for recovery completes ...
continue ...
- Bugfix for the new flags handling in 1.0.67. Abort and restart monitoring
if we failed to get proper nodemaps from a remote node instead of
dereferencing a null pointer.
- If ctdbd was explicitely started with the '--socket' argument, make
ctdbd automatically set CTDB_SOCKET to the specified argument.
This ensures that eventscripts spawned by the ctdb daemon will default to
using the same socket and talk to the correct daemon.
This primarily affects running multiple daemons on the same host and where
you want each instance of ctdb daemons have their eventscripts talk to the
" c o r r e c t " daemon.
- Update " c t d b p i n g " to return an error code if the ping fail so that it
can be used in scripts.
- Update to how to synchronize management of node flags across the cluster.
2008-12-04 07:25:03 +03:00
* Thu Dec 3 2008 : Version 1.0.67
- Add a document describing the recovery process.
- Fix a bug in " c t d b s e t d e b u g " where it would refuse to set a negative
debug level.
- Print the list of literals for debug names if an invalid one was given
to " c t d b s e t d e b u g "
- Redesign how " c t d b r e l o a d n o d e s " works and reduce the amont of tcp teardowns
used during this event.
- Make it possible to delete a public ip from all nodes at once using
" c t d b d e l i p - n a l l "
2008-11-24 11:06:02 +03:00
* Mon Nov 24 2008 : Version 1.0.66
- Allow to change the recmaster even when we are not frozen.
- Remove two redundant SAMBA_CHECK variables from the sysconf example
- After a node failure it can take very long before some lock operations
ctdb needs to perform are allowed/works with gpfs again. Workaround this
by treating a hang/timeout as success.
- Dont override CTDB_BASE is fet in the shell already
- Always send keepalive packets regardless of whether the link is idle or not.
- Rewrite the disable/enable flag update logic to prevent a race between
" c t d b d i s a b l e / e n a b l e " and the recovery daemon when updating the flags to
all nodes.
2008-11-13 02:55:20 +03:00
* Thu Nov 13 2008 : Version 1.0.65
- Update the sysconfig example: The default debug level is 2 (NOTICE) and not
0 (ERROR)
- Add support for a CTDB_SOCKET environment variable for the ctdb command
line tool. If set, this overrides the default socket the ctdb tool will
use.
- Add logging of high latency operations.
2008-10-22 04:06:18 +04:00
* Mon Oct 22 2008 : Version 1.0.64
- Add a context and a timed event so that once we have been in recovery for
too long we drop all public addresses.
2008-10-20 02:47:54 +04:00
* Mon Oct 20 2008 : Version 1.0.63
- Remove logging of " p e r i o d i c c l e a n u p . . . " in 50.samba
- When we reload a nodes file, we must detect this and reload the file also
in the recovery daemon before we try to dereference somethoung beyond the end
of the nodes array.
2008-10-16 10:59:55 +04:00
* Thu Oct 16 2008 : Version 1.0.62
- Allow multiple eventscritps using the same prefix number.
It is undefined which order scripts with the same prefix will execute in.
2008-10-15 09:40:44 +04:00
* Wed Oct 15 2008 : Version 1.0.61
- Use " r o u t e a d d - n e t " instead of " i p r o u t e a d d " when adding routes in 99.routing
- lower the loglevel os several debug statements
- check the status returned from ctdb_ctrl_get_tickles() before we try to print them out to the screen.
- install a new eventscript 20.multipathd whoich can be used to monitor that multipath devices are healthy
2008-10-14 18:32:46 +04:00
* Wed Oct 15 2008 : Version 1.0.60
- Verify that nodes we try to ban/unban are reachable and print an error othervise.
- Update the client and server sides of TAKEIP/RELEASEIP/GETPUBLICIPS and GETNODEMAP to fall back to the old style ipv4-only controls if the new ipv4/ipv6 controls fail. This allows an ipv4/v6 enabled ctdb daemon to interoperate with earlier ipv4-only versions of the daemons.
- From Mathieu Parent : log debian systems log the package versions in ctdb diagnostics
- From Mathieu Parent : specify logdir location for debian (this patch was later reversed)
- From Michael Adams : allow # comments in nodes/public_addresses files
2008-10-07 11:23:12 +04:00
* Tue Oct 7 2008 : Version 1.0.59
- Updated " r e l o a d n o d e s " logic. Instead of bouncing the entire tcp layer it is sufficient to just close and reopen all outgoing tcp connections.
- New eventscript 99.routing which can be used to re-attach routes to public interfaces after a takeip event. (routes may be deleted by the kernel when we release an ip)
- IDR tree fix from Jim Houston
- Better handling of critical events if the local clock is suddenly changed forward by a lot.
- Fix three slow memory leaks in the recovery daemon
- New ctdb command : ctdb recmaster which prints the pnn of the recmaster
- Onnode enhancements from Martin S : " h e a l t h y " and " c o n n e c t e d " are now possible nodespecifiers
- From Martin S : doc fixes
- lowering some debug levels for some nonvital informational messages
- Make the daemon daemon monitoring stronger and allow ctdbd to detect a hung
recovery daemon.
- From C Cowan : patches to compile ipv6 under AIX
- zero out some structs to keep valgrind happy
2008-08-27 04:26:34 +04:00
* Wed Aug 27 2008 : Version 1.0.58
- revert the name change tcp_tcp_client back to tcp_control_tcp so
samba can build.
- Updates to the init script from Abhijith Das <adas@redhat.com>
2008-08-25 02:52:29 +04:00
* Mon Aug 25 2008 : Version 1.0.57
- initial support for IPv6
2008-08-11 17:50:42 +04:00
* Mon Aug 11 2008 : Version 1.0.56
- fix a memory leak in the recovery daemon.
2008-08-11 04:36:38 +04:00
* Mon Aug 11 2008 : Version 1.0.55
2008-08-11 04:33:22 +04:00
- Fix the releaseip message we seond to samba.
2008-08-08 04:01:20 +04:00
* Fri Aug 8 2008 : Version 1.0.54
- fix a looping error in the transaction code
- provide a more detailed error code for persistent store errors
so clients can make more intelligent choices on how to try to recover
2008-08-07 12:57:24 +04:00
* Thu Aug 7 2008 : Version 1.0.53
- Remove the reclock.pnn file it can cause gpfs to fail to umount
- New transaction code
2008-08-04 08:58:52 +04:00
* Mon Aug 4 2008 : Version 1.0.52
- Send an explicit gratious arp when starting sending the tcp tickles.
- When doing failover, issue a killtcp to non-NFS/non-CIFS clients
so that they fail quickly. NFS and CIFS already fail and recover
quickly.
- Update the test scripts to handle CTRL-C to kill off the test.
2008-07-28 11:11:15 +04:00
* Mon Jul 28 2008 : Version 1.0.51
- Strip off the vlan tag from bond devices before we check in /proc
if the interface is up or not.
- Use testparm in the background in the scripts to allow probing
that the shares do exist.
- Fix a bug in the logging code to handle multiline entries better
- Rename private elements from private to private_data
2008-07-18 07:49:05 +04:00
* Fri Jul 18 2008 : Version 1.0.50
- Dont assume that just because we can establish a TCP connection
that we are actually talking to a functioning ctdb daemon.
So dont mark the node as CONNECTED just because the tcp handshake
was successful.
- Dont try to set the recmaster to ourself during elections for those
cases we know this will fail. To remove some annoying benign but scary
looking entries from the log.
- Bugfix for eventsystem for signal handling that could cause a node to
hang.
2008-07-17 12:53:54 +04:00
* Thu Jul 17 2008 : Version 1.0.49
- Update the safe persistent update fix to work with unpatched samba
servers.
2008-07-17 07:56:17 +04:00
* Thu Jul 17 2008 : Version 1.0.48
- Update the spec file.
- Do not start new user-triggered eventscripts if we are already
inside recovery mode.
- Add two new controls to start/cancel a persistent update.
A client such as samba can use these to tell ctdbd that it will soon
be writing directly to the persistent database tdb file. So if
samba is -9ed before it has eitehr done the persistent_store or
canceled the operation, ctdb knows that the persistent databases
'may' be out of sync and therefore a full blown recovery is called for.
2008-07-15 05:03:35 +04:00
- Add two new options :
CTDB_SAMBA_SKIP_CONF_CHECK and CTDB_SAMBA_CHECK_PORTS that can be used
to override what checks to do when monitoring samba health.
We can no longer use the smbstatus, net or testparm commands to check
if samba or its config is healthy since these commands may block
indefinitely and thus can not be used in scripts.
2008-07-11 05:48:41 +04:00
* Fri Jul 11 2008 : Version 1.0.47
- Fix a double free bug where if a user striggered (ctdb eventscript)
hung and while the timeout handler was being processed a new user
triggered eventscript was started we would free state twice.
2008-07-11 03:24:21 +04:00
- Rewrite of onnode and associated documentation.
2008-07-10 07:00:50 +04:00
* Thu Jul 10 2008 : Version 1.0.46
- Document both the LVS:cingle-ip-address and the REMOTE-NODE:wan-accelerator
capabilities.
- Add commands " c t d b p n n " , " c t d b l v s " , " c t d b l v s m a s t e r " .
- LVS improvements. LVS is the single-ip-address mode for a ctdb cluster.
- Fixes to supress rpmlint warnings
- AXI compile fixes.
- Change \s to [[:space:]] in some scripts. Not all RHEL5 packages come
with a egrep that handles \s even same version but different arch.
- Revert the change to NFS restart. CTDB should NOT attempt to restart
failed services.
- Rewrite of the waitpid() patch to use the eventsystem for handling
signals.
2008-07-08 04:03:57 +04:00
* Tue Jul 8 2008 : Version 1.0.45
- Try to restart the nfs service if it has failed to respond 3 times in a row.
- waitpid() can block if the child does not respond promptly to SIGTERM.
ignore all SIGCHILD signals by setting SIGCHLD to SIG_DEF.
get rid of all calls to waitpid().
- make handling of eventscripts hanging more liberal.
only consider the script to have failed and making the node unhealthy
IF the eventscript terminated wiht an error
OR the eventscript hung 5 or more times in a row
2008-07-07 03:07:49 +04:00
* Mon Jul 7 2008 : Version 1.0.44
- Add a CTDB_VALGRIND option to /etc/sysconfig/ctdb to make it start
ctdb under valgrind. Logs go to /var/log/ctdb_valgrind.PID
- Add a hack to show the control opcode that caused uninitialized data
in the valgrind output by encoding the opcode as the line number.
- Initialize structures and allocated memory in various places in
ctdb to make it valgrind-clean and remove all valgrind errors/warnings.
- If/when we destroy a lockwait child, also make sure we cancel any pending transactions
- If a transaction_commit fails, delete/cancel any pending transactions and
return an error instead of calling ctdb_fatal()
- When running ctdb under valgrind, make sure we run it with --nosetsched and also
ensure that we do not use mem-mapped i/o when accessing the tdb's.
- zero out ctdb->freeze_handle when we free/destroy a freeze-child.
This prevent a heap corruption/ctdb crash bug that could trigger
if the freeze child times out.
- we dont need to explicitely thaw the databases from the recovery daemon
since this is done implicitely when we restore the recovery mode back to normal.
- track when we start and stop a recovery. Add the 'time it took to complete the
recovery' to the ' ctdb uptime' output.
Ensure by tracking the start/stop recovery timestamps that we do not
check that the ip allocation is consistend from inside the recovery daemon
while a different node (recovery master) is performing a recovery.
This prevent a race that could cause a full recovery to trigger if the
'ctdb disable/enable' commands took very long.
- The freeze child indicates to the master daemon that all databases are locked
by writing data to the pipe shared with the master daemon.
This write sometimes fail and thus the master daemon never notices that the databases
are locked cvausing long timeouts and extra recoveries.
Check that the write is successful and try the write again if it failed.
- In each node, verify that the recmaster have the right node flags for us
and force a push of our flags to the recmaster if wrong.
2008-07-01 03:34:43 +04:00
* Tue Jul 1 2008 : Version 1.0.43
- Updates and bugfixes to the specfile to keep rpmlint happy
- Force a global flags update after each recovery event.
- Verify that the recmaster agrees with our node flags and update the
recmaster othervise.
- When writing back to the parent from a freeze-child across the pipe,
loop over the write in case the write failed with an error othervise
the parent will never be notified tha the child has completed the operation.
- Automatically thaw all databases when recmaster marks us as being in normal
mode instead of recovery mode.
2008-06-13 07:53:05 +04:00
* Fri Jun 13 2008 : Version 1.0.42
2008-06-13 07:50:28 +04:00
- When event scripts have hung/timedout more than EventScriptBanCount times
in a row the node will ban itself.
- Many updates to persistent write tests and the test scripts.
2008-05-28 08:51:46 +04:00
* Wed May 28 2008 : Version 1.0.41
- Reactivate the safe writes to persistent databases and solve the
locking issues. Locking issues are solved the only possible way,
by using a child process to do the writes. Expensive and slow but... .
2008-05-27 02:23:46 +04:00
* Tue May 27 2008 : Version 1.0.40
- Read the samba sysconfig file from the 50.samba eventscript
- Fix some emmory hierarchical bugs in the persistent write handling
2008-05-22 00:22:25 +04:00
* Thu May 22 2008 : Version 1.0.39
- Moved a CTDB_MANAGES_NFS, CTDB_MANAGES_ISCSI and CTDB_MANAGES_CSFTPD
into /etc/sysconfig/ctdb
- Lowered some debug messages to not fill the logfile with entries
that normally occur in the default configuration.
2008-05-16 03:51:42 +04:00
* Fri May 16 2008 : Version 1.0.38
- Add machine readable output support to " c t d b g e t m o n m o d e "
- Lots of tweaks and enhancements if the event scripts are " s l o w "
- Merge from tridge: an attempt to break the chicken-and-egg deadlock that
net conf introduces if used from an eventscript.
- Enhance tickles so we can tickle an ipv6 connection.
- Start adding ipv6 support : create a new container to replace sockaddr_in.
- Add a checksum routine for ipv6/tcp
- When starting up ctdb, let the init script do a tdbdump on all
persistent databases and verify that they are good (i.e. not corrupted).
- Try to use " s a f e t r a n s a c t i o n s " when writing to a persistent database
that was opened with the TDB_NOSYNC flag. If we can get the transaction
thats great, if we cant we have to write anyway since we cant block here.
2008-05-12 01:24:02 +04:00
* Mon May 12 2008 : Version 1.0.37
- When we shutdown ctdb we close the transport down before we run the
" s h u t d o w n " eventscripts. If ctdb decides to send a packet to a remote node
after we have shutdown the transport but before we have shutdown ctdbd
itself this could lead to a SEGV instead of a clean shutdown. Fix.
- When using the " e x p o r t f s " command to extract which NFS export directories
to monitor, exportfs violates the " p r i n c i p l e o f l e a s t s u r p r i s e " and
sometimes report a single export line as two lines of text output
causing the monitoring to fail.
2008-05-09 07:47:38 +04:00
* Fri May 9 2008 : Version 1.0.36
- fix a memory corruption bug that could cause the recovery daemon to crash.
- fix a bug with distributing public ip addresses during recovery.
If the node that is the recovery master did NOT use public addresses,
then it assumed that no other node in the cluster used them either and
thus skipped the entire step of reallocating public addresses.
2008-05-07 05:31:37 +04:00
* Wed May 7 2008 : Version 1.0.35
- During recovery, when we define the new set of lmasters (vnnmap)
only consider those nodes that have the can-be-lmaster capability
when we create the vnnmap. unless there are no nodes available which
supports this capability in which case we allow the recmaster to
become lmaster capable (temporarily).
- Extend the async framework so that we can use paralell async calls
to controls that return data.
- If we do not have the " c a n b e r e c m a s t e r " capability, make sure we will
lose any recmaster elections, unless there are no nodes available that
have the capability, in which case we " t a k e / w i n " the election anyway.
- Close and reopen the reclock pnn file at regular intervals.
Make it a non-fatal event if we occasionally fail to open/read/write
to this file.
- Monitor that the recovery daemon is still running from the main ctdb
daemon and shutdown the main daemon when recovery daemon has terminated.
- Add a " c t d b g e t c a p a b i l i t i e s " command to read the capabilities off a node.
- Define two new capabilities : can be recmaster and can be lmaster
and default both capabilities to YES.
- Log denied tcp connection attempts with DEBUG_ERR and not DEBUG_WARNING
2008-04-24 16:06:04 +04:00
* Thu Apr 24 2008 : Version 1.0.34
- When deleting a public ip from a node, try to migrate the ip to a different
node first.
- Change catdb to produce output similar to tdbdump
- When adding a new public ip address, if this ip does not exist yet in
the cluster, then grab the ip on the local node and activate it.
- When a node disagrees with the recmaster on WHO is the recmaster, then
mark that node as a recovery culprit so it will eventually become
banned.
- Make ctdb eventscript support the -n all argument.
2008-04-10 00:55:31 +04:00
* Thu Apr 10 2008 : Version 1.0.33
- Add facilities to include site local adaptations to the eventscript
by /etc/ctdb/rc.local which will be read by all eventscripts.
- Add a " c t d b v e r s i o n " command.
- Secure the domain socket with proper permissions from Chris Cowan
- Bugfixes for AIX from Chris Cowan
2008-04-02 05:09:27 +04:00
* Wed Apr 02 2008 : Version 1.0.32
- Add a control to have a node execute the eventscripts with arbitrary
command line arguments.
- Add a control " r d d u m p m e m o r y " that will dump the talloc memory allocations
for the recovery daemon.
- Decorate the talloc memdump to produce better and easier memory leak
tracking.
- Update the RHEL5 iscsi tgtd scripts to allow one iscsi target for each
public address.
- Add two new controls " a d d i p / d e l i p " that can be used to add/remove public
addresses to a node at runtime. After using these controls a " c t d b r e c o v e r "
ir required to make the changes take.
- Fix a couple of slow memory leaks.
2008-03-25 01:43:47 +03:00
* Tue Mar 25 2008 : Version 1.0.31
- Add back controls to disable/enable monitoring on a node.
- Fix a memory leak where we used to attach CALL data to the ctdb structure
when performing a local call. Memory which would be lost if the call was
aborted.
- Reduce the loglevel for the log output when someone connects to a non
public ip address for samba.
- Redo and optimize the vacuuming process to send only one control to each
other node containing all records to be vacuumed instead of one
control per node per record.
2008-03-04 05:40:29 +03:00
* Tue Mar 04 2008 : Version 1.0.30
- Update documentation cor new commands and tuneables
- Add machinereadable output to the ip,uptime and getdebug commands
- Add a moveip command to manually failover/failback public ips
- Add NoIPFallback tuneable that prevents ip address failback
- Use file locking inside the CFS as alternative to verify when other nodes
Are connected/disconnected to be able to recover from split network
- Add DisableWhenUnhealthy tunable
- Add CTDB_START_AS_DISABLED sysconfig param
- Add --start-as-disabled flag to ctdb
- Add ability to monitor for OOM condition
2008-02-21 00:37:29 +03:00
* Thu Feb 21 2008 : Version 1.0.29
- Add a new command to make expansion of an existing cluster easier
- Fix bug with references to freed objects in the ctdb structure
- Propagate debuglevel changes to the recovery daemon
- Merge patches to event scripts from Mathieu Parent :
- MP: Simulate " s e r v i c e " on systems which do not provide this tool
- MP: Set correct permissions for events.d/README
- Add nice helper functions to start/stop nfs from the event scripts
2008-02-08 07:12:06 +03:00
* Fri Feb 08 2008 : Version 1.0.28
- Fix a problem where we tried to use ethtool on non-ethernet interfaces
- Warn if the ipvsadm packege is missing when LVS is used
- Dont use absolute pathnames in some of the event scripts
- Fix for persistent tdbs growing inifinitely.
2008-02-06 06:00:04 +03:00
* Wed Feb 06 2008 : Version 1.0.27
- Add eventscript for iscsi
2008-01-31 01:24:02 +03:00
* Thu Jan 31 2008 : Version 1.0.26
- Fix crashbug in tdb transaction code
2008-01-29 06:11:49 +03:00
* Tue Jan 29 2008 : Version 1.0.25
- added async recovery code
- make event scripts more portable
- fixed ctdb dumpmemory
- more efficient tdb allocation code
- improved machine readable ctdb status output
- added ctdb uptime
2008-01-16 14:23:10 +03:00
* Wed Jan 16 2008 : Version 1.0.24
- added syslog support
- documentation updates
2008-01-16 01:47:43 +03:00
* Wed Jan 16 2008 : Version 1.0.23
- fixed a memory leak in the recoveryd
- fixed a corruption bug in the new transaction code
- fixed a case where an packet for a disconnected client could be processed
- added http event script
- updated documentation
2008-01-10 02:05:33 +03:00
* Thu Jan 10 2008 : Version 1.0.22
- auto-run vacuum and repack ops
2008-01-09 00:29:19 +03:00
* Wed Jan 09 2008 : Version 1.0.21
- added ctdb vacuum and ctdb repack code
2008-01-06 05:25:17 +03:00
* Sun Jan 06 2008 : Version 1.0.20
- new transaction based recovery code
2008-01-05 01:52:53 +03:00
* Sat Jan 05 2008 : Version 1.0.19
- fixed non-master bug
- big speedup in recovery for large databases
- lots of changes to improve tdb and ctdb for high churn databases
2007-12-27 02:19:09 +03:00
* Thu Dec 27 2007 : Version 1.0.18
- fixed crash bug in monitor_handler
2007-12-04 07:50:43 +03:00
* Tue Dec 04 2007 : Version 1.0.17
- fixed bugs related to ban/unban of nodes
- fixed a race condition that could lead to monitoring being permanently disabled,
which would lead to long recovery times
- make deterministic IPs the default
- fixed a bug related to continuous recovery
- added a debugging option --node-ip