Maintaining the Data Store Attribute Indexes

You must rebuild the data store attribute indexes every few weeks or whenever large numbers of entries have been deleted. This also frees disk space no longer required by the attribute indexes.

To rebuild the indexes for a data store, choose Update Indexes from the LDBM Data Store menu of the data store property book. You need to do this for each data store individually. Alternatively, you can use the idxgen command to regenerate indexes. Refer to the SIMS Reference Manual for information on the idxgen command.


Note - If you add any additional index definitions to slapd.conf, you must regenerate indexes before running slapd again. This is true even if you have not yet added data matching the new indexes to the Directory.

 

To Back Up a Data Store

Select Data Store>Selected pulldown>Modify Data Store>Ldbm Data Store pulldown>Backup  

  1. To back up a data store, select the data store you want to back up from the Data Store list, and choose Modify Data Store from the Selected menu.
  The data store's property book is displayed.
  2. Click the Ldbm Data Store pull-down menu, and select Backup.
  A selector window is displayed.
  3. Use the selector window to select or create a directory for your backup.
  4. Click Save.

 

To Restore a Data Store

Select Data Store>Selected pulldown>Modify Data Store>Ldbm Data Store pulldown>Restore  

  1. To restore a data store, select the data store you want to restore from the Data Store list, and choose Modify Data Store from the Selected menu.
  The data store's property book is displayed.
  2. Click the Ldbm Data Store pull-down menu, and select Restore.
  A selector window is displayed.
  3. Select the directory containing the backed up data store that you want to restore.
  The default selection is the previous backup directory.
  4. Click Load.
  The directory service is restarted with the restored data store.



Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.