Skip To Content

Move ArcGIS Data Store from one drive to another on the same machine

When the volume where ArcGIS Data Store is installed and storing data gets close to running out of space, you can either free up disk space by removing other programs and files, or you can move the ArcGIS Data Store installation to another volume attached to the same machine.

You can move the ArcGIS Data Store directory and content for the graph store, object store, or relational data store from one volume to another as long as the volumes are attached to the same machine.

Note:

  • Before you proceed with moving the data store content, create a backup of the entire ArcGIS Enterprise deployment.
  • The following steps assume that you have only one type of data store installed on the machine. Do not follow the steps below if you have more than one type of ArcGIS Data Store installed on the same machine.

Follow these steps to move the content for a graph store, object store, or relational data store from one volume to another on the same machine:

  1. Open a command prompt or shell on the ArcGIS Data Store machine where the data store is running and change the directory to the /datastore/tools directory.
  2. Run the backupdatastore utility to create a backup of the data store that you're going to move.
  3. Run the unregisterdatastore utility to unregister the graph store, object store, or relational data store from the hosting server.
    Note:

    If the relational data store contains a standby machine, run the removemachine utility to remove the standby machine before unregistering the relational data store.

    In this example, the object store is unregistered:

    ./unregisterdatastore.sh --stores object

    In this example, the relational data store is unregistered:

    ./unregisterdatastore.sh --stores relational

  4. Use the Stop REST command to stop ArcGIS Data Store.

    If this is a clustered object store or clustered graph store, stop ArcGIS Data Store on all machines in the cluster.

  5. Rename the existing ArcGIS Data Store content directory.

    For example, rename ~/arcgis/datastore/usr/arcgisdatastore to ~/arcgis/datastore/usr/old_arcgisdatastore. When you restore the data store in step 7, the content directory in the new location must be named arcgisdatastore.

  6. Use the Start REST command to start ArcGIS Data Store on all machines in this data store.

    If this is a clustered object store or clustered graph store, start ArcGIS Data Store on all machines in the cluster.

  7. On the machine where you are moving the data store content directory, run the restoredatastore utility using the following syntax:

    restoredatastore --target <backup name> --source-loc <backup file location> --data-dir <location of new ArcGIS Data Store directory> --server-url <hosting server URL> --server-admin <ArcGIS Server administrator for hosting server> --server-password <password for ArcGIS Server administrator for hosting server>

    Note:

    Use the data-dir option to specify the new location of the ArcGIS Data Store content directory, such as /newvol/arcgisdatastore. Ensure that the directory in the new location has the same name as the original directory.

    You cannot use a file share and you cannot specify a UNC path for the data store content directory.

    The following are examples of restoring a data store with a new content directory location:

    Restore a relational data store from a backup file.

    ./restoredatastore.sh --store relational --target rel1 --source-loc /net/usr/datastore_backups/relational 
    --data-dir ~/newvol/arcgisdatastore --server-url servermachine.domain.com --server-admin siteadmin --server-password siteadminpassword

  8. If this is a highly available relational data store, reconfigure the standby machine.