Skip to main content

maintaindatastore

This ArcGIS Data Store utility is used with the relational store and the ArcGIS Data Store object store.

The maintaindatastore utility has the potential to reclaim disk space that is no longer used by the relational store or the object store.

Caution:

When you run this utility on the object store, it restarts all the object store nodes.

For the relational store, this utility cleans up unused data to free up disk space, if possible.

When you run this utility for the object store, it does the following:

  • Deletes expired feature query caches immediately. If no feature query caches have expired, though, none will be deleted.

  • Reclaims disk space vacated by deleted feature query caches, both those by this utility and those deleted as part of scheduled deletions.

    Note:

    Running this utility is the only way to reclaim this disk space; the scheduled deletions do not do this because the scheduled deletions do not restart the object store.

Run this utility on the primary machine in the relational store. Run it on any machine in the ArcGIS Data Store object store.

Syntax

maintaindatastore --store {relational | object} [--prompt {yes|no}]

Examples

In this example, feature query caches that would have been purged at midnight are purged now if the cache is past the expiration time that the ArcGIS Server administrator configured for the feature service.

./maintaindatastore.sh --store object --prompt no

maintaindatastore --store object --prompt no

In the next example, the utility is run for the relational store to reclaim disk space that is currently used by obsolete data.

./maintaindatastore.sh --store relational --prompt no

maintaindatastore --store relational --prompt no