Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.
Commentaire: Translate

...

Sv translation
languageen

This page describes how to change a BlueMind server's IP address.

Avertissement
titleWarning

This description is deliberately minimal as it is reserved to experienced administrators who are familiar with the sensitive operations performed.

Instructions

  • stop BlueMind using the command: 

    Bloc de code
    bmctl stop
  • Update the server's network configuration with the new IP address
  • Edit the file /etc/bm/bm.ini, replacing the address of the "host" parameter with the new IP address
  • Update the database information with the following command line:

    Bloc de code
    sudo -u postgres -i psql -h localhost -U bj -d bj -W -c "update t_server set ip = '<new_ip>NEWIPADDRESS' where ip= '<old_ip>OLDIPADDRESS';"
    sudo -u postgres -i psql -h localhost -U bj -d bj -W -c "update rc_users set mail_host = '<new_ip>NEWIPADDRESS' where mail_host= '<old_ip>OLDIPADDRESS';"
    sudo -u postgres -i psql -h localhost -U bj -d bj -W -c "update t_systemconf set configuration = configuration || hstore('host', '<new_ip>NEWIPADDRESS');"

    Replacing the <old_ip> the OLDIPADDRESS by the <new_ip> NEWIPADDRESS. If prompted for a password, type "bj"

  • Edit the /var/backups/bluemind folder structure, renaming the folder /var/backups/bluemind/dp_spool/rsync/<old_ip> with OLDIPADDRESS with the new IP address
  • Restart BlueMind and the node using the following commands:

    Bloc de code
    bmctl start
    systemctl restart bm-node
  • Connect to the administration panel superadministrator admin0
  • Go to Security > Manage firewall and click "Save" to force re-generate BlueMind's firewall rules
  • Go to System Management > Manage Messaging System, click "Execute" to regenerate the postfix mail routing table
  • Go to System Management > System Configuration and replace the old IP address in the field "My networks" by the new address of the address range you want to keep as open relay. Click "Save".