This article describes how to move the RW TNG (Delta Tracker) DB from "Default" Location to a New Location/Volume on a Windows Servers (only). The steps described in this article must not be attempted on Linux Servers
Background:
When Delta Tracker SYNC Engine is enabled on Windows Server, a Windows service with the name "rwchangedrv" is created and a File Tracking Database is created at location "C:\Windows\RackwareDB\" (for efficient tracking purposes)
Use case:
Occasionally Customers intend to move this Delta Tracker DB from default location either to a different volume (existing) or add a new volume exclusively for the TNG
Preparation:
The following steps needs to be executed when RW SYNC's for the Windows Server are NOT in progress
Steps:
The steps/example shows moving the Delta Tracker database from default location to R:\RackwareDB
(R:\ could either be a new Volume exclusively to use for this purpose or an existing volume)
1) Log in to the Windows serves as an Administrator (or equivalent user), where Delta Tracker SYNC Engine is enabled,
2) Open a notepad and copy the following lines to the notepad -
reg add HKLM\SYSTEM\CurrentControlSet\Services\RwChangeDrv /v DbFolder /t REG_SZ /d %1\ /f
reg add HKLM\SYSTEM\CurrentControlSet\Services\RwChangeDrv /v ExcludedPaths /d "%1"\0"C:\Windows\Temp"\0 /t REG_MULTI_SZ /f
fltmc unload rwchangedrv
fltmc load rwchangedrv
net stop rwchangesvc
net start rwchangesvc
rmdir /S /Q C:\windows\RackwareDB
Save the file on a desktop (or any convenient location) with the extension .cmd - eg. ChangeTngDepot.cmd
3) On vol R:, create a new folder R:\RackwareDB
4) From Windows command line as an (Administrator/elevated permissions), navigate to the location where this newly created file exists and execute the command - ChangeTngDepot.cmd R:\RackwareDB
Once this command is executed, the Delta Tracker DB from default location is now moved to R:\RackwareDB & will automatically start the Delta Tracker Service/Tracking the delta changes from this point on.
The earlier C:\Windows\RackwareDB folder will now be automatically deleted and space reclaimed over time.
Note -
1) The immediate next SYNC will be a regular DELTA SYNC (and not Delta Tracker SYNC) since a new baseline for Tracking DELTA's is being established after restarting the Service.
2) If there are issues with starting the Delta Tracker service open the Windows Services menu and start the "rwchangedrv" service manually.
Any errors, etc., following the steps, please contact Rackware Customer Success Team.
This ends the procedure to move the RW TNG (Delta Tracker) DB from "Default" Location