Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
engine:7.8:faq [2019/05/23 15:45]
yallusse [How to upgrade my license file]
engine:7.8:faq [2019/05/23 16:42]
yallusse i
Line 100: Line 100:
 Everything should then be updated, please proceed to a few queries to test system status. Everything should then be updated, please proceed to a few queries to test system status.
  
-==== How to upgrade ​my license file ==== +==== How to rename ​my server ==== 
-vdse78x+On a single stand alone setup, you can rename your server hostname by following these steps. 
 + 
 +WARNING: please contact the support team to have any advise before starting this procedure 
 + 
 +We advise taking a snapshot of the server or performing a backup of the data before doing any of the following actions. 
 + 
 + 
 +===== Stop all services ===== 
 + 
 +<​file>​ 
 +/​etc/​init.d/​ltud stop all 
 +</​file>​ 
 + 
 +===== Server license ===== 
 +Contact our support team to obtain a new license file
 +Please send us the following files so we can check the system configuration:​ 
 +  * /​opt/​ltuengine/​config/​license.lic 
 +  * /​opt/​ltuengine/​run/​cache/​config/​ltuengine.full.spec 
 +  * /​opt/​ltuengine/​run/​cache/​config/​weki.cfg 
 +  * /​opt/​ltuengine/​run/​cache/​config/​processor.cfg 
 +  * /​opt/​ltuengine/​run/​cache/​config/​kima.cfg 
 + 
 +Copy the new license in /​opt/​ltuengine/​config/​license.lic 
 +<​file>​ 
 +grep OLD_SERVER_NAME -R /​opt/​ltuengine/​config/​license.lic --color 
 +</​file>​ 
 + 
 +===== Rename server ===== 
 +Edit your /​etc/​hostname to reflect the new server name. 
 + 
 +WARNING: make sure you can ping the new hostname 
 + 
 +===== Update LTU Engine specification ===== 
 +All LTU Engine settings are stored into one file and then deployed into multiple configuration files for each services. 
 + 
 +Copy the file containing all specifications:​ 
 +<​file>​ 
 +su - ltu 
 + 
 +# backup existing file 
 +cp config/​ltuengine.spec config/​ltuengine.spec.back 
 + 
 +# get full specification file 
 +cp run/​cache/​config/​ltuengine.full.spec config/​ltuengine.spec 
 +</​file>​ 
 + 
 +Update /​opt/​ltuengine/​config/​ltuengine.spec to reflect the new server name: 
 +<​file>​ 
 +# replace servername in specification file: 
 +sed -i '​s/​OLD_HOSTNAME/​NEW_HOSTNAME/​g'​ config/​ltuengine.spec 
 + 
 +# check that the old hostname is not used anymore: 
 +grep OLD_HOSTNAME -R config/​ltuengine.spec --color 
 +</​file>​ 
 + 
 +<​file>​ 
 +# regenerate the services configuration files 
 +ltusaas-generate-config-files -i config/​ltuengine.spec -o run/​cache/​config/​ 
 + 
 +# check that the old hostname is not used anymore: 
 +grep OLD_HOSTNAME -R run/​cache/​config/​ --color 
 +</​file>​ 
 + 
 +===== Update the SI database ===== 
 + 
 +<​file>​ 
 +su - ltu 
 +# Consult the server list table: 
 +psql saas_si -p 7791 -c "​select * from hw_server;"​ 
 + 
 +# Update the server list table: 
 +psql saas_si -p 7791 -c "​update hw_server set hostname='​NEW_HOSTNAME'​ where hostname='​OLD_HOSTNAME';"​ 
 +</​file>​ 
 + 
 +===== Start all services ===== 
 + 
 +<​file>​ 
 +/​etc/​init.d/​ltud start all 
 +</​file>​ 
 + 
 + 
 +<​file>​ 
 +/​etc/​init.d/​ltud status all 
 +</​file>​