AppD Archive

Controller migration (different OS's)

CommunityUser
Splunk Employee
Splunk Employee

Hello, 

My client is migrating their controller from a Windows machine to a Linux. 

Because it is different operating systems we cannot just simply copy the installation folder. 

Is there a simple way to transfer all the customizations to the new machine?

Thank you,

Nir

0 Karma

Arun_Dasetty
Super Champion

Hi Nir,

Thanks for writing to us, Can you please try as follows:

1) Take backup of the following files in addition to any custom config files under <OLD_Controller_install_dir>

    - response.varfile under <OLD_Controller_install_dir>/.install4j/ directory
    - controller.sh or controller.bat under <OLD_Controller_install_dir>/bin/ (in this case it is controller.bat)
      we are copying this file as this contains the mysql password from the old controller installation

   - stop the controller appserver and database process at the old controller installation (on windows machine)
   - now take the complete backup of db directory under <OLD_Controller_install_dir>/  (which is <windows_controller_install_dir>/db in this case) as per docs:
http://docs.appdynamics.com/display/PRO13S/Controller+Data+Backup+and+Restore

2) File a support case to get the license for the linux machine on which you are planning to do migration, provide the new mac address details to get the license file, if you do not have license.lic file for the linux machine already

3) Now install controller on linux machine with same performance profile and other installation parameters (you can change the controller installation directory as per linux path no need to hard copy the windows directory path in new installation) and you can refer for profile and user and other installation parameter in the old response.varfile for your reference

4) Now check whether new installation success and you are able to login the controller ui installed in linux

5) Now stop the linux controller and database and rename the db directory name under <New_Cotnroller_install_dir/db to <New_Cotnroller_install_dir/db_bkup

6) Now move the db backup from old contorller installation(windows) to new controller installation directory (linux)

at <New_Cotnroller_install_dir/db  and now restart the controller database and appserver at new installation and check how it goes

shell> cd <New_Cotnroller_install_dir/bin
shell> ./controller.sh stop-appserver
shell> ./controller.sh stop-db
shell> ./controller.sh start-db

shell> ./controller.sh start-appserver


refer docs: http://docs.appdynamics.com/display/PRO13S/Migrate+the+Controller+between+Machines

7) If you see any issues in stopping and starting database in above step after databse backup restored in new controller installation directory in linux machine, please take a backup of mysql root password in response.varfile in <New_Cotnroller_install_dir/./install4j/response.varfile and in controller.sh file and update the mysql_root_user_password field in above two files as per the mysql_root_user_password in contorller.sh of the <Old_Cotnroller_install_dir/bin/ directory

In the above case we are not moving old controller installation directory we are only doing db migration to the new instsallation directory. Let us know if that information helps.

Thanks,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

did it work?  as far I knew, there were some issue on migrating DB from Window to Linux... right?

0 Karma

Arun_Dasetty
Super Champion

Hi Nir,

Hope you have tried db migration and successfull, If not we hope you have taken db backup and have not lost controlelr database data during db migration failure, please find the possible mysql bug that could cause the failure across cross platform:

We confirm that we could not guarantee the results in case of cross platform migration from windows to linux.

mysql dump migration across windows to linux platform has a bug as stated in:
http://bugs.mysql.com/bug.php?id=33898

Thanks,

Arun

0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...