26 June 2024 Reading time: 10 minutes

Migration from CentOS Linux 7 for DCImanager, VMmanager and BILLmanager

ISPSystem

Red Hat has announced the end-of-life (EOL) for CentOS Linux 7. As a result, without ongoing support, CentOS will no longer receive critical security updates. We strongly recommend migrating DCImanager, VMmanager, and BILLmanager to an up-to-date operating system in advance.

Note:

The migration process includes installing the necessary packages and tools to support the current operating system, as well as migrating configuration files and data to ensure stable and secure operation after the migration is complete.

The following are migration instructions for each product:

Migration from CentOS 7 to AlmaLinux 8 for VMmanager

There are a number of actions to be performed:

Preparation

  1. Check hardware compatibility with AlmaLinux 8 by booting AlmaLinux in Live Media mode.
  2. Migrate virtual machines to another cluster node when you change the OS on a cluster node. (Read more in “Migration of virtual machines”).
  3. Create a backup of the platform on an external storage. (Read more in "Backing up the platform").

Changing the OS

  1. Connect to the server via SSH.
  2. Install the latest available software update: yum update -y
  3. Reboot the server: reboot
  4. Install the Elevate software: yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm
  5. Install the Leapp framework: yum install -y leapp-upgrade leapp-data-almalinux
  6. Check if the system is ready for an OS change: leapp preupgrade
  7. Examine the command output and the report file /var/log/leapp/leapp-report.txt for information about possible problems when changing OS.
  8. Configure the Leapp framework:
    • rmmod pata_acpi
    • leapp answer --section remove_pam_pkcs11_module_check.confirm=True

Configuring the firewall. On the server with the platform, change the firewall settings:

       docker exec -it vm_box bash
cd /opt/ispsystem/vm
/usr/bin/ansible-playbook -i :22, -e targets=all -e ansible_python_interpreter='auto_silent' -e datacenter_type='common' -e ssh_port='22' -e network_autosetup_enabled='1' -e is_lxd='0' -e dc_ips='' -e dc_ips6='' -e closed_contour='0' etc/playbooks/node/firewall.yml --timeout 60 -b
   

Done! Once these steps are completed, your platform will be successfully migrated to the supported AlmaLinux 8, ensuring stable and secure system operation.

Migration to AlmaLinux 8 without reinstalling DCImanager 6

Operating system (OS) migration is an important process that requires care and consistency to ensure the platform runs smoothly. In the case of changing the operating system from CentOS 7 to AlmaLinux 8 without reinstalling DCImanager 6, there are features and steps that are not provided by the CentOS developers. Therefore, the migration procedure may fail and the platform will be unavailable during the OS change process on the server with the platform.

To successfully complete the migration, you must follow the instructions to ensure the platform runs safely and smoothly. Here are the step-by-step instructions for migrating from CentOS 7 to AlmaLinux 8 using the Elevate software:

  1. Check the compatibility of the hardware with AlmaLinux 8. You can boot AlmaLinux 8 in Live Media mode to perform this test.
  2. Connect to the server via SSH and back up the platform to prevent potential malfunctions during the migration:
           dci backup
       
  3. The backup will be saved in the /opt/ispsystem/dci/backup/ directory. Save the backup to an external media.
  4. Install the latest available software updates and reboot the server:
           yum update -y
    reboot
           
       
  5. Install the Elevate software and the Leapp framework:
           yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm
    yum install -y leapp-upgrade leapp-data-almalinux
           
       
  6. Check that the system is ready for the OS change:
           leapp preupgrade
       
  7. Examine the command output and the report file /var/log/leapp/leapp-report.txt to identify possible problems when changing the OS.
  8. Configure the Leapp framework and run the OS change:
           rmmod pata_acpi
    leapp answer --section remove_pam_pkcs11_module_check.confirm=True
    leapp upgrade
        
       
  9. Reboot the server and check the OS version:
           reboot
    cat /etc/os-release
           
       

Migration via DCImanager 6 backup

In case of migration from CentOS 7 to any supported OS, you need to follow a certain sequence of actions. Step-by-step instructions for migration via DCImanager 6 backup are provided below:

  1. Create a new token value for your license in your client area at my.ispsystem.com or by contacting technical support.
  2. Create a backup of the platform:
           dci backup
       
  3. The copy will be saved in the /opt/ispsystem/dci/backup/ directory. If there is a location on the server in addition to the platform, back up the /opt/ispsystem/dci/os_templates/ directory. Save the backups to an external media.
  4. If there is a location on the server in addition to the platform, stop the platform:
           dci down
       
  5. Install a supported OS and connect to the server via SSH.
  6. If you do not have the tar archiver or curl utility installed on your system, install them via the appropriate commands for the OS you are using.
  7. Download the installer and make the installer file executable:
           curl -O https://download.ispsystem.com/6/dci/dcibox/dci
    chmod +x dci
           
       
  8. Create the directory /opt/ispsystem/license/ and copy the previously created platform backup to the directory /opt/ispsystem/dci/backup/.
  9. Start restoring the platform from the backup:
           ./dci restore -b=<backup_file>
       
  10. Activate the license in the DCImanager 6 interface and follow the additional steps if the server has a location.
  11. Update the database:
           docker exec -it mysql bash -c "mysql_upgrade -u root -p$MYSQL_ROOT_PASSWORD"
       

