Andrew Tridgell
1140d5a20a
fixed more warnings on 64 bit boxes
...
(This used to be ctdb commit 2f6eae476203f8a8b28e083553204c01f224c8a5)
2007-05-29 13:58:41 +10:00
Andrew Tridgell
bc891232b6
fixed some debug messages
...
(This used to be ctdb commit 037f0149c0c0e65af0a1669b9a52586129e4b48f)
2007-05-29 13:48:30 +10:00
Andrew Tridgell
edcaa0d6a0
clean shutdown in ctdb - release all our IPs
...
(This used to be ctdb commit 2f196cb6a86eb85205d7de1c4cadd4e1e701c06f)
2007-05-29 13:33:59 +10:00
Andrew Tridgell
1455d7d7ad
don't need maskbits to ip addr del
...
(This used to be ctdb commit 93125b460a44934f30bb995ff3c5365ac5a263d5)
2007-05-29 13:21:37 +10:00
Andrew Tridgell
6cd49d7842
fixed syntax of /sbin/ip
...
(This used to be ctdb commit 9791901dda000fbef6e520531f39ead575531721)
2007-05-29 13:09:15 +10:00
Andrew Tridgell
1becc9f2e7
made events script executable
...
(This used to be ctdb commit 54934884ae2bfe8b7d155aa22ee90b2d0a674def)
2007-05-29 13:04:52 +10:00
Andrew Tridgell
a39eff68a8
added an example ctdb event script
...
(This used to be ctdb commit f97b75497d005306c5f893c3182f1c2a9b4dc6b7)
2007-05-29 13:01:31 +10:00
Andrew Tridgell
ead091449b
call the event script on recovery too
...
(This used to be ctdb commit 8c43a91cbd6e502c93bd6cc51df1272eae426709)
2007-05-29 12:55:24 +10:00
Andrew Tridgell
dfadb60318
- moved ctdbd specific options to ctdbd.c from cmdline.c
...
- allow a event script to be specified that will take IPs, release
IPs, and handle recovery in system specific ways
- redirect stderr in subcommands to the log
(This used to be ctdb commit de0fc9ba370db781f9c46406ed180c8211946c7a)
2007-05-29 12:49:25 +10:00
Andrew Tridgell
d35a475fd2
fix sense of inet_aton() call
...
(This used to be ctdb commit 39788dd804beee479f0cb3be8f4b984c3c7aad2e)
2007-05-29 12:26:21 +10:00
Andrew Tridgell
ccf4d78e04
- renamed ctdb_control utility to ctdb
...
- use -n to specify node number in ctdb utility
- change 'ctdb status' to 'ctdb statistics'
- added 'ctdb status' which shows status
- added netmask to public IPs, so you don't try a takeover on a
foreign network
- cleaned up tools/ctdb_control.c a lot
- generate usage message at runtime
(This used to be ctdb commit 28de71c03ace7d32a9fd9882fabbd5d668b97656)
2007-05-29 12:16:59 +10:00
Andrew Tridgell
9838027ff8
rename ctdb_control utility to ctdb
...
(This used to be ctdb commit 7fc3868a1a49aa8b49b277793eede903606b4353)
2007-05-29 10:59:12 +10:00
jmcd@samba.org
239f698b63
Next round of packaging updates:
...
- Create/delete source symlink as needed during rpm build
- init script updates:
- optional port, debuglevel, logfile
- autodetect logfile location if smbd exists
- build cluster_addresses file
- create tmp dbdir (Tridge, do you want this to be a fixed location instead?)
(This used to be ctdb commit 6695ec4845b71135db3fc5ed76afde7f20d8e24e)
2007-05-28 11:38:04 -04:00
Andrew Tridgell
116ed6f9d6
merged packaging from jim
...
(This used to be ctdb commit a66a70b9a03d9bea974748cfc9a183b206539ab7)
2007-05-28 20:11:45 +10:00
Andrew Tridgell
dcd23d47a7
another place where we could send a partial packet
...
(This used to be ctdb commit 4e0c57718a0c9f51b5b2e02bbf516c63c5be0a35)
2007-05-28 08:37:54 +10:00
jmcd@samba.org
3be6ed7d42
Inital rpm build files
...
(This used to be ctdb commit 8830592b9202d6edab16af5c717608096597c517)
2007-05-27 16:48:18 -04:00
Andrew Tridgell
53586a4a74
when handing over an IP to another node, also tell them of any tcp connections we were handling, so they can send tickle acks for those connections
...
(This used to be ctdb commit 52c225720da22a149a85ed3cfc07d630cc8b3acd)
2007-05-28 00:51:10 +10:00
Andrew Tridgell
9cc3ce8554
automatic cleanup of tcp tickle records
...
(This used to be ctdb commit ede79b571bf89b89f1b8394f262ca0689f8c65f3)
2007-05-28 00:34:40 +10:00
Andrew Tridgell
b01cdc814f
fixed error reporting in tickle ack code
...
(This used to be ctdb commit a19555a2e2f3c7ca3147f6421fa2f751a3bdfdee)
2007-05-28 00:01:51 +10:00
Andrew Tridgell
99e38ed6ab
use a window size that is obvious in sniffs
...
(This used to be ctdb commit 4d167711a600ad7bb042a5df143dd282b0e50462)
2007-05-27 17:23:35 +10:00
Andrew Tridgell
922d054bca
remove experimental code
...
(This used to be ctdb commit f1d91002247bedb2f163cc9a9515bbe2bbc2692e)
2007-05-27 16:58:43 +10:00
Andrew Tridgell
957ec5d63a
fixed tcp data offset and checksum
...
(This used to be ctdb commit 2df23e0d3df52b746e9aee8d194ad1da16b62657)
2007-05-27 16:56:12 +10:00
Andrew Tridgell
eae66741ec
send on the right socket!
...
(This used to be ctdb commit 2a5253a9da4d0144f4e96d9b8f6ac636849d146a)
2007-05-27 15:47:43 +10:00
Andrew Tridgell
d41290fbae
added code to ctdb to send a tcp 'tickle' ack when we takeover an
...
IP. A raw tcp ack is sent for each tcp connection held by clients
before the IP takeover.
These acks have a deliberately incorrect sequence number, and should
cause the windows client to send its own ack which will in turn cause
a tcp reset and thus cause windows clients to much more quickly
reconnect to the new node.
(This used to be ctdb commit eef38bfe8461b47489d169c61895d6bb8a8f79a1)
2007-05-27 15:26:29 +10:00
Andrew Tridgell
4577eb1cbc
added function to send a raw tcp ack packet
...
(This used to be ctdb commit 634847f3eb5d8183c43d39f0300c0379ef1db3bc)
2007-05-27 13:39:36 +10:00
Andrew Tridgell
647540253e
tweak timeouts
...
(This used to be ctdb commit 54a90797469f56d796efd82e9294efff3c5dabcc)
2007-05-27 09:43:25 +10:00
Andrew Tridgell
7ff6e17ca1
removed bogus alignment check
...
(This used to be ctdb commit 93fd5fd01dc61a53a91e319d5cbbe0fc8f740717)
2007-05-26 18:13:19 +10:00
Andrew Tridgell
35955c1476
drop any partialialy send packets when we get a socket write error
...
(This used to be ctdb commit 4f7b97af8e0075de56059fffc57a86cb0c16df46)
2007-05-26 16:41:32 +10:00
Andrew Tridgell
47b20f7e26
show op type of badly aligned packets in tcp layer
...
(This used to be ctdb commit 6a3e1faa2ce77ee021154d66aeaa99c51bbc8b06)
2007-05-26 16:35:41 +10:00
Andrew Tridgell
9aa692669b
paranoid checks for bad packets in tcp layer. Close the socket if it gets a bad packet
...
(This used to be ctdb commit 1277089e5c6e1036517c63ee8c8e4ff98cb76cf8)
2007-05-26 16:32:32 +10:00
Andrew Tridgell
2b86216b66
handle corrupt ctdb packets better
...
(This used to be ctdb commit aea4d78645a99eb22860048350b5f20841c17704)
2007-05-26 14:46:12 +10:00
Andrew Tridgell
cc4d8102cd
moved system specific ip code to system.c
...
(This used to be ctdb commit 9de9e4ccda9665108baac12a8716b189d26340b1)
2007-05-26 14:01:08 +10:00
Andrew Tridgell
750ae1a35b
send the message from daemon context
...
(This used to be ctdb commit 3bd7d1ebd5fc47f31caa654b5935a3cd05fb6882)
2007-05-26 00:21:07 +10:00
Andrew Tridgell
9e61a5bd77
send a message to clients when an IP has been released
...
(This used to be ctdb commit 8b7ab0b00253462593d368052c2cb10a385b4e63)
2007-05-26 00:05:30 +10:00
Andrew Tridgell
07ade57802
make sure we find out about new nodes as fast as possible
...
(This used to be ctdb commit 73f2c77166e2053625d0f76c370cf7e789a63fdf)
2007-05-25 22:07:45 +10:00
Andrew Tridgell
31053286c5
keep sending ARPs for 2 minutes, every 5 seconds
...
(This used to be ctdb commit d5223f2eed4a762b93a101c720286568578ce7ed)
2007-05-25 21:27:26 +10:00
Andrew Tridgell
7a9e40b288
consider a node dead after 6 seconds, not 15
...
(This used to be ctdb commit b055907f0bd2fa0e83bd84e49039fa868905b941)
2007-05-25 20:00:06 +10:00
Andrew Tridgell
3c3ed0989e
paraoid check for empty db on attach
...
(This used to be ctdb commit f46ecc15d8d6520a7bce721d915897deba84a54f)
2007-05-25 18:48:49 +10:00
Andrew Tridgell
613c6b9c4c
new files for IP takeover
...
(This used to be ctdb commit 9232501a6bb9ee5d67a3b7cc87752d82ede162a6)
2007-05-25 17:16:50 +10:00
Andrew Tridgell
56e3eed3d1
added IP takeover logic for public IPs to ctdb
...
(This used to be ctdb commit 374adb729472670f35cef41269b8719f49c0de0e)
2007-05-25 17:04:13 +10:00
Ronnie Sahlberg
2b6c39a0af
add controls to take over and release an ip address
...
add sending of grat arp both normal grat arp (request) and also
unsolicited grat arp replies
(This used to be ctdb commit 7305c00c21c30bdbafc3722a018513378bd307e6)
2007-05-25 13:05:25 +10:00
Andrew Tridgell
7596347844
make ctdbd realtime if possible
...
(This used to be ctdb commit 8852f6cca52b64a5239c83ab7c6a99ae4edb2597)
2007-05-24 14:52:10 +10:00
Andrew Tridgell
6ba5885f07
raise the control timeout in recovery
...
(This used to be ctdb commit 43424ff66daf28c202c12982f20a9f662b6fb125)
2007-05-24 13:49:27 +10:00
Andrew Tridgell
3909d83eef
merge from ronnie
...
(This used to be ctdb commit f31e750760bd98e2214ea76f359824aca6f5826f)
2007-05-24 10:10:02 +10:00
Ronnie Sahlberg
2aface246e
add a new command for ctdb_control to trigger a recovery
...
(This used to be ctdb commit 6da2a4ab1b9c955d55a1c6817506a74539623892)
2007-05-24 08:08:45 +10:00
Andrew Tridgell
5dc81da87e
fixed %d which should be %u
...
(This used to be ctdb commit 2792cf718ff1e66fe99f870f683a13baa160f629)
2007-05-23 20:15:09 +10:00
Andrew Tridgell
296e15c9d4
fixed some memory leaks on the traverse code
...
(This used to be ctdb commit 2781cbb7d00c5448449216c8c0c1b37bdc74a6c0)
2007-05-23 20:06:37 +10:00
Andrew Tridgell
70912e2b0c
added automatic vacuuming of empty records during recovery
...
(This used to be ctdb commit f9181a784ac7009df5e9c996f4e0c3e99098b59a)
2007-05-23 17:21:14 +10:00
Andrew Tridgell
3736943ead
- get rid of ctdb_ctrl_get_config
...
- cope with zero timeout in ctdb_control
(This used to be ctdb commit 9f24689eb0ad6813f1ac78e033cdffe5d8afb128)
2007-05-23 15:18:30 +10:00
Andrew Tridgell
74bf76ca10
merge from ronnie
...
(This used to be ctdb commit 267481b67152bc5885884d223085aa9ef5fe73bd)
2007-05-23 14:50:41 +10:00