Resolve file lock issue on Windows host during Data Collector upgrade
Data Collector can detect files in use during upgrade on a Windows host and can kill processes holding these files before proceeding with the upgrade.
To make use of this feature:
- Download a third-party Handle utility from Microsoft site: https://learn.microsoft.com/en-us/sysinternals/downloads/handle.
- Unzip the file and copy its contents to the default location
C:\Program Files\Handle. - If you want to copy at a custom location:
Make sure the custom location appears as
C:\<CustomFolder>\Handle.On the IT Analytics Portal, navigate to Admin > Advanced > Parameters and add the parameter DC_UPGRADE_HANDLE_UTILITY_PATH. Set its value as the custom location.
- If the Handle utility is located correctly, then the detected file locking process is killed automatically during the Data Collector upgrade by default.
To prevent the file locking process from being killed automatically during the Data Collector upgrade, go to Admin > Advanced > Parameters on the IT Analytics Portal and set the parameter DC_UPGRADE_UPGRADE_KILL_FILE_LOCKING_PROCESSES value as N.
- Initiate the Data Collector upgrade.
Note:
The default values of DC_UPGRADE_HANDLE_UTILITY_PATH: C:\Program Files\Handle and DC_UPGRADE_KILL_FILE_LOCKING_PROCESSES: Y.