Ronnie Sahlberg
08a7985793
add documentation for the vacuum and repack commands.
...
document the -T option to ctdb
(This used to be ctdb commit fa5abbddaedc1c330f03cbacaa2ab4a76b0945ff)
2008-01-10 11:06:10 +11:00
Andrew Tridgell
bccfdc0838
increase version number
...
(This used to be ctdb commit fccaba54d392f983071e38336f792229f5199d13)
2008-01-10 10:05:33 +11:00
Andrew Tridgell
624898bd81
auto-run the vacuum and repack ops every 5 minutes by default
...
(This used to be ctdb commit 3fc3f3d15a0f51811b32ff7b554d1f8ce9715358)
2008-01-10 10:04:03 +11:00
Andrew Tridgell
3b3fceacbe
block alarm signals during critical sections of vacuum
...
(This used to be ctdb commit cfb14ae76f00f10d27b56c034b2247ab12d63065)
2008-01-10 09:43:14 +11:00
Andrew Tridgell
35e8f2ff6c
tdb_freelist_size was reporting 1 more than correct size
...
(This used to be ctdb commit 46214c9234c574b45bce0b88bfb3af437415a69e)
2008-01-10 09:42:44 +11:00
Andrew Tridgell
2119f0a66c
add a max runtime switch to ctdb tool
...
(This used to be ctdb commit b681e4f2011481aebbe18fd0147c2d500caf2705)
2008-01-10 08:04:54 +11:00
Andrew Tridgell
fae327d471
report the store rate in ctdb_randrec
...
(This used to be ctdb commit da3fb053d91da76122b12f0efb1d31e085b59574)
2008-01-09 17:45:13 +11:00
Andrew Tridgell
bc85af6b61
a compromise for freelist scanning - we now will look for other than the first fit, but get exponentially more desperate as we get deeper into the freelist
...
(This used to be ctdb commit f3319ef84c47dc8bf0bfb4ef1c72cee58ed9d88c)
2008-01-09 15:33:10 +11:00
Andrew Tridgell
5b6486c35b
allow delete percentage to be specified on the command line
...
(This used to be ctdb commit 1177b48067a92cbf013e19027d4122327c620361)
2008-01-09 15:32:18 +11:00
Andrew Tridgell
5d9913642f
allow remote variable expansion in onnode, so you can use wildcards that expand on the remote nodes
...
(This used to be ctdb commit def643225a1cb31d4999f3e73fad368ae60048ad)
2008-01-09 15:04:56 +11:00
Andrew Tridgell
59d69bb709
only match vacuum list if on the same database
...
(This used to be ctdb commit 27e56955e93027534780cc7549ddb224670d82b6)
2008-01-09 10:22:20 +11:00
Andrew Tridgell
fa77de5b34
needs to be in Makefile.in too
...
(This used to be ctdb commit b3dfdf28fa682a55d177564774cde3af8c260d8e)
2008-01-09 08:50:03 +11:00
Andrew Tridgell
4879d465fa
forgot this file
...
(This used to be ctdb commit d715bef49a88f9084f53b3c88307848ed8434a50)
2008-01-09 08:41:27 +11:00
Andrew Tridgell
010e257e64
increase version number
...
(This used to be ctdb commit 8aa1d26a83fd781e641fa23b14bbfd1c238de0b6)
2008-01-09 08:29:19 +11:00
Andrew Tridgell
bb3f77d61d
changed default vacuum limit
...
(This used to be ctdb commit 7ca2977c12cf7938da639a17a0f857d7029d749c)
2008-01-09 08:28:18 +11:00
Andrew Tridgell
673a2b46f9
nicer outut from repack and vacuum
...
(This used to be ctdb commit 446c76bc332fe1366c32898fb77279a902d7159c)
2008-01-08 23:02:43 +11:00
Andrew Tridgell
0ee375ad66
this is not an error - it just means the record was busy
...
(This used to be ctdb commit 749451a4e97330d0fc35f5366dcc61aa500f7ce9)
2008-01-08 22:36:44 +11:00
Andrew Tridgell
9559249e15
ensure the main daemon doesn't use a blocking lock on the freelist
...
(This used to be ctdb commit 73f8257906b09e6516f675883d8e7a3c455ad869)
2008-01-08 22:31:48 +11:00
Andrew Tridgell
1c91398aef
ensure the recovery daemon is not clagged up by vacuum calls
...
(This used to be ctdb commit ff7e80e247bf5a86adda0ef850d901478449675b)
2008-01-08 21:28:42 +11:00
Andrew Tridgell
96100fcae6
added two new ctdb commands:
...
ctdb vacuum : vacuums all the databases, deleting any zero length
ctdb records
ctdb repack : repacks all the databases, resulting in a perfectly
packed database with no freelist entries
(This used to be ctdb commit 3532119c84ab3247051ed6ba21ba3243ae2f6bf4)
2008-01-08 17:23:27 +11:00
Andrew Tridgell
41f63fe162
updated docs from ronnie
...
(This used to be ctdb commit 0390f9e68210dd7f6e750f7a5909a0f97841193c)
2008-01-08 11:47:29 +11:00
Andrew Tridgell
25bb60f112
show start/stop time of recovery on all nodes
...
(This used to be ctdb commit 9f7662279c367eb3e8a58e6f4aeca521e6f1f1d0)
2008-01-08 09:30:11 +11:00
Andrew Tridgell
61fd2d5d6f
background the smbstatus -n command
...
(This used to be ctdb commit 0a05cc6763aa6e57089d3ce70516d359fcddb0e4)
2008-01-07 23:41:07 +11:00
Andrew Tridgell
37861932ce
merge from ronnie
...
(This used to be ctdb commit 0aa6e04438aa5ec727815689baa19544df042cf7)
2008-01-07 16:17:22 +11:00
Andrew Tridgell
d38fbaa38b
nicer onnode output
...
(This used to be ctdb commit ac5c1e090d007bc2e3965589731620b87c0217fb)
2008-01-07 14:31:13 +11:00
Andrew Tridgell
4258098e98
catch internal traversal errors
...
(This used to be ctdb commit 8caa85ad71be5d20a8d6f0cb3d52aff6905657a4)
2008-01-07 14:08:25 +11:00
Andrew Tridgell
528e4d7a2b
more efficient traversal in pulldb control
...
(This used to be ctdb commit fe614b10868e63b70e081b5bbfb74bf16fdf5716)
2008-01-07 14:07:01 +11:00
Andrew Tridgell
30e18ed48e
don't retstart statd when we don't need to
...
(This used to be ctdb commit 94059f108b14c4a2442a40cf8f0eceb612c5d14a)
2008-01-07 14:05:30 +11:00
Andrew Tridgell
db6ac79579
new rpm version
...
(This used to be ctdb commit eb8fba9613e90088b295d6428d5edad7b75315ba)
2008-01-06 13:25:17 +11:00
Andrew Tridgell
748843a3c6
added paranoid transaction ids
...
(This used to be ctdb commit afc1da53873cdbd31fcc8c6b22fae262e344cf6e)
2008-01-06 13:24:55 +11:00
Andrew Tridgell
c08f2616cd
new simpler and much faster recovery code based on tdb transactions
...
(This used to be ctdb commit 9ef2268a1674b01f60c58fed72af8ac982fe77a3)
2008-01-06 12:38:01 +11:00
Andrew Tridgell
4f5b717aa3
change default tunables to cope with larger dbs
...
(This used to be ctdb commit d91a2d43d1f0562cc3a12e6e1e2767f75d888f72)
2008-01-06 12:36:58 +11:00
Andrew Tridgell
108aafcdb2
non-persistent databases don't need sync transactions
...
(This used to be ctdb commit 52fd86addd23e4d6e0af2c716bd83d19675b1f5a)
2008-01-06 12:36:30 +11:00
Andrew Tridgell
4322a86645
ensure tdb log messages appear in ctdbd logs
...
(This used to be ctdb commit b2439487832230e7b738c0f89eeaa2c0c4ba0951)
2008-01-06 12:35:49 +11:00
Andrew Tridgell
ff039b405f
- added tdb_add_flags() and tdb_remove_flags()
...
- make freelist merging more paranoid
- fixed TDB_DATA_STAART() (broken by earlier commit)
(This used to be ctdb commit c3be8eb7d1ca316111ec51f45dbca2fa5609cf93)
2008-01-06 12:33:57 +11:00
Andrew Tridgell
43aa27c9ee
this is needed with merged tdb
...
(This used to be ctdb commit 3dc07f2bf98ab445ab960ef14173bc6924e3b658)
2008-01-05 17:42:01 +11:00
Andrew Tridgell
841a04924c
merge from Samba4
...
(This used to be ctdb commit 9aed7a1d065272c2e5b54872228a73f37664b526)
2008-01-05 17:41:41 +11:00
Andrew Tridgell
370779a1bb
update from Samba4
...
(This used to be ctdb commit 298118c41bd33acd1a34a35a71a28451a45390c5)
2008-01-05 17:41:01 +11:00
Andrew Tridgell
67d2b14d90
convert tdb from u32 to uint32_t to match the current Samba trees
...
(This used to be ctdb commit 0dc754b7e8b0985a252885ed043949dfb7ea1ae1)
2008-01-05 17:22:47 +11:00
Andrew Tridgell
c2f84d6f4e
Rewrote the tdb transaction code to be O(N) instead of O(N^2)
...
The previous transaction code was fast as long as you didn't do too
many writes within the transaction. The new code is a bit slower for
very small numbers of writes, but scales linearly as the number of
writes increases. The old code scaled as O(N^2) with the number of
writes, making it unusable for large N.
After testing, this needs to be merged into the Samba version of tdb,
along with many of the other recent tdb changes in the ctdb tree.
(This used to be ctdb commit bef8fe3d3ba80c7c660972c5357407f5278f7e26)
2008-01-05 17:19:47 +11:00
Andrew Tridgell
5180a3b756
fixed excludes in tar ball creation for src rpm
...
(This used to be ctdb commit fe0662fb2cdf733c5c9da7e24641e89039cb3e54)
2008-01-05 13:08:10 +11:00
Andrew Tridgell
a54b88dba2
fixed data offset definition
...
(This used to be ctdb commit cef83d74883f6c66866fb7e5e17769322a3473da)
2008-01-05 12:10:18 +11:00
Andrew Tridgell
9311f7fb7e
fixed the bug that make "onnode N service ctdb start" hang
...
(This used to be ctdb commit b50dcb16f30a60abce42f491f9b0aae7948b8206)
2008-01-05 12:09:29 +11:00
Andrew Tridgell
63b2d1c34e
cleanup the new freelist code
...
(This used to be ctdb commit 76137104c7028b061578950d4b6b35ca8267fab1)
2008-01-05 12:09:00 +11:00
Andrew Tridgell
a21afe88bc
added tdb_wipe_all() function
...
(This used to be ctdb commit 8e2d81cf54630970d66af92de2c0333acd2e1d22)
2008-01-05 12:08:41 +11:00
Andrew Tridgell
9bd69e75c8
ensure we always build the right version
...
(This used to be ctdb commit 841943e74355a4347cda5b23b1807522bf12f169)
2008-01-05 09:55:18 +11:00
Andrew Tridgell
02287e5781
update version
...
(This used to be ctdb commit 37a1d17365995f15696e4c338d7c2efcc04c1e6e)
2008-01-05 09:52:53 +11:00
Andrew Tridgell
e4aefbc66d
a new tunable DatabaseMaxDead that enables the tdb max dead cache logic
...
(This used to be ctdb commit 01c519c3658a8fcb9545b507b597e723658e4c4e)
2008-01-05 09:36:53 +11:00
Andrew Tridgell
023a230d9c
a useful hack for checking correct behaviour of recovery
...
(This used to be ctdb commit d88b95a5407b53ead47ca0638ee60653ea3d3d07)
2008-01-05 09:36:21 +11:00
Andrew Tridgell
f79dfd04c0
convert much of the recovery logic to be async and parallel across all nodes
...
(This used to be ctdb commit 8b72a02bf1045d8befb342a4111ca1316889262e)
2008-01-05 09:35:43 +11:00