Hi folks, I'm trying to delete an entry in the idmap database in a ctdb-managed cluster, but I get: "Could not remove gid to sid mapping" when doing: # wbinfo --remove-gid-mapping=956781,S-1-5-21-861567501-1417001333-682003330-493603 Could not remove gid to sid mapping or # wbinfo --set-gid-mapping=18400,S-1-5-21-861567501-1417001333-682003330-493603 Could not create or modify gid to sid mapping 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? Cheers, Orlando -- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994 The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
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