Relocating CodeStation
You can move the CodeStation artifacts to a different location on the server.
About this task
By default, the server's log files and CodeStation artifacts are stored in the application data directory. You specified this directory when you installed the server. In the case of high-availability clusters, this directory is in a shared location where each server in the cluster can access it.
Ideally, this data is stored on robust network storage that is regularly synchronized with an off-site disaster recovery facility. In addition, the HCL DevOps Deploy (Deploy) server requires a fast network connection to this storage.
average artifact size * number of versions that are imported per day * average number of days before cleanupProcedure
- Stop the server.
-
Move the CodeStation data to a new location.
Which folders you move depend on whether the server uses an application data folder or not:
- Check the installed.properties file on the server. If the
server.appdata.dir property in this file has a value of two
periods, (
..) the server does not use an application data folder. If the property has a value other than two periods, the server uses an application data folder.
When you know whether the server has an application data folder or not, you can move the correct files to a new location.
- If the server uses an application data folder, complete these steps:
- Move the application data folder to a new location. The default application data folder is /opt/devops-deploy/server/appdata on Linux™ and C:\Program Files\devops-deploy\server\appdata on Windows™.
- On the server, open the
devops-deploy/conf/server/installed.properties file and
update the following properties to reflect the new location of the application
data (appdata) folder:
- server.appdata.dir — The path to the appdata folder.
- encryption.keystore — The path to the encryption keystore file.
- server.keystore — The path to the server keystore file.
- derby.system.home (only if you use the Derby database) — The path to the Derby database home.
server.appdata.dir=../appdata encryption.keystore=../appdata/conf/encryption.keystore server.keystore=../appdata/conf/server.keystore derby.system.home=../appdata/var/dbNote:- By default, the
installed.propertiesfile uses relative paths (for example, ../appdata). If you relocate the application data folder to a non-standard location such as a network-attached storage (NAS) mount, use absolute paths instead of relative paths to ensure that the Deploy server can reliably resolve the file locations. - The operating system user account that runs the Deploy
server process must have full read and write access to the new
appdatadirectory and all of its contents, including theconfandvarsubdirectories. On Linux, you can verify permissions by running:ls -la /data/devops-deploy/appdata. You must ensure that the ownership and permissions match the user that runs the Deploy server service.
- If the server does not use an application data folder, complete these steps:
- Move the following individual folders to new locations:
- install_folder/var/plugins
- install_folder/var/repository
- install_folder/var/sa
- install_folder/logs
- install_folder/conf/server/notification-templates
- install_folder/conf/encryption.keystore
- install_folder/conf/server.keystore
- install_folder/conf/collectors
- install_folder/patches
- install_folder/conf/server/log4j.properties
- Create links from the previous folder locations to the new folder locations so that the server can continue to access the folders. For example, on Linux™ systems, you can use symbolic links, also known as symlinks.
- Move the following individual folders to new locations:
- Check the installed.properties file on the server. If the
server.appdata.dir property in this file has a value of two
periods, (
- Start the server.