[Samba] CTDB - deleting database entries

Bjoern Baumbach bb at sernet.de
Tue Dec 11 03:17:22 MST 2012


Hi Orlando!

On 12/10/2012 04:01 PM, Orlando Richards wrote:
> Is there any way to remove entries in a CTDB cluster once they have been
> created, short of shutting down all nodes, editing each tdb manually,
> then starting them back up?

Yes! You can use the undocumented dbwrap_tool.

USAGE: dbwrap_tool <database> <op> [<key> [<type> [<value>]]]
       ops: fetch, store, delete, erase, listkeys, listwatchers
       types: int32, uint32, string, hex

Example:
# list all the keys
dbwrap_tool yourdb.tdb listkeys

# remove the record by key
dbwrap_tool yourdb.tdb delete "name of the key"

Best regards
Björn

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de


More information about the samba mailing list