View Source

This document provides information on how to move/migrate a CDP Server (Enterprise Edition) from one physical computer to another.

A CDP Server migration will involve these two elements:
* *Old Computer* \- The physical machine where you have your current CDP Server installation.
* *New Computer* \- The physical machine to which you are moving (migrating) your CDP Server.

!migrate.png!





h5. Why should I do this?

Here are two possible reasons why it may become necessary to migrate a CDP Server:

* Your current computer is having hardware problems and is no longer reliable.
* During backup/restore procedures, it becomes clear that processing power is not sufficient to perform all tasks quickly and reliably; however, the current computer cannot be scaled up any further.


----
Follow the instructions below to move/migrate an Enterprise Edition installation to a New Computer.

{note:title=Note}

It is assumed that you have prepared a New Computer according to these requirements: [System Requirements - CDP Enterprise Edition for Windows|System Requirements - CDP Enterprise Edition for Windows] and [System Requirements - CDP Enterprise Edition for Linux|System Requirements - CDP Enterprise Edition for Linux].


{note}

{toc:location=top|maxLevel=3|minLevel=3|type=list|separator=pipe|style=border:1}

----
h3. Step 1 - Installing a New CDP Enterprise Edition Server

First, install a new CDP Enterprise Edition Server on the New Computer. See:
* [Installing Enterprise Edition on Windows]
* [Installing Enterprise Edition on Linux].

----
h3. Step 2 - Shutting Down the CDP Server Service

Stop the CDP Server on the *New Computer*.



h5. Linux Installations

If your CDP Server is installed on Linux, then the Linux CDP Server can be stopped via the Terminal using this command:

{code}/etc/init.d/cdp-server stop
{code}

!Linux_cdp server stopping.png!

The "cdpserver stopped" message will appear.

!Linux_cdpserver stopped message.png!


h5. Windows Installations

If your CDP Server is installed on Windows, then the Windows CDP Server can be stopped via the "Services" utility. Perform the following steps.

1. Click the Windows "Start" button, and then start the "Run" program. The "Run" window will be opened.

Type in the "*services.msc*" command, and click the "OK" button.


!Run program.png!

2. The "Services" window will be opened.

!Services window.png!

3. Find the "R1Soft CDP Server" service. Right-click on it, and then choose "Stop" in the drop-down menu. The service will be stopped.

!Services window_Service stopping.png!

----
h3. Step 3 - Removing "log," "conf," and "data" on the New Computer

The following activities should be performed on the *New Computer*.




h5. Linux Installations

1. Open a terminal program on your Linux computer. Go to the CDP Server's location, and list all files and folders using these commands:

{code}
cd /usr/sbin/r1soft
ls -al
{code}
!List command.png!

2. Remove the {{log}}, {{conf}}, and {{data}} folders using the {{rm}} command:

