How to move the vault data to a different directory or drive?
Question
I would like to move the Vault Server Safes folder from one drive to another. What are the required changes?
Environment
9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.6;14.2;14.6;15.0 Privileged Access Manager (PAM, self-hosted) Vault Server;Vault
Answer
CAUTION:
- BEFORE PROCEEDING WITH THESE STEPS, ENSURE THAT DR REPLICATION IS WORKING AND / OR A RECENT BACKUP TO A PVWA/CPM USING PAREPLICATE EXISTS!
- MAKE COPIES OF ALL CONFIGURATION FILES LISTED BEFORE MAKING CHANGES!
- Stop the PrivateArk Server service
- Stop the PrivateArk Database service
- Copy the content of the PrivateArk\Safes folder to the desired new location.
- Note: Make sure that the length of the folder is not longer than 20 characters.
- Make the following edits in the following files:
- <PrivateArk_Software Directory>\Server\Database\My.ini
- Change datadir to point to the new location (e.g datadir=F:/PrivateArk/Safes/Metadata)
- Note: The use of forward slashes, and not back slashes, is intentional.
- Change innodb_data_home_dir to point to the new location (e.g. innodb_data_home_dir=F:/PrivateArk/Safes/Metadata)
- Note: The use of forward slashes, and not back slashes, is intentional.
- Change datadir to point to the new location (e.g datadir=F:/PrivateArk/Safes/Metadata)
- <PrivateArk_Software Directory>\Server\Conf\tsparm.ini
- Change SafesDirectory to point to the new location (e.g: SafesDirectory=F:\PrivateArk\Safes)
- <PrivateArk_Software Directory>\Server\Conf\dbparm.ini
- Change StagingAreaDirectory to point to the new location (e.g. F:\PrivateArk\StagingArea)
- Change EntropyFile to point to the new location (e.g. F:\PrivateArk\Safes\entropy.rnd)
- <PrivateArk_Software Directory>\Server\Event Notification Engine\Conf\ENEConf.ini
- Change ConfigurationDirectory to point to the new location (e.g. F:\PrivatArk\Safes\ENE)
- Change UserFileName to point the new location (e.g. F:\PrivateArk\Safes\ENECredFile.ini)
- Cluster Vault Configurations:<PrivateArk_Software Directory>\Server\ClusterVault\Conf\ClusterVault.ini
- Update the Cluster Storage on each Node in the Cluster to have the ID of the new drive
- Note: StorageManager.exe can be used to complete this
- Change SharedConfigurationDirectory to the new location
- Update the Cluster Storage on each Node in the Cluster to have the ID of the new drive
- <PrivateArk_Software Directory>\Server\Database\My.ini
- Start the PrivateArk Database service
- Start the PrivateArk Server service
- If no errors are present in the italog.log, the safes have been moved correctly and you can delete the original \PrivateArk\Safes folder.
- Stop the PrivateArk Server service
- Stop the PrivateArk Database service
- Copy the content of the PrivateArk\Safes folder to the desired new location.
- Note: Make sure that the length of the folder is not longer than 20 characters.
- Make the following edits in the following configuration files:
- <PrivateArk_Software Directory>\Server\Database\My.ini
- Change datadir to point to the new location (e.g datadir=F:/PrivateArk/Safes/Metadata)
- Note: The use of forward slashes, and not back slashes, is intentional.
- Change innodb_data_home_dir to point to the new location (e.g. innodb_data_home_dir=F:/PrivateArk/Safes/Metadata)
- Note: The use of forward slashes, and not back slashes, is intentional.
- Change datadir to point to the new location (e.g datadir=F:/PrivateArk/Safes/Metadata)
- <PrivateArk_Software Directory>\Server\TSParm.ini
- Change SafeDirectory to the new location
- <PrivateArk_Software Directory>\Server\DBParm.ini
- Change EntropyFile value to the new location
- <PrivateArk_Software Directory>\Server\Event Notification Engine\ENEConf.ini
- Change ConfigurationDirectory to the new location
- Change UserFileName to the new location
- Cluster Vault Configurations: <PrivateArk_Software Directory>\Server\ClusterVault\Conf\ClusterVault.ini
- Update the Cluster Storage on each Node in the Cluster to have the ID of the new drive
- Note: StorageManager.exe can be used to complete this
- Change SharedConfigurationDirectory to the new location
- Update the Cluster Storage on each Node in the Cluster to have the ID of the new drive
- <PrivateArk_Software Directory>\Server\Database\My.ini
- Start the PrivateArk Database service
- Start the PrivateArk Server service and check the logs for problems.
- If no errors are present in the italog.log, the safes have been moved correctly and you can delete the original \PrivateArk\Safes folder.
Additional Information
Details
Q:
e. Cluster Vault Configurations: <PrivateArk_Software Directory>\Server\ClusterVault\Conf\ClusterVault.ini
- Update the Cluster Storage on each Node in the Cluster to have the ID of the new drive
- Note: StorageManager.exe can be used to complete this
- Change SharedConfigurationDirectory to the new location
6. Start the PrivateArk Server service and check the logs for problems.
7. If and only if the server starts up properly and all user access and data is verified, delete the ORIGINAL \PrivateArk\Safes folder
Version 10.5:
1. Stop the PrivateArk Server service
2. Stop the PrivateArk Database service
3. Copy the "Safes" and "StagingArea" directories (default location is \PrivateArk\Safes) to the desired location making sure that the length is no longer than 20 characters (note: if PADR service is utilized on the Vault servers for replication/DR, ensure that the "Restored Safes" directory is also copied to the new location).
4. Make the following edits in the following files:
a. <PrivateArk_Software Directory>\Server\Database\My.ini
- Change datadir to point to the new location (e.g datadir=F:/PrivateArk/Safes/Metadata) Note the use of forward slashes, and not back slashes.
- Change innodb_data_home_dir to point to the new location (e.g. innodb_data_home_dir=F:/PrivateArk/Safes/Metadata) Note the use of forward slashes, and not back slashes.
b. <PrivateArk_Software Directory>\Server\Conf\tsparm.ini
- Change SafesDirectory to point to the new location (e.g: SafesDirectory=F:\PrivateArk\Safes)
c. <PrivateArk_Software Directory>\Server\Conf\dbparm.ini
- Change StagingAreaDirectory to point to the new location (e.g. F:\PrivateArk\StagingArea)
- Change EntropyFile to point to the new location (e.g. F:\PrivateArk\Safes\entropy.rnd)
d. <PrivateArk_Software Directory>\Server\Event Notification Engine\Conf\ENEConf.ini
- Change ConfigurationDirectory to point to the new location (e.g. F:\PrivatArk\Safes\ENE)
- Change UserFileName to point the new location (e.g. F:\PrivteArk\Safes\ENECredFile.ini)
e. Cluster Vault Configurations:<PrivateArk_Software Directory>\Server\ClusterVault\Conf\ClusterVault.ini
- Update the Cluster Storage on each Node in the Cluster to have the ID of the new drive
- Note: StorageManager.exe can be used to complete this
- Change SharedConfigurationDirectory to the new location
5. Start the PrivateArk Database service
6. Start the PrivateArk Server service
7. If no errors are present in the italog.log then the safes have been moved correctly and you can delete the original \PrivateArk\Safes folder.