Andrew Tridgell
2f5af51c53
add an easy way to setup ctdb to start/stop samba
...
(This used to be ctdb commit b0d9f427d83aff5b9a5c54b7b7c9d45d418e2352)
2007-06-02 18:51:05 +10:00
Ronnie Sahlberg
394ee9aff7
fix broken link to the CTDB setup page
...
(This used to be ctdb commit cf762c18aac8b9a137377d9ee9022c6d9a57452d)
2007-06-02 16:50:58 +10:00
Ronnie Sahlberg
ebe34b4353
update the evens scripts for nfs and nfslock to honour CTDB_MANAGES_NFS
...
which is set in /etc/sysconfig/nfs
(This used to be ctdb commit bf475269231a6129f88b37f4da69e06efcf4ed77)
2007-06-02 16:44:15 +10:00
Ronnie Sahlberg
5dc243ff93
STATD_SHARED_DIRECTORY should be define din the nfs sysconfig file and
...
not the ctdb sysconfig file since this variable has nothing at all to do
with ctdb
(This used to be ctdb commit d17073b7da5ecba1b93a5ed4fbdf86bf052fdc90)
2007-06-02 16:33:17 +10:00
Andrew Tridgell
c5e4ce360a
make test now works again
...
(This used to be ctdb commit 439d87bbb9840f82937e51aff4fe2b80160878c6)
2007-06-02 13:31:36 +10:00
Andrew Tridgell
68963d865a
first step towards fixing "make test" with the new daemon system
...
(This used to be ctdb commit f95f7e4c93dea482e6cf0614b5415229a7c9f3fb)
2007-06-02 13:16:11 +10:00
Andrew Tridgell
ebf12646cf
- make specification of a recovery lock file compulsory
...
- die if someone other than the recmaster can get the recovery lock
(This used to be ctdb commit a827d0d0e430ca8ad5d521367e45097185492869)
2007-06-02 11:36:42 +10:00
Andrew Tridgell
4f72a202d9
- moved cmdline options that are only relevant to ctdbd into ctdbd.c
...
- fixed a valgrind error on failing to send a control
- don't mark node dead when already disconnected
- moved node list lock code into common code
(This used to be ctdb commit bcc0432d0fea7ef223f82ccee81cf35c18144b1b)
2007-06-02 10:03:28 +10:00
Andrew Tridgell
69edd8e617
another place we need to cope with the strange epoll fork semantics
...
(This used to be ctdb commit cb1eeec15e61a7eb401e9e65306642343d5deb6e)
2007-06-02 10:01:17 +10:00
Andrew Tridgell
27b0e323e6
disable realtime scheduler in event scripts
...
(This used to be ctdb commit 56225ac6fdfe754289bc7d5e0fc8d21c81a7aa8e)
2007-06-02 08:46:49 +10:00
Andrew Tridgell
5e5701a7b8
- make calling of recovered event script async
...
- shutdown sockets before calling shutdown script
(This used to be ctdb commit c5e099feef94a014a77742b6cc1d0afe78ef9da9)
2007-06-02 08:41:19 +10:00
Andrew Tridgell
21f6fa5359
put nfs events in spec and Makefile.in
...
(This used to be ctdb commit 07f03c61c621d8428ecdb56ee08ba895a57ed9c0)
2007-06-02 00:11:53 +10:00
Andrew Tridgell
3a0395dffd
added nfs event script
...
(This used to be ctdb commit a708a635a1be355d2e8d382166f58f65f669c8ea)
2007-06-02 00:10:22 +10:00
Andrew Tridgell
18d8559cee
don't strictly need netcat
...
(This used to be ctdb commit 992eed38fc6c474c99ce7242e7b7b35bc1e4bd7b)
2007-06-01 23:33:01 +10:00
Andrew Tridgell
dff9a6ecd1
make the packaging much more portable - tested on SLES9 and RHEL4
...
(This used to be ctdb commit 9521e3eee42b11303a2d6e0f5c05d0c0de4292d8)
2007-06-01 23:25:33 +10:00
Andrew Tridgell
1fa2600c8b
- make symlink relative in install
...
- include ctdb functions in samba and nfslock event scripts
(This used to be ctdb commit 08e2278069346b1fc49774603aa26c68222cf67f)
2007-06-01 21:20:05 +10:00
Andrew Tridgell
02bfa10daa
tidy up the install somewhat
...
(This used to be ctdb commit 07e202ae8451ffa67c40973625996224cfd4e158)
2007-06-01 21:10:49 +10:00
Andrew Tridgell
b5890ad2c1
split out events for each subsystem separately
...
(This used to be ctdb commit 03c629a72f234dcc783fa1085e7edba09597c241)
2007-06-01 20:54:26 +10:00
Andrew Tridgell
559a8bd278
use a subdirectory for ctdb state files
...
(This used to be ctdb commit 71ebf272be42e313715f0f100be9f5567127eb73)
2007-06-01 19:16:58 +10:00
Andrew Tridgell
7db1d04d5c
make the running of the takeover and release event scripts async, to prevent outages due to slow scripts
...
(This used to be ctdb commit 4189be97eee7ab2a50335c860f2fcd9566667d01)
2007-06-01 19:05:41 +10:00
Andrew Tridgell
869d70d9c9
convert ctdbd.sh tests to use an event script
...
(This used to be ctdb commit b3eff804fe59238ed37cd692cc04785089a89dc3)
2007-06-01 19:04:51 +10:00
Andrew Tridgell
165bdba7ec
better download instructions
...
(This used to be ctdb commit f50298262e3cc2896d7d098efa6601c915d3feca)
2007-06-01 17:16:19 +10:00
Andrew Tridgell
e015e5d769
added package download
...
(This used to be ctdb commit fa0d8efe3298a38c52e6be1116bd1b4c8c959f76)
2007-06-01 16:07:13 +10:00
Andrew Tridgell
680a3ad547
merge initial web site from ronnie
...
(This used to be ctdb commit ee0b29b0625a1202e4af5a2ab3b19ca0b48e8e99)
2007-06-01 15:33:45 +10:00
Ronnie Sahlberg
0b70f9500e
add a developers section
...
(This used to be ctdb commit af90c7b3b80c808ad3047175cd09031c0282538d)
2007-06-01 15:31:23 +10:00
Ronnie Sahlberg
52291b18a5
initial webpage
...
(This used to be ctdb commit b24b48fe6e9da38036452e82a1b3d6311ebaa6f4)
2007-06-01 15:23:57 +10:00
Andrew Tridgell
f5171454b3
log dates/time in event startup messages
...
(This used to be ctdb commit 60a2f704f2e0544035778d00e91041e09351ed8f)
2007-06-01 15:23:16 +10:00
Andrew Tridgell
95ed6f8725
added CTDB_WAIT_DIRECTORIES support
...
(This used to be ctdb commit fa888e8b1715d7460f5718d3e1fe17e4caaa15c3)
2007-06-01 13:50:18 +10:00
Ronnie Sahlberg
86d0fc8e4f
it is -f not -x to check if a file exists
...
(This used to be ctdb commit 52457d5e811f91c051ce0fa32739667a1d21862a)
2007-06-01 13:26:14 +10:00
Ronnie Sahlberg
425b3c56c6
- create /etc/ctdb/taken_ips and /etc/ctdb/changed_ips analog to the
...
existing /etc/ctdb/released_ips
- only call the statd-callout script if the ips have changed and call
it with a "notify" argument. we need to restart nfslock service in
both cases
- change statd-callout to explicitely restart the lock manager and statd
when "notify" is called. copy the state directory for each held ip
from shared storage to /tmp then use sm-notify to send notifications to
all monitored clients
(This used to be ctdb commit 800f15a27af885a3f83430d3bc411cc72ac40e86)
2007-06-01 13:14:05 +10:00
Andrew Tridgell
bf3b740a1b
ctdb is GPL not LGPL
...
(This used to be ctdb commit 8624378010d1c2a1438e1e701339dfba7276f960)
2007-05-31 13:50:53 +10:00
Andrew Tridgell
7ccb338862
if there is no node available to take an IP, don't consider that an error
...
(This used to be ctdb commit fee6561626c7070418bc8f4d610a728329ac4bcc)
2007-05-31 11:22:43 +10:00
Andrew Tridgell
d86298248f
better location for statd-callout
...
(This used to be ctdb commit cc208c447b732aeeaefd6a889711d3cd83ea128e)
2007-05-31 11:14:07 +10:00
Andrew Tridgell
c6d4478fda
added hooks to make nfs statd behave correctly on failover
...
(This used to be ctdb commit a1ee84fc47892b6c18d417ccf714211fcb07952e)
2007-05-31 11:09:45 +10:00
Andrew Tridgell
cc87648933
merge lib/replace from samba4
...
(This used to be ctdb commit d1a0bcbe331b05ad7a3f5f7a33e4c9b5242c43f2)
2007-05-30 18:06:57 +10:00
Andrew Tridgell
89ed660067
tell newly connected nodes about any tcp tickle records that we have that they don't have
...
(This used to be ctdb commit 71dd59c1662d429d260c25090e0ca26db48d4075)
2007-05-30 16:37:39 +10:00
Andrew Tridgell
d510ce3281
use our own netmask when deciding if we should takeover a IP, not the other nodes
...
- check if ctdb dies while waiting for the startup event
(This used to be ctdb commit 8b59f73c527a6d0a8abe8030dc3cbbc4329657be)
2007-05-30 16:11:39 +10:00
Andrew Tridgell
1e72af9c51
close sockets when we exec scripts
...
(This used to be ctdb commit 0fac2164db4279db2d7d376a34be05b890304087)
2007-05-30 15:43:25 +10:00
Andrew Tridgell
c833b06a35
we need to listen at transport initialise stage to find our own node number
...
(This used to be ctdb commit 4a9455dfbe95e53884b46ad26dba0c33e3432ba9)
2007-05-30 14:46:14 +10:00
Andrew Tridgell
3c062bb5ae
- use a CTDB_BROADCAST_ALL for the attach message so it goes to currently disconnected nodes
...
- start node monitoring only after transport starts
- check if a node is already disconnected in the node dead function
(This used to be ctdb commit b81ab6d507797282237768380c6f0e5a4c6519a5)
2007-05-30 14:35:22 +10:00
Andrew Tridgell
8ed48aac51
don't start the transport connecting to the other nodes until after the startup event script has run
...
(This used to be ctdb commit afca3cc74211aa2e18b1f74d36b2add8dffcfdc7)
2007-05-30 13:26:50 +10:00
Andrew Tridgell
3eb96b4553
- nice messages while waiting for tcp services to come up
...
- added more comments to sysconfig file
(This used to be ctdb commit 9cbe7ad147a73cd6594fa7bcee0544fd986ad8c0)
2007-05-30 12:37:03 +10:00
Andrew Tridgell
b382fac817
wait for local tcp services like smbd to come up before allowing ctdb to start talking to other nodes
...
(This used to be ctdb commit 04eea084ebf1710ea66ccb03ac661e3b2f58d96f)
2007-05-30 12:27:58 +10:00
Andrew Tridgell
0a8b9f21d8
fixed onnode symlink install
...
(This used to be ctdb commit fd6a474fb52263512a0496ec8c9dc5443902d45a)
2007-05-30 11:17:52 +10:00
Andrew Tridgell
7cd7081beb
support ctdb status -n all
...
(This used to be ctdb commit 8ff2ea29fc60a1e9854bf0c59c360e29f35d3b69)
2007-05-30 11:12:50 +10:00
Andrew Tridgell
229846cdd2
moved onnode into ctdb from s3 examples/ctdb
...
(This used to be ctdb commit a3fdaebf1a90ff3c2843a592f6c657a8eae42975)
2007-05-30 11:00:43 +10:00
Andrew Tridgell
5747a5a358
auto-restart NFS if its running when we release an IP
...
(This used to be ctdb commit 2e1e1e8e34bf4c15decbbc8f0ca88004a2ed67df)
2007-05-30 10:21:16 +10:00
Andrew Tridgell
71bb8a9e41
samba3 needs ctdb_private.h installed to build
...
(This used to be ctdb commit 3df7a4b3cd08efbf5d33379b8c1c5f5bee14954b)
2007-05-29 22:53:28 +10:00
Andrew Tridgell
9891c6b975
flush any local arp entries for the given ip on add/del
...
(This used to be ctdb commit 814decd66423e955b443f0729ceec581c0d0c0e3)
2007-05-29 19:34:04 +10:00
Andrew Tridgell
3b146e7616
don't block SIGCHLD, or we lose return values from system() !
...
nicer log messages from events script
(This used to be ctdb commit 5ed2b496675a6a47d7ad87519a97bc4f293e6730)
2007-05-29 17:23:29 +10:00