{code}
rm -r /usr/sbin/r1soft/data/
rm -r /usr/sbin/r1soft/conf/
rm -r /usr/sbin/r1soft/log/
{code}
{info:title=Note}
Use the {{rm \-r}} command with caution; if you mistype the directory, the command will delete everything, without asking for confirmation. Find more information here: [Using rmdir and rm commands|http://www.thegeekstuff.com/2009/06/how-to-linux-delete-directory-using-rmdir-rm-command/]

{info}


!Linux_Removing folders.png!

h5. Windows Installations


1. Open the Windows Explorer program (e.g., click "Start" !http://wiki.r1soft.com/download/thumbnails/22197972/arrow.png! "Run" !http://wiki.r1soft.com/download/thumbnails/22197972/arrow.png! {{%windir%\explorer.exe}}) or another file browser, and go here: {{C:\Program Files\R1Soft CDP Server Enterprise}} (this is the default path; in our example, CDP Server is located on the {{D:}} drive).

!CDP Server's path selected.png!

2.Choose the {{conf}}, {{data}}, and {{log}} folders, and *delete* them. To do this, right-click them and choose "Delete" in the displayed context menu. The folders will disappear.

!Folder for deletion selected_2.png!

----
h3. Step 4 - Copying "log", "conf," and "data" from the Old Computer

In this step, you will copy the "log", "conf," and "data" folders from the *Old* Computer to the *New* one.


h5. Linux Installations

1. If your New Computer has an SSH daemon running, you can use the {{scp}} command for copying the "log," "conf," and "data" folders:

{code}
scp -r /path/to/folder/ user@targethost:/target/path/
{code}

Explanation of this command:

* */path/to/folder/* \- The Old Computer's path to the folder being copied. By default, it is {{/usr/sbin/r1soft/data/}} for the "data" folder.
* *user* \- The user from the New Computer who has the "Write" permission.
* *targethost* \- The New Computer's IP address.
* */target/path/* \- The New Computer's path to the folder. By default, this path is "/usr/sbin/r1soft/."

2. Type this command correctly, and then enter "yes" to confirm continuation of the connection. Then enter the user's password.

!Linux_data folder copying.png!

Once the folder has been copied, it can be found in the New Computer.

!Linux_data folder copied.png!


{info:title=Note}
If you are not sure about any part of this step, carefully read the information on this page: [Remote file copy program|http://linux.about.com/od/commands/l/blcmdl1_scp.htm]

{info}

h5. Windows Installations

1. Open the Windows Explorer program (e.g., click "Start" !http://wiki.r1soft.com/download/attachments/22197972/arrow.png! "Run" !http://wiki.r1soft.com/download/attachments/22197972/arrow.png! %windir%\explorer.exe) or another file browser, and go to {{C:\Program Files\R1Soft CDP Server Enterprise}} (this is the default path; in our example, CDP Server is located on the {{D:}} drive).

!CDP Server's path selected.png!

2. Choose the "conf," "data," and "log" folders and *copy* them. To do this, right-click on them and choose the "Copy" item in the displayed context menu. The folders will be copied to the Windows Clipboard.

!Folder for copying selected.png!

3. *Paste* those three folders to the "R1Soft CDP Server Enterprise" folder on your New Computer. If your New Computer is located in the same LAN and is accessible, we assume you have full permissions (Read & Write) for the "R1Soft CDP Server Enterprise" folder.

!Paste the folders.png!

----
h3. Step 5 - Starting the CDP Server on the New Computer

The following activities should be performed on the *New Computer* to which you are going to migrate.

h5. Linux Installations

The R1Soft Linux CDP Server can be started via the Terminal using this command:

{code}/etc/init.d/cdp-server start
{code}

!Linux_cdp server starting.png!

The "cdpserver started" message will appear.





You can also check whether this service has been started by typing the {{cdp-server status}} command and pressing <Enter>.
{code}/etc/init.d/cdp-server status
{code}
!Linux_cdp server status.png!

h5. Windows Installations

1. Access the "Services" window as described above in *Step 2*.

2. Find the "R1Soft CDP Server" service, right-click on it, and choose the "Start" command in the displayed context menu.

!Services window_Service starting.png!

The service will be started.

----
h3. Step 6 - Reactivating the License key

The following activities should be performed on the&nbsp;*New Computer*&nbsp;to which you are going to migrate.

This procedure is necessary and must be performed to be able to use your CDP Enterprise Edition Server's functionality.


All information concerning the License Key Reactivation can be found here: [Reactivating the License]





----
h3. Step 7 - Copying the Disk Safes

{note:title=Note}
The following activities should be performed first on the&nbsp;*Old Computer*, and then on the&nbsp;*New Computer*.
{note}

After completing this procedure, your Disk Safe data will be safely placed in the New Computer's storage.


All information concerning Disk Safe copying can be found here: [Copying and Moving Disk Safes]





----
h3. Step 8 - Restarting the CDP Server on the New Computer

The following activities should be performed on the&nbsp;*New Computer*. This procedure is performed after the Disk Safes have been copied.

All information concerning the CDP Server restarts can be found here:&nbsp;[Restarting CDP Server]









{excerpt:hidden=true}
Instructions on how to migrate a CDP Server Enterprise Edition to another machine.
{excerpt}


















{newversion}

This document provides information on how to move/migrate a CDP Server (Service Provider, Enterprise Edition) from one physical computer to another.

A CDP Server migration will involve these two elements:
* *Old Computer* \- The physical machine where you have your current CDP Server installation.
* *New Computer*&nbsp;\- The physical machine to which you are moving (migrating) your CDP Server.

!migrate.png!





h5. Why should I do this?

Here are two possible reasons why it may become necessary to migrate a CDP Server:

* Your current computer is having hardware problems and is no longer reliable.
* During backup/restore procedures, it becomes clear that processing power is not sufficient to perform all tasks quickly and reliably; however, the current computer cannot be scaled up any further.


----
Follow the instructions below to move/migrate a Service Provider (Enterprise) Edition installation to a New Computer.

{note:title=Note}

It is assumed that you have prepared a New Computer according to these requirements: [System Requirements - CDP Enterprise Edition for Windows|System Requirements - CDP Enterprise Edition for Windows] and [System Requirements - CDP Enterprise Edition for Linux|System Requirements - CDP Enterprise Edition for Linux].


{note}

{toc:location=top|maxLevel=3|minLevel=3|type=list|separator=pipe|style=border:1}

----
h3. Step 1 - Installing a New CDP Service Provider (Enterprise) Edition Server

First, install a new CDP Service Provider (Enterprise) Edition Server on the New Computer. See:
* [Installing Enterprise Edition on Windows]
* [Installing Enterprise Edition on Linux].

----
h3. Step 2 - Shutting Down the CDP Server Service

Stop the CDP Server on the *New Computer*.



h5. Linux Installations

If your CDP Server is installed on Linux, then the Linux CDP Server can be stopped via the Terminal using this command:

{code}/etc/init.d/cdp-server stop
{code}

!Linux_cdp server stopping.png!

The "cdpserver stopped" message will appear.

!Linux_cdpserver stopped message.png!


h5. Windows Installations

If your CDP Server is installed on Windows, then the Windows CDP Server can be stopped via the "Services" utility. Perform the following steps.

1. Click the Windows "Start" button, and then start the "Run" program. The "Run" window will be opened.

Type in the "*services.msc*" command, and click the "OK" button.


!Run program.png!

2. The "Services" window will be opened.

!Services window.png!

3. Find the "R1Soft CDP Server" service. Right-click on it, and then choose "Stop" in the drop-down menu. The service will be stopped.

!Services window_Service stopping.png!

----
h3. Step 3 - Removing "log," "conf," and "data" on the New Computer

The following activities should be performed on the *New Computer*.




h5. Linux Installations

1. Open a terminal program on your Linux computer. Go to the CDP Server's location, and list all files and folders using these commands:

{code}
cd /usr/sbin/r1soft
ls -al
{code}
!List command.png!

2. Remove the {{log}}, {{conf}}, and&nbsp;{{data}} folders using the {{rm}} command:

{code}
rm -r /usr/sbin/r1soft/data/
rm -r /usr/sbin/r1soft/conf/
rm -r /usr/sbin/r1soft/log/
{code}
{info:title=Note}
Use the {{rm \-r}} command with caution; if you mistype the directory, the command will delete everything, without asking for confirmation. Find more information here: [Using rmdir and rm commands|http://www.thegeekstuff.com/2009/06/how-to-linux-delete-directory-using-rmdir-rm-command/]

{info}


!Linux_Removing folders.png!

h5. Windows Installations


1. Open the Windows Explorer program (e.g., click "Start" !http://wiki.r1soft.com/download/thumbnails/22197972/arrow.png! "Run" !http://wiki.r1soft.com/download/thumbnails/22197972/arrow.png! {{%windir%\explorer.exe}}) or another file browser, and go here: {{C:\Program Files\R1Soft CDP Server Enterprise}} (this is the default path; in our example, CDP Server is located on the {{D:}} drive).

!CDP Server's path selected.png!

2.Choose the {{conf}}, {{data}}, and&nbsp;{{log}} folders, and *delete* them. To do this, right-click them and choose "Delete" in the displayed context menu. The folders will disappear.

!Folder for deletion selected_2.png!

----
h3. Step 4 - Copying "log", "conf," and "data" from the Old Computer

In this step, you will copy the "log", "conf," and "data" folders from the *Old* Computer to the *New* one.


h5. Linux Installations

1. If your New Computer has an SSH daemon running, you can use the {{scp}} command for copying the "log," "conf," and "data" folders:

{code}
scp -r /path/to/folder/ user@targethost:/target/path/
{code}

Explanation of this command:

* */path/to/folder/* \- The Old Computer's path to the folder being copied. By default, it is {{/usr/sbin/r1soft/data/}} for the "data" folder.
* *user* \- The user from the New Computer who has the "Write" permission.
* *targethost* \- The New Computer's IP address.
* */target/path/* \- The New Computer's path to the folder. By default, this path is "/usr/sbin/r1soft/."

2. Type this command correctly, and then enter "yes" to confirm continuation of the connection. Then enter the user's password.

!Linux_data folder copying.png!

Once the folder has been copied, it can be found in the New Computer.

!Linux_data folder copied.png!


{info:title=Note}
If you are not sure about any part of this step, carefully read the information on this page: [Remote file copy program|http://linux.about.com/od/commands/l/blcmdl1_scp.htm]

{info}

h5. Windows Installations

1. Open the Windows Explorer program (e.g., click "Start" !http://wiki.r1soft.com/download/attachments/22197972/arrow.png! "Run" !http://wiki.r1soft.com/download/attachments/22197972/arrow.png! %windir%\explorer.exe) or another file browser, and go to {{C:\Program Files\R1Soft CDP Server Enterprise}} (this is the default path; in our example, CDP Server is located on the&nbsp;{{D:}} drive).

!CDP Server's path selected.png!

2. Choose the "conf," "data," and "log" folders and *copy* them. To do this, right-click on them and choose the "Copy" item in the displayed context menu. The folders will be copied to the Windows Clipboard.

!Folder for copying selected.png!

3. *Paste* those three folders to the "R1Soft CDP Server Enterprise" folder on your New Computer. If your New Computer is located in the same LAN and is accessible, we assume you have full permissions (Read & Write) for the "R1Soft CDP Server Enterprise" folder.

!Paste the folders.png!

----
h3. Step 5 - Starting the CDP Server on the New Computer

The following activities should be performed on the&nbsp;*New Computer*&nbsp;to which you are going to migrate.

h5. Linux Installations

The R1Soft Linux CDP Server can be started via the Terminal using this command:

{code}/etc/init.d/cdp-server start
{code}

!Linux_cdp server starting.png!

The "cdpserver started" message will appear.





You can also check whether this service has been started by typing the {{cdp-server status}} command and pressing <Enter>.
{code}/etc/init.d/cdp-server status
{code}
!Linux_cdp server status.png!

h5. Windows Installations

1. Access the "Services" window as described above in *Step 2*.

2. Find the "R1Soft CDP Server" service, right-click on it, and choose the "Start" command in the displayed context menu.

!Services window_Service starting.png!

The service will be started.

----
h3. Step 6 - Reactivating the License key

The following activities should be performed on the&nbsp;*New Computer*&nbsp;to which you are going to migrate.

This procedure is necessary and must be performed to be able to use your CDP Service Provider (Enterprise) Edition Server's functionality.


All information concerning the License Key Reactivation can be found here: [Reactivating the License]





----
h3. Step 7 - Copying the Disk Safes

{note:title=Note}
The following activities should be performed first on the&nbsp;*Old Computer*, and then on the&nbsp;*New Computer*.
{note}

After completing this procedure, your Disk Safe data will be safely placed in the New Computer's storage.


All information concerning Disk Safe copying can be found here: [Copying and Moving Disk Safes]





----
h3. Step 8 - Restarting the CDP Server on the New Computer

The following activities should be performed on the&nbsp;*New Computer*. This procedure is performed after the Disk Safes have been copied.

All information concerning the CDP Server restarts can be found here:&nbsp;[Restarting CDP Server]







{excerpt:hidden=true}
Instructions on how to migrate a CDP Server Service Provider (Enterprise) Edition to another machine.
{excerpt}{newversion}