Successfully following these steps will ensure a safe and smooth migration of your platform to the new OS.

Moving BILLmanager and license between servers

Moving BILLmanager to a new server may be necessary when replacing hardware or migrating to a supported operating system. This requires installing on a new server, connecting via SSH, and moving files.

It is important to make sure that the BILLmanager version on the new server is not lower than on the old one. Migration is possible between servers with different operating systems.

Preparation:

  1. Prepare the new server, install BILLmanager on it, activate the trial license via the ISPsystem client area.
  2. Enable maintenance mode on the old server for the duration of the migration.
  3. Import user data from the old server to the new server.
  4. Move custom XML files, addons and plugins to the new server. This can be accomplished by using the scp commands.
  5. Move the storefront settings from the old server to the new server by copying the appropriate directories.
  6. Install missing software packages, such as service processing modules, payment systems, and mail gateways, on the new server.
  7. Link the BILLmanager license to the new server by activating the commercial license through your client area.
  8. Disable maintenance mode on the old server after a successful migration.

After the migration is complete, it is recommended to disable or uninstall BILLmanager from the old server to avoid conflicts due to identical service processing module settings.

Preparing a new server includes installing BILLmanager, activating the trial license via the ISPsystem client area and logging in to BILLmanager via a browser to activate the license.

Make sure that both servers have active licenses and activate the commercial license on the new server after the migration.

Instructions on moving BILLmanager to a new server:

Step 1: Enabling maintenance mode

Maintenance mode temporarily stops the operation of processing modules and mail gateways in BILLmanager. To enable it on the old server, create an empty file

       /usr/local/mgr5/etc/billmgr.DoNothing
   

Step 2: Data import

On the old server:

  1. Create a backup from the BILLmanager web interface under Tools → Backup → click Run. Save the backup archive.
  2. Save the branding settings.
  3. Copy the directories to the new server using the scp commands:
           scp /usr/local/mgr5/skins/dragon/local_* root@:/usr/local/mgr5/skins/dragon/
    scp /usr/local/mgr5/etc/brand_settings.billmgr.xml root@:/usr/local/mgr5/etc/
           
       

On the new server:

  1. Enter Tools → Backup →click Download, select the backup archive from the previous server and click Restore.
  2. After restoring from backup to a new server, the IP address of the old server can be specified in the configuration file. Specify the IP address of the new server in the ihttpd configuration file /usr/local/mgr5/etc/ihttpd.conf. Restart BILLmanager:
           /usr/local/mgr5/sbin/mgrctl -m billmgr exit
       

Step 3: Moving custom XML files, addons and plugins

If you have custom XML files, addons, and plugins, perform the following:

  • Create the /usr/local/mgr5/backup/ directory on the new server if such a directory does not already exist.
  • Move existing custom files using the scp commands:
           scp -r /usr/local/mgr5/etc/xml/ root@<new_server_IP>:/usr/local/mgr5/backup/
    scp -r /usr/local/mgr5/addon/ root@@<new_server_IP>:/usr/local/mgr5/backup/
    scp -r /usr/local/mgr5/src/ root@@<new_server_IP>:/usr/local/mgr5/backup/
           
       
  • Copy the contents of the directories using the commands:
           cp -n /usr/local/mgr5/backup/xml/* /usr/local/mgr5/etc/xml/
    cp -n /usr/local/mgr5/backup/addon/* /usr/local/mgr5/addon/
    cp -n /usr/local/mgr5/backup/src/* /usr/local/mgr5/src/
           
       

Step 4: Moving storefront files

To move the storefront from the old server to the new server, copy the following directories to the new server:

       scp -r /usr/local/mgr5/skins/showroom/ root@<new_server_IP>:/usr/local/mgr5/skins/showroom/
scp -r /usr/local/mgr5/etc/showroom.sample.dragon/ root@<new_server_IP>:/usr/local/mgr5/etc/showroom.sample.dragon/
       
   

Step 5: Installing missing packages

After moving the database, on the new server, run the installation of all missing service processing module packages, payment systems, and mail gateways. Run the command:

       /usr/local/mgr5/sbin/mgrctl -m billmgr fix.modules
   

Step 6: Linking a commercial license to a new server

After moving BILLmanager to a new server, enter your client area where you ordered the license. Delete the trial license from your client area. In the commercial license settings, enter the IP address of the new server. Update the license file by clicking Update License in the BILLmanager web interface or by uploading the license manually using the command:

       /usr/local/mgr5/sbin/licctl fetch billmgr
   

Step 7: Disabling maintenance mode

To disable maintenance mode, delete the /usr/local/mgr5/etc/billmgr.DoNothing file.

We also plan to provide support of Alma Linux 9 for DCImanager and VMmanager products this year, but please note that the Leapp migration tool for OC CentOS 7 assumes a split migration process: first from OC Centos 7 to AlmaLinux 8, and only then from AlmaLinux 8 to AlmaLinux 9.