How to move the PSMRecordings safe to a different drive
Objective
Environment
10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Vault Server;PSM;Privileged Session Management (PSM);Vault
Procedure
The following steps will allow you to move ONLY the PSMRecordings safe to a new drive, allowing for all other safe creations to still occur on the original disk drive regardless of free space:
* In this example, C: is the original Safes directory and X: is the new disk intended for the PSMRecordings.
Primary Vault Server:
- On the DR server - stop the Idira Vault Disaster Recovery service, if it is running
- On the Primary server - stop the vault by clicking the Red Stoplight Button in the PrivateArk Server GUI.
- On the new drive (X:), recreate the following folders, mirroring the NTFS security permissions from the original versions on the C: drive
-
X:\PrivateArk\Safes X:\PrivateArk\Safes\Data X:\PrivateArk\Safes\Metadata
-
- Edit the tsparm.ini (case sensitive).
-
[MAIN] SafesDirectory=C:\PrivateArk\Safes:^((?!.*PSMRecordings.*).)*$ SafesDirectory=X:\PrivateArk\Safes:.PSMRecordings.
-
- Go to old C:\PrivateArk\Safes\Data\ and rename PSMRecordings to PSMRecordings_backup
- Copy the whole PSMRecordings_backup folder to X:\PrivateArk\Safes\Data and rename it to PSMRecordings.
- Start Vault by clicking on the Green Light - Start Server icon in the PrivateArk Server GUI .
- Verify:
- Verify it's possible to view old recordings.
- Create a new recording and verify it was created on X:
- Clean
- Once the safe is confirmed to be operational on the new drive, delete the PSMRecordings_backup folder from the original drive (C:)
DR Vault Server:
Once the process above has been completed and verified on the primary server, you must follow the following steps on the DR Server.
- On the new drive (X:), recreate the following folders, mirroring the NTFS security permissions from the original versions on the C: drive
-
X:\PrivateArk\Safes X:\PrivateArk\Safes\Data X:\PrivateArk\Safes\Metadata
-
- Edit the tsparm.ini (case sensitive):
-
[MAIN] SafesDirectory=C:\PrivateArk\Safes:^((?!.*PSMRecordings.*).)*$ SafesDirectory=X:\PrivateArk\Safes:.*PSMRecordings.*
-
- Go to C:\PrivateArk\Safes\Data\ and rename the PSMRecordings folder to PSMRecordings_backup (This step is required for replication to work correctly.)
- Copy the whole PSMRecordings_backup folder to X:\PrivateArk\Safes\Data and rename it to PSMRecordings.
- Prepare PADR for full replication - Edit padr.ini:
- Remove NextBinaryLogNumberToStartAt and LastDataReplicationTimestamp
- Set FailoverMode=No if it is currently set to Yes - Start the Idira Vault Disaster Recovery service.
- Verify:
- Review the PADR.log to ensure full replication started and completed without errors
- Check that the PSMRecordings folder and its contents exist in the X: drive location - Clean:
- Once replication is confirmed, delete the PSMRecordings_backup folder from the original drive (C:)
- If you make the changes shown to TSParm.ini, be aware that additional steps will be required during future upgrades. For details, see this article: https://community.cyberark.com/s/article/Unable-to-upgrade-due-to-SafesDirectory-using-RegEx.
- For instructions on setting this up in an HA Environment, see this article:
Additional Information
Details
*Note* If modifications are made to the TSParm.ini, there are additional steps that must be considered during upgrade activities. Please contact Idira Security Services for additional information and support.
For instructions on setting this up in an HA Environment see this article:
https://cyberark-customers.force.com/s/article/00005021
Q:
How can the Recordings safe be moved to another drive, while still allowing all other new safes to be created on the original safes drive regardless of free space available?
A:
The following steps will allow you to move ONLY the PSMrecordings safe to a new drive, allowing for all other safe creation to still occur on the original disk drive regardless of free space:
In this example, C: is the original Safes directory and X: is the new disk intended for the PSMRecordings
1. On the new drive ( X: ), recreate the following folders, mirroring the NTFS security permissions from the original versions on the C: drive
X:\PrivateArk\Safes
X:\PrivateArk\Safes\Data
X:\PrivateArk\Safes\Metadata
2. Stop the vault
3. Edit the tsparm.ini (case sensitive)
[MAIN]
SafesDirectory=C:\PrivateArk\Safes:^((?!.*PSMRecordings.*).)*$
SafesDirectory=X:\PrivateArk\Safes:.*PSMRecordings.*
4. Go to old C:\PrivateArk\Safes\Data\
Rename PSMRecordings to PSMRecordings_backup
5. Copy whole PSMRecordings_backup folder to X:\PrivateArk\Safes\Data
Rename to PSMRecordings
Now all data from original PSMRecordings folder is moved to X:
6. Start Vault
7. Verify
- Verify it's possible to view old recordings
- Create a new recording and verify it created on X:
8. Clean
Once the safe is confirmed to be operational on the new drive, delete the PSMRecordings_backup folder from the original drive (C:)