Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-6210

Support rebuilding all indexes for all backends and base DNs

    Details

    • Type: Improvement
    • Status: Dev backlog
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.0.0
    • Fix Version/s: None
    • Component/s: backends, devops, ease of use, tools
    • Labels:
      None

      Description

      Today if a user wants to automate rebuilding all degraded indexes for all backends and base DNs they have to write a short script like this:

      for baseDn in `./bin/ldifsearch -b cn=backends,cn=config -s one config/config.ldif \
              "(&(objectclass=ds-cfg-pluggable-backend)(ds-cfg-enabled=true))" ds-cfg-base-dn \
              | grep "^ds-cfg-base-dn" \
              | cut -c17-`; do
          echo "Rebuilding degraded indexes for base DN \"${baseDn}\"..."
          ./bin/rebuild-index --offline --rebuildDegraded --baseDn ${baseDn}
      done
      

      This is because the --baseDN option is required and single-valued.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              matthew Matthew Swift
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: