Сannot set IP mapping on per-IP basis in Plesk Migrator

Created:

2016-12-18 06:41:21 UTC

Modified:

2017-08-08 13:22:27 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Сannot set IP mapping on per-IP basis in Plesk Migrator

Applicable to:

  • Plesk Onyx for Linux

Symptoms

Unable to select an IP for IP mapping during migration through Plesk GUI, when some number of websites are tied up to one common IP address: IP mapping is possible but can only be customized for each domain individually.

Cause

Starting from Plesk Migrator version 2.0, the IP mapping in not available through Plesk GUI interface. This is Plesk Migrator bug with id #PMT-3156 , that is planned to be fixed in future product updates.

Resolution

As a workaround, perform the migration through command line using the steps below.

  1. Create and configure the config.ini file required for migration with the following settings:

    [GLOBAL]
    source-type = "plesk"
    sources = "source"

    [plesk]
    ip = "destination_server_ip_address"
    os = "unix"

    [source]
    ip = "source_server_ip_address"
    session-dir = "/tmp"
    os = "unix"
    ssh-username = "root"
    ssh-auth-type = "password"
    ssh-port = "22"
    ssh-password = "password_in_plain_text"
  2. Generate migration list using the previously created config.ini :

    # /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator generate-migration-list /usr/local/psa/var/modules/panel-migrator/sessions/config.ini.
  3. Make sure migration list was generated and located in /usr/local/psa/var/modules/panel-migrator/sessions/migration-session/migration-list directory.

  4. Create file named ip-mapping in the session directory and specify the IP->IP configuration. Separate the source and destination IP addressess by Tab , for example:

    203.0.113.2     203.0.113.3
    203.0.113.4 203.0.113.5
    ...
  5. Run Plesk Migrator via CLI:

    # /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator transfer-accounts /usr/local/psa/var/modules/panel-migrator/sessions/config.ini 
    --migration-list-file /path/to/migration/list/migration-list
    --ip-mapping-file /path/to/migration/listmapping/ip-mapping

NOTE: All paths to required files can be different but when running Plesk Migrator, it is important to specify full path to the file location.

Have more questions? Submit a request
Please sign in to leave a comment.