Changing the Location of the Program Data Files

If the Locator database and index have increased in size to the point where there is very little remaining available disk space on the data partition on which they reside, moving the Locator data files to another drive may be required.  To change the location of the Locator data files, perform the following:

  1. From an elevated command prompt, issue "iisreset /stop" to stop the Internet Information Services
  2. Stop all Windows ViaWorks/Locator services in the following order:
    • Each connector service (e.g. Exchange Fetch Service)
    • Index Builder Service
    • Licensing Service
    • Index Service
    • Database Service
  3. For versions 2.8 or lower: Move the entire folder "C:\ProgramData\Virtual Works\ViaWorks" to the new location (e.g. "D:\ProgramData\Virtual Works\ViaWorks").
    For versions 2.9 or newer: Move the entire folder "C:\ProgramData\ayfie\Locator" to the new location (e.g. "D:\ProgramData\ayfie\Locator").
  4. For versions 2.8 or lower: Update the path stored in the Windows Registry key "DataDir" under "HKEY_LOCAL_MACHINE\SOFTWARE\Virtual Works\ViaWorks".
    For versions 2.9 or newer: Update the path stored in the Windows Registry key "DataDir" under "HKEY_LOCAL_MACHINE\SOFTWARE\ayfie\Locator".
  5. Update the path to the index, in the file "C:\Program Files\Virtual Works\ViaWorks\SOLR\example\solr\solr.xml".
    1. For 2.8: C:\Program Files\VirtualWorks\ViaWorks\SOLR\server\solr\solr.xml
    2. For 2.9 or later:C:\Program Files\ayfie\Locator\SOLR\server\solr\solr.xml
  6. For versions 2.8 or lower: Update the file "C:\Program Files\Virtual Works\ViaWorks\Config\Log.config". Search for all references to "C:\ProgramData\Virtual Works\ViaWorks\Log", and replace with the new location.
    For versions 2.9 or newer: Update the file "C:\Program Files\ayfie\Locator\Config\Log.config". Search for all references to "C:\ProgramData\ayfie\Locator\Log", and replace with the new location.
  7. For version 2.8 or lower: Update the path to the Program Data folder in the Windows Registry key "ImagePath" under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ViaWorksDatabaseService". It's the path after the "-D" switch that must be updated.
    For version 2.9 or newer: Update the path to the Program Data folder in the Windows Registry key "ImagePath" under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ayfieDatabaseService". It's the path after the "-D" switch that must be updated.
  8. Reboot the server, or restart all Windows ViaWorks/Locator services in the following order:
    • Database Service
    • Index Service
    • Licensing Service
    • Index Builder Service
    • Each connector service (e.g. Exchange Fetch Service)
  9. From an elevated command prompt, issue "iisreset /start" to start the Internet Information Services

ayfie