-
-
Notifications
You must be signed in to change notification settings - Fork 41
Relocating the AMP Datastore
Greelan edited this page Jan 30, 2020
·
17 revisions
If you need to relocate the AMP datastore, the best way to do this on both platforms is using a symbolic link.
Currently the method below does not appear to work correctly. Do not follow this method until the issue has been investigated and the instructions updated
- As root or sudoer, make a new directory for the datastore in the new PATH (eg in
/mntor/srv, or wherever you want the datastore to be moved to) - substitute the full path for 'PATH' in the commands below:
sudo mkdir -p PATH/amp
sudo chown amp.amp PATH/amp
sudo chmod 755 PATH/amp
- Switch to the
ampuser, stop AMP, move the datastore to the new location, and create a symlink in its place. Then restart AMP (if you want to start all instances, not just boot-time instances, then useampinstmgr -a):
sudo su -l amp
ampinstmgr -o
mv /home/amp/.ampdata PATH/amp/
ln -s PATH/amp/.ampdata /home/amp/
ampinstmgr -b
exit
Todo: Using mklink
Alternatively on Windows, you can edit the InstanceStore field in the HKEY_LOCAL_MACHINE/SOFTWARE/CubeCoders/AMP/InstanceManager registry entry. You'll also need to edit the Instances.json file (while all AMP instances are stopped!) to update the locations.