Bug 47198 - index: Add option to purge unused LDAP index data
index: Add option to purge unused LDAP index data
Status: NEW
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-14 17:48 CEST by Arvid Requate
Modified: 2023-05-24 08:32 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.023
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2018-06-14 17:48:00 CEST
When changing an LDAP index configuration (e.g. type sub to eq, or drop an attribute from the index) slapindex leaves the old index data in the mdb database. Cleaning this up would free the database space to be used for actual data.

There is a slapindex option "-t":
Truncates (empties) an index database before indexing any entries.

The manpage also says "May only be used with Quick mode.", but Ingo found out that the combination of -q and -t actually seems to produce less data than using "-t" alone (just by looking at mdb_stat -f). We should check how to effectively use the this option and add it to our ldap_setup_index script. In the first step I would simply offer it for manual operation and not as default.