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 store from one volume to another as long as the volumes are attached to the same machine.
When the disk drive 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 drive on the same machine, such as from the C drive to the D drive.
You can move the ArcGIS Data Store directory and content for the graph store, object store, or relational store from one drive to another on 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 store from one volume to another on the same machine:
Follow these steps to move the content for a graph store, object store, or relational store from one disk to another on the same machine:
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/toolsdirectory.Open a command prompt on the ArcGIS Data Store machine where the data store is running and change the directory to the
\datastore\toolsdirectory.Run the
backupdatastoreutility to create a backup of the data store that you're going to move.Run the
unregisterdatastoreutility to unregister the graph store, object store, or relational store from the hosting server.Note:
If the relational store contains a standby machine, run the
removemachineutility to remove the standby machine before unregistering the relational store.In this example, the object store is unregistered:
./unregisterdatastore.sh --stores objectunregisterdatastore --stores objectIn this example, the relational store is unregistered:
./unregisterdatastore.sh --stores relationalunregisterdatastore --stores relationalUse the Stop REST command to stop ArcGIS Data Store.
Stop the ArcGIS Data Store service on all the machines in this data store.
If this is a clustered object store or clustered graph store, stop ArcGIS Data Store on all machines in the cluster.
Rename the existing ArcGIS Data Store content directory.
For example, rename
~/arcgis/datastore/usr/arcgisdatastoreto~/arcgis/datastore/usr/old_arcgisdatastore. When you restore the data store in step 7, the content directory in the new location must be namedarcgisdatastore.For example, rename
C:\arcgisdatastoretoC:\old_arcgisdatastore. When you restore the data store in step 7, the content directory in the new location must be namedarcgisdatastore.Use the Start REST command to start ArcGIS Data Store on all machines in this data store.
Start the ArcGIS Data Store service 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.
On the machine where you are moving the data store content directory, run the
restoredatastoreutility 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-diroption 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.
Note:
Use the
data-diroption to specify the new location of the ArcGIS Data Store directory, such asD:\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 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.example.com --server-admin siteadmin --server-password siteadminpasswordrestoredatastore --store relational --target rel1 --source-loc \\backupserver\datastore_backups\backup\relational --data-dir D:\arcgisdatastore --server-url servermachine.example.com --server-admin siteadmin --server-password siteadminpasswordIf this is a highly available relational store, reconfigure the standby machine.