|
|
|
|
|
|
|
|
|
/domain/test_domain/cdr/make_finalize_cdr Created file(s): cdr_20250822_11_51_16_1_c.csv |
sudo gluster volume set ecss_volume cluster.favorite-child-policy size |
Stop MySQL replication.
Make sure the parameter values Slave_IO_Running и Slave_SQL_Running equal to No.
sudo mysql -uroot -p -e 'STOP SLAVE;' |
sudo mysql -uroot -p -e 'SHOW SLAVE STATUS \G;' | grep -E "Slave_IO_Running:|Slave_SQL_Running:" |
sudo mysql -uroot -p -e 'SHOW SLAVE STATUS \G;' | grep -E "Slave_IO_Running:|Slave_SQL_Running:"
. . .
Slave_IO_Running: No
Slave_SQL_Running: No
. . . |
When upgrading a cluster, upgrade the servers one at a time. This ensures that one server is always running during an upgrade, and services will not be interrupted. To split the cluster, use the ecss-control tool on both servers.
SIP signaling is exchanged via the SIP-VRRP IP address. Similarly, the connection to MySQL is established via the MySQL-VRRP IP address. This functionality is implemented to migrate the IP address to another host in the event of a failure, shutdown, or maintenance of the primary host. IP address migration is controlled by the keepalive service on each host. To redirect traffic to the first server (ecss1), disable keepalive on the second host (ecss2). In this case, both SIP-VRRP IP addresses, as well as the MySQL-VRRP IP address, will be located on the first host (ecss1). Run the following command:
sudo systemctl disable --now keepalived.service |
ifconfig |
The ecss-control command works with standard hostnames: ecss1/ecss2. |
sudo ecss-control detach |
sudo ecss-control status |
sudo ecss-control detach detach host: ecss2, ip: 10.0.10.82 complete sudo ecss-control status locked ip: 10.0.10.82 |
If, after splitting, a "503 Service Unavailable" error appears on the first host when attempting to call/register, run the following commands on the problematic host: ecss-attach ecss-pa-sip
|
sudo systemctl mask --now ecss-ds ecss-mycelium ecss-mediator ecss-core ecss-pa-sip ecss-sorm |
There is one sorm node per cluster. If it's running on ecss1, a notification will be sent when the attached command is executed.
This message is not an error. Continue with the procedure. |
Before creating a backup, make sure that the tolltickets table in your database does not contain obsolete fields using the command:
If the command shows "`ss_info` text COLLATE latin1_general_ci,", then bring the table to the current state with the command:
|
sudo mysqldump -uroot -p --verbose --single-transaction --quote-names --complete-insert --extended-insert --routines --events --triggers --databases ecss_address_book ecss_audit ecss_calls_db ecss_dialer_db ecss_meeting_db ecss_numbers_db ecss_statistics ecss_subscribers ecss_system web_conf history_db > ./all_dump.sql |
sudo sed -i '40i\skip-log-bin\nskip-slave-start' /etc/mysql/mysql.conf.d/mysqld.cnf |
sudo rm /var/lib/ecss/ecss-mysql/backup/mysqld.cnf |
sudo systemctl restart mysql.service |
sudo cp -a /etc/ecss/ecss-mysql ~/ecss-mysql-etc-backup |
In the questions, change the MySQL IP to the local database IP |
sudo dpkg-reconfigure ecss-web-conf |
sudo apt purge ecss-web-conf |
To questions about deleting databases → we answer yes to the questions - delete all databases |
sudo apt purge ecss-mysql |
sudo mysql -uroot -p -e "SHOW DATABASES;" |
sudo apt-get remove ecss-call-api sudo apt-get remove ecss-elph-api |
sudo sed -i '/skip-log-bin/d' /etc/mysql/mysql.conf.d/mysqld.cnf |
sudo apt-mark hold mysql-* |
sudo apt install nodejs=8.10.* |
do-release-upgrade -m server |
If you receive a message:
run the following commands:
You may also need to update the ecss-user package with the following command:
and then repeat the do-release-upgrade -m server command:
|
During the upgrade, accept all new ecss package configurations. |
During the update process, the system may prompt you to reboot. Accept. |
Checking the dnsmasq service.
If the dnsmasq service is not active after the update:
systemctl is-active dnsmasq |
systemctl is-active dnsmasq failed |
Run the following commands:
Delete the remaining configuration file:
sudo rm /etc/dnsmasq.d/lxd |
sudo systemctl restart dnsmasq |
systemctl is-active dnsmasq active |
After these steps, the service should be active and work without errors. |
Updating mysql packages.
Disable package pinning:
sudo apt-mark unhold mysql-* |
sudo apt install mysql-server |
Important! When upgrading MySQL, you must leave the old configuration file /etc/mysql/mysql.conf.d/mysqld.conf intact to avoid losing the flags you set. |
sudo sed -i -e 's/^max_allowed_packet.*/max_allowed_packet = 64M/' \
-e 's/^thread_stack.*/thread_stack = 256K/' /etc/mysql/mysql.conf.d/mysqld.cnf |
sudo apt full-upgrade |
lsb_release -a |
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal |
do-release-upgrade -m server |
When the system reports:
perform a reboot with the following command:
and then repeat the command:
|
During the upgrade, accept all new ecss package configurations. |
During the update process, the system may prompt you to reboot. You should agree. |
sudo apt autoremove |
This step can take quite a long time. |
The ecss-control command works with standard hostnames: ecss1/ecss2. |
sudo ecss-control detach |
sudo sh -c "echo deb [arch=amd64] http://archive.eltex.org/ssw/jammy/3.14.16.1 stable main extras external > /etc/apt/sources.list.d/eltex-ecss10-stable.list" |
sudo sh -c "echo 'Package: ecss-*\nPin: version 14.16.1.*\nPin-Priority: 1001\n\nPackage: erlang*\nPin: version 2:24.3.10*\nPin-Priority: 1001' >> /etc/apt/preferences.d/eltex-ecss10" |
sudo apt update |
sudo systemctl disable --now nginx |
sudo apt install ecss-dns-env |
When updating, you need to apply new configuration files (confirm with -Y) |
sudo dpkg-reconfigure ecss-dns-env |
Update the ecss-user package:
sudo apt install ecss-user |
Updating the ecss-mysql package:
Before updating the ecss-mysql package to maintain compatibility with mysql v5.7, you need to enable the deprecated plugin in the mysql configuration by default:
|
Restart MySQL:
sudo systemctl restart mysql |
Install the ecss-mysql package:
sudo apt install ecss-mysql |
When installing, in response to the question "Path for external data-directory, where tables of databases will be created", you must specify the external directory for storing database tables, or accept the default value. |
Move the backup of ecss-mysql configuration files (saved earlier) back:
sudo rm -rf /etc/ecss/ecss-mysql && sudo cp -a ~/ecss-mysql-etc-backup /etc/ecss/ecss-mysql |
Check and, if necessary, update the parameters in "/etc/ecss/ecss-mysql/mysql-checker.conf".
The "MASTER_HOST_IP" variable is the VRRP address for MySQL defined in the keepalived configuration. |
sudo systemctl enable --now ecss-mysql-checker.timer |
Loading a database backup:
Before loading a backup, you must modify it by specifying the external directory where the database tables are stored. Since the ecss-mysql database tables are installed in a separate directory (/var/lib/ecss-mysql), you must specify the external directory for all tables in the backup; otherwise, they will be created in the default data directory (/var/lib/mysql). Also, when loading a backup, disable binary logging.
sudo sed -E "s/(ENGINE=(MyISAM|InnoDB))/\1 DATA DIRECTORY = '\/var\/lib\/ecss-mysql'/g" all_dump.sql | (echo "SET sql_log_bin = 0;"; cat -) | sudo mysql -uroot -p |
sudo dpkg-reconfigure ecss-mysql |
sudo mysql -uroot -p -e "START SLAVE;" |
sudo mysql -e 'SHOW SLAVE STATUS \G;' | grep -E "Seconds_Behind_Master|Relay_Master_Log_File|Master_Log_File" |
sudo mysql -e 'SHOW SLAVE STATUS \G;' | grep -E "Seconds_Behind_Master|Relay_Master_Log_File|Master_Log_File"
[sudo] password for abf:
Master_Log_File: server-mysql-bin.001152
Relay_Master_Log_File: server-mysql-bin.001152
Seconds_Behind_Master: 0 |
sudo sed -i '/skip-slave-start/d' /etc/mysql/mysql.conf.d/mysqld.cnf sudo sed -i '/skip-slave-start/d' /var/lib/ecss/ecss-mysql/backup/mysqld.cnf |
It is not necessary to restart mysql - this option only affects the state of SLAVE when mysql starts, and it was started directly. |
sudo systemctl unmask ecss-ds ecss-mycelium ecss-mediator ecss-core ecss-pa-sip ecss-sorm |
sudo systemctl enable ecss-ds ecss-mycelium ecss-mediator ecss-core ecss-pa-sip ecss-sorm |
sudo apt remove erlang-base-hipe |
If Erlang is not updated by removing the old package, first update ecss-node and ecss-utils, and then update the entire Erlang:
|
sudo systemctl unmask epmd.socket epmd.service |
Launch SSW on ecss2.
Before launching, change the cluster name to something different from the cluster name specified on ecss1. For example, add the "upd" suffix to the cluster name:
It is required because mycelium1 and mycelium2 find each other and in case of different versions - mycelium on ecss2 crashes. |
sudo nano /etc/ecss/ecss-mycelium/mycelium1.config |
{mycelium_broker, [
{cluster_name, 'test_cluster_upd'}, |
sudo systemctl start ecss-mycelium |
sudo systemctl start ecss-ds |
sudo systemctl start ecss-core |
!!!DO NOT LAUNCH PA-SIP YET!!! |
sudo systemctl start ecss-mediator |
/system-status Checking... ┌─┬───────────────┬────────────────────────────┬───────────────┬────────────┬──────┐ │ │ Node │ Release │ Erlang nodes │Mnesia nodes│Uptime│ ├─┼───────────────┼────────────────────────────┼───────────────┼────────────┼──────┤ │ │core1@ecss2 │ecss-core-3.14.16.1.130 │core1@ecss2 │not running │2m 27s│ │ │ds1@ecss2 │ecss-ds-3.14.16.1.130 │ds1@ecss2 │ds1@ecss2 │2m 32s│ │ │md1@ecss2 │ecss-mediator-3.14.16.1.130 │md1@ecss2 │md1@ecss2 │2m 16s│ │ │mycelium1@ecss2│ecss-mycelium-3.14.16.1.130 │mycelium1@ecss2│not running │2m 39s│ │ │sorm1@ecss2 │ecss-sorm-3.14.16.1.130 │sorm1@ecss2 │not running │1m 56s│ └─┴───────────────┴────────────────────────────┴───────────────┴────────────┴──────┘ All services are started. Active media resource selected list specific: ┌─────────────┬───────────┬─────────────┬───────────┬───────────┐ │ Node │ MSR │ MSR │ Cc-status │ Cc-uptime │ │ │ │ version │ │ │ ├─────────────┼───────────┼─────────────┼───────────┼───────────┤ │ core1@ecss2 │ msr.ecss1 │ 3.14.15.243 │ connected │ 00:00:10 │ │ │ msr.ecss2 │ 3.14.15.243 │ connected │ 00:00:10 │ └─────────────┴───────────┴─────────────┴───────────┴───────────┘ |
| Accept all new configuration files by selecting Y. |
sudo apt install ecss-restfs |
Updating the ecss-media-server package.
First, disable registration on the working host ecss1. To do this, comment out the line with the working host's realm in the configuration file (in the example, realm="sip:10.0.20.81:5000") with the following command (adding <!- - at the beginning of the line and - -> at the end of the line):
sudo nano /etc/ecss/ecss-media-server/conf.d/default.xml |
<?xml version="1.0"?>
<config>
<accounts>
<!--<dynamic msr_name="msr.ecss2" realm="sip:10.0.20.81:5000" dtmf_mode="rfc+inband+info" auth_name="user" auth_password="password"/>-->
<dynamic msr_name="msr.ecss2" realm="sip:10.0.20.82:5000" dtmf_mode="rfc+inband+info" auth_name="user" auth_password="password"/>
</accounts>
</config> |
sudo apt install ecss-media-server |
sudo dpkg-reconfigure ecss-media-server |
sudo nano /etc/ecss/ecss-media-server/config.xml |
|
sudo apt install ecss-media-resources |
Updating the packageecss-web-conf
sudo apt install ecss-web-conf |
Updating the package ecss-teleconference-ui
Updating the package ecss-crm-server
Updating the package ecss-cc-ui
Updating the packageecss-call-api
Updating the package ecss-elph-api
|
/node/ds1@ecss1/oasys/backup Backup was successfully created at the path: "/var/lib/ecss/oasys/Mnesia.ds1@ecss1_20250930081517" |
sudo systemctl stop ecss-ds |
scp -r ecss@ecss1:/var/lib/ecss/oasys/Mnesia.ds1@ecss1_20250930081517 /var/lib/ecss/oasys |
sudo cp -a /var/lib/ecss/oasys/Mnesia.ds1@ecss2 /var/lib/ecss/oasys/Mnesia.ds1@ecss2-bkp |
sudo mv /var/lib/ecss/oasys/Mnesia.ds1@ecss1_20250930081517 /var/lib/ecss/oasys/Mnesia.ds1@ecss2 |
sudo chown -R ssw:ssw /var/lib/ecss/oasys |
sudo systemctl start ecss-ds |
sudo systemctl start ecss-pa-sip |
/system-status Checking... ┌─┬───────────────┬────────────────────────────┬───────────────┬────────────┬──────┐ │ │ Node │ Release │ Erlang nodes │Mnesia nodes│Uptime│ ├─┼───────────────┼────────────────────────────┼───────────────┼────────────┼──────┤ │ │core1@ecss2 │ecss-core-3.14.16.1.130 │core1@ecss2 │not running │2m 27s│ │ │ds1@ecss2 │ecss-ds-3.14.16.1.130 │ds1@ecss2 │ds1@ecss2 │2m 32s│ │ │md1@ecss2 │ecss-mediator-3.14.16.1.130 │md1@ecss2 │md1@ecss2 │2m 16s│ │ │mycelium1@ecss2│ecss-mycelium-3.14.16.1.130 │mycelium1@ecss2│not running │2m 39s│ │ │sip1@ecss2 │ecss-pa-sip-3.14.16.1.130 │sip1@ecss2 │sip1@ecss2 │2m 22s│ │ │sorm1@ecss2 │ecss-sorm-3.14.16.1.130 │sorm1@ecss2 │not running │1m 56s│ └─┴───────────────┴────────────────────────────┴───────────────┴────────────┴──────┘ All services are started. Active media resource selected list specific: ┌─────────────┬───────────┬─────────────┬───────────┬───────────┐ │ Node │ MSR │ MSR │ Cc-status │ Cc-uptime │ │ │ │ version │ │ │ ├─────────────┼───────────┼─────────────┼───────────┼───────────┤ │ core1@ecss2 │ msr.ecss1 │ 3.14.15.243 │ connected │ 00:00:10 │ │ │ msr.ecss2 │ 3.14.16.1.0 │ connected │ 00:00:10 │ └─────────────┴───────────┴─────────────┴───────────┴───────────┘ |
sudo systemctl enable --now keepalived |
sudo rm /etc/apt/preferences.d/eltex-ecss10 |
sudo mysql -uroot -p -e 'STOP SLAVE;' |
sudo mysql -uroot -p -e 'SHOW SLAVE STATUS \G;' | grep -E "Slave_IO_Running:|Slave_SQL_Running:" |
sudo mysql -uroot -p -e 'SHOW SLAVE STATUS \G;' | grep -E "Slave_IO_Running:|Slave_SQL_Running:"
. . .
Slave_IO_Running: No
Slave_SQL_Running: No
. . . |
sudo systemctl disable --now keepalived.service |
ifconfig |
If, after switching to ecss2, you receive a "503 Service Unavailable" error when attempting to call or register, run the following commands on the problematic host: ecss-attach ecss-pa-sip
|
sudo systemctl mask --now ecss-ds ecss-mycelium ecss-mediator ecss-core ecss-pa-sip ecss-sorm |
Before creating a backup, make sure that the tolltickets table in your database does not contain obsolete fields using the command:
If the command shows "`ss_info` text COLLATE latin1_general_ci,", then bring the table to the current state with the command:
|
sudo mysqldump -uroot -p --verbose --single-transaction --quote-names --complete-insert --extended-insert --routines --events --triggers --databases ecss_address_book ecss_audit ecss_calls_db ecss_dialer_db ecss_meeting_db ecss_numbers_db ecss_statistics ecss_subscribers ecss_system web_conf history_db > ./all_dump.sql |
sudo sed -i '40i\skip-log-bin\nskip-slave-start' /etc/mysql/mysql.conf.d/mysqld.cnf |
sudo rm /var/lib/ecss/ecss-mysql/backup/mysqld.cnf |
sudo systemctl restart mysql.service |
sudo cp -a /etc/ecss/ecss-mysql ~/ecss-mysql-etc-backup |
In the questions, change the MySQL IP to the local database IP |
sudo dpkg-reconfigure ecss-web-conf |
sudo apt purge ecss-web-conf |
To questions about deleting databases → we answer yes to the questions - delete all databases |
sudo apt purge ecss-mysql |
The output should not contain any other databases except system ones ('information_schema', 'mysql', 'performance_schema', 'sys'). |
sudo mysql -uroot -p -e "SHOW DATABASES;" |
sudo apt remove ecss-call-api sudo apt remove ecss-elph-api |
sudo sed -i '/skip-log-bin/d' /etc/mysql/mysql.conf.d/mysqld.cnf |
sudo apt-mark hold mysql-* |
sudo apt install nodejs=8.10.* |
do-release-upgrade -m server |
If you receive a message:
run the following commands:
You may also need to update the ecss-user package with the following command:
and then repeat the command do-release-upgrade -m server:
|
During the upgrade, accept all new ecss package configurations. |
Checking the dnsmasq service
|
Updating mysql packages.
Unpin packages:
sudo apt-mark unhold mysql-* |
sudo apt install mysql-server |
Important! When upgrading MySQL, you must leave the old configuration file /etc/mysql/mysql.conf.d/mysqld.conf intact to avoid losing the flags you set. |
sudo sed -i -e 's/^max_allowed_packet.*/max_allowed_packet = 64M/' \
-e 's/^thread_stack.*/thread_stack = 256K/' /etc/mysql/mysql.conf.d/mysqld.cnf |
sudo apt full-upgrade |
do-release-upgrade -m server |
During the upgrade, accept all new ecss package configurations. |
sudo apt autoremove |
This step can take quite a long time. |
sudo sh -c "echo deb [arch=amd64] http://archive.eltex.org/ssw/jammy/3.14.16.1 stable main extras external > /etc/apt/sources.list.d/eltex-ecss10-stable.list" |
sudo sh -c "echo 'Package: ecss-*\nPin: version 14.16.1.*\nPin-Priority: 1001\n\nPackage: erlang*\nPin: version 2:24.3.10*\nPin-Priority: 1001' >> /etc/apt/preferences.d/eltex-ecss10" |
sudo apt update |
sudo apt install ecss-dns-env |
| When updating, accept new configuration files -Y. |
sudo dpkg-reconfigure ecss-dns-env |
sudo apt install ecss-user |
sudo rm /etc/mysql/conf.d/plugin.cnf |
sudo mysql -uroot -p -N -e "SELECT CONCAT('ALTER USER \`', user, '\`@\`', host, '\` IDENTIFIED WITH caching_sha2_password;')
FROM mysql.user
WHERE plugin='mysql_native_password' AND user NOT IN ('root','replica','debian-sys-maint','mysql.session','mysql.sys');" | sudo mysql |
Do not restart the MySQL service under any circumstances! |
sudo apt install ecss-mysql |
When installing, in response to the question "Path for external data-directory, where tables of databases will be created", specify the external directory for storing database tables, or accept the default value. |
sudo rm -rf /etc/ecss/ecss-mysql && sudo cp -a ~/ecss-mysql-etc-backup /etc/ecss/ecss-mysql |
Переменная "MASTER_HOST_IP" - это VRRP-адрес для MySQL, определенный в конфигурации keepalived. |
sudo systemctl enable --now ecss-mysql-checker.timer |
sed -E "s/(ENGINE=(MyISAM|InnoDB))/\1 DATA DIRECTORY = '\/var\/lib\/ecss-mysql'/g" all_dump.sql | (echo "SET sql_log_bin = 0;"; cat -) | sudo mysql -uroot -p |
sudo dpkg-reconfigure ecss-mysql |
sudo mysql -uroot -p -e "START SLAVE" |
sudo mysql -e 'SHOW SLAVE STATUS \G;' | grep -E "Seconds_Behind_Master|Relay_Master_Log_File|Master_Log_File" |
sudo mysql -e 'SHOW SLAVE STATUS \G;' | grep -E "Seconds_Behind_Master|Relay_Master_Log_File|Master_Log_File"
Master_Log_File: server-mysql-bin.001152
Relay_Master_Log_File: server-mysql-bin.001152
Seconds_Behind_Master: 0
|
sudo sed -i '/skip-slave-start/d' /etc/mysql/mysql.conf.d/mysqld.cnf |
sudo sed -i '/skip-slave-start/d' /var/lib/ecss/ecss-mysql/backup/mysqld.cnf |
| It is not necessary to restart mysql - this option only affects the state of SLAVE when mysql starts, and it was started directly. |
sudo mysql -uroot -p -e "START SLAVE;" |
sudo mysql -e 'SHOW SLAVE STATUS \G;' | grep "Seconds_Behind_Master" |
sudo mysql -e 'SHOW SLAVE STATUS \G;' | grep -E "Seconds_Behind_Master|Relay_Master_Log_File|Master_Log_File"
Master_Log_File: server-mysql-bin.001152
Relay_Master_Log_File: server-mysql-bin.001152
Seconds_Behind_Master: 0 |
Updating Erlang and SSW.
Enable SSW services before upgrading:
sudo systemctl unmask ecss-ds ecss-mycelium ecss-mediator ecss-core ecss-pa-sip ecss-sorm |
sudo systemctl enable ecss-ds ecss-mycelium ecss-mediator ecss-core ecss-pa-sip ecss-sorm |
To upgrade, uninstall the outdated version of Erlang. The command below will upgrade Erlang to version 24.3 and also upgrade the ecss-node and ecss-utils packages to the latest version:
sudo apt remove erlang-base-hipe |
If Erlang was not updated by removing the old package, then first update ecss-node and ecss-utils and then update the entire Erlang using the following commands:
|
After upgrading Erlang, unmask the service that was masked when erlang-base-hipe was removed:
sudo systemctl unmask epmd.socket epmd.service |
Launch SSW on the first host.
Before launching, change the cluster name to the same one set on ecss2 in the previous step.
sudo nano /etc/ecss/ecss-mycelium/mycelium1.config |
{mycelium_broker, [
{cluster_name, 'test_cluster_upd'}, |
sudo systemctl mask ecss-sorm |
sudo ecss-control attach |
sudo systemctl enable --now keepalived |
sudo systemctl start ecss-mycelium |
/system-status Checking... ┌─┬───────────────┬────────────────────────────┬───────────────────────────────┬────────────┬───────┐ │ │ Node │ Release │ Erlang nodes │Mnesia nodes│Uptime │ ├─┼───────────────┼────────────────────────────┼───────────────────────────────┼────────────┼───────┤ │ │core1@ecss2 │ecss-core-3.14.16.1.130 │core1@ecss2 │not running │3h 5m │ │ │ds1@ecss2 │ecss-ds-3.14.16.1.130 │ds1@ecss2 │ds1@ecss2 │3h 5m │ │ │md1@ecss2 │ecss-mediator-3.14.16.1.130 │md1@ecss2 │md1@ecss2 │3h 5m │ │ │mycelium1@ecss1│ecss-mycelium-3.14.16.1.130 │mycelium1@ecss1,mycelium1@ecss2│not running │10m 42s│ │ │mycelium1@ecss2│ecss-mycelium-3.14.16.1.130 │mycelium1@ecss1,mycelium1@ecss2│not running │3h 5m │ │ │sip1@ecss2 │ecss-pa-sip-3.14.16.1.130 │sip1@ecss2 │sip1@ecss2 │3h 5m │ │ │sorm1@ecss2 │ecss-sorm-3.14.16.1.130 │sorm1@ecss2 │not running │3h 5m │ └─┴───────────────┴────────────────────────────┴───────────────────────────────┴────────────┴───────┘ All services are started. Active media resource selected list specific: ┌─────────────┬───────────┬───────────────┬───────────┬───────────┐ │ Node │ MSR │ MSR │ Cc-status │ Cc-uptime │ │ │ │ version │ │ │ ├─────────────┼───────────┼───────────────┼───────────┼───────────┤ │ core1@ecss2 │ msr.ecss1 │ 3.14.15.243 │ connected │ 00:21:09 │ │ │ msr.ecss2 │ 3.14.16.1.0 │ connected │ 00:00:59 │ └─────────────┴───────────┴───────────────┴───────────┴───────────┘ |
After this, ecss-ds on host ecss1 will load the database from host ecss2. |
sudo mv /var/lib/ecss/oasys /var/lib/ecss/oasys-$(date +%Y%m%d-%H_%M) |
sudo systemctl start ecss-ds |
/system-status Checking... ┌─┬───────────────┬────────────────────────────┬───────────────────────────────┬───────────────────┬───────┐ │ │ Node │ Release │ Erlang nodes │ Mnesia nodes │Uptime │ ├─┼───────────────┼────────────────────────────┼───────────────────────────────┼───────────────────┼───────┤ │ │core1@ecss2 │ecss-core-3.14.16.1.130 │core1@ecss2 │not running │3h 13m │ │ │ds1@ecss1 │ecss-ds-3.14.16.1.130 │ds1@ecss1,ds1@ecss2 │ds1@ecss1,ds1@ecss2│12s │ │ │ds1@ecss2 │ecss-ds-3.14.16.1.130 │ds1@ecss1,ds1@ecss2 │ds1@ecss1,ds1@ecss2│3h 13m │ │ │md1@ecss2 │ecss-mediator-3.14.16.1.130 │md1@ecss2 │md1@ecss2 │3h 13m │ │ │mycelium1@ecss1│ecss-mycelium-3.14.16.1.130 │mycelium1@ecss1,mycelium1@ecss2│not running │18m 33s│ │ │mycelium1@ecss2│ecss-mycelium-3.14.16.1.130 │mycelium1@ecss1,mycelium1@ecss2│not running │3h 13m │ │ │sip1@ecss2 │ecss-pa-sip-3.14.16.1.130 │sip1@ecss2 │sip1@ecss2 │3h 13m │ │ │sorm1@ecss2 │ecss-sorm-3.14.16.1.130 │sorm1@ecss2 │not running │3h 12m │ └─┴───────────────┴────────────────────────────┴───────────────────────────────┴───────────────────┴───────┘ All services are started. Active media resource selected list specific: ┌─────────────┬───────────┬───────────────┬───────────┬───────────┐ │ Node │ MSR │ MSR │ Cc-status │ Cc-uptime │ │ │ │ version │ │ │ ├─────────────┼───────────┼───────────────┼───────────┼───────────┤ │ core1@ecss2 │ msr.ecss1 │ 3.14.15.243 │ connected │ 00:29:01 │ │ │ msr.ecss2 │ 3.14.16.1.0 │ connected │ 00:08:50 │ └─────────────┴───────────┴───────────────┴───────────┴───────────┘ |
sudo systemctl start ecss-mediator |
sudo systemctl start ecss-pa-sip |
sudo systemctl start ecss-core |
/system-status Checking... ┌─┬───────────────┬────────────────────────────┬───────────────────────────────┬─────────────────────┬──────┐ │ │ Node │ Release │ Erlang nodes │ Mnesia nodes │Uptime│ ├─┼───────────────┼────────────────────────────┼───────────────────────────────┼─────────────────────┼──────┤ │ │core1@ecss1 │ecss-core-3.14.16.1.130 │core1@ecss1,core1@ecss2 │not running │3m 50s│ │ │core1@ecss2 │ecss-core-3.14.16.1.130 │core1@ecss1,core1@ecss2 │not running │3h 22m│ │ │ds1@ecss1 │ecss-ds-3.14.16.1.130 │ds1@ecss1,ds1@ecss2 │ds1@ecss1,ds1@ecss2 │9m 42s│ │ │ds1@ecss2 │ecss-ds-3.14.16.1.130 │ds1@ecss1,ds1@ecss2 │ds1@ecss1,ds1@ecss2 │3h 22m│ │ │md1@ecss1 │ecss-mediator-3.14.16.1.130 │md1@ecss1,md1@ecss2 │md1@ecss1,md1@ecss2 │5m 22s│ │ │md1@ecss2 │ecss-mediator-3.14.16.1.130 │md1@ecss1,md1@ecss2 │md1@ecss1,md1@ecss2 │3h 22m│ │ │mycelium1@ecss1│ecss-mycelium-3.14.16.1.130 │mycelium1@ecss1,mycelium1@ecss2│not running │28m 4s│ │ │mycelium1@ecss2│ecss-mycelium-3.14.16.1.130 │mycelium1@ecss1,mycelium1@ecss2│not running │3h 23m│ │ │sip1@ecss1 │ecss-pa-sip-3.14.16.1.130 │sip1@ecss1,sip1@ecss2 │sip1@ecss1,sip1@ecss2│4m 40s│ │ │sip1@ecss2 │ecss-pa-sip-3.14.16.1.130 │sip1@ecss1,sip1@ecss2 │sip1@ecss1,sip1@ecss2│3h 22m│ │ │sorm1@ecss2 │ecss-sorm-3.14.16.1.130 │sorm1@ecss2 │not running │3h 22m│ └─┴───────────────┴────────────────────────────┴───────────────────────────────┴─────────────────────┴──────┘ All services are started. Active media resource selected list specific: ┌─────────────┬───────────┬───────────────┬───────────┬───────────┐ │ Node │ MSR │ MSR │ Cc-status │ Cc-uptime │ │ │ │ version │ │ │ ├─────────────┼───────────┼───────────────┼───────────┼───────────┤ │ core1@ecss1 │ msr.ecss1 │ 3.14.15.243 │ connected │ 00:02:37 │ │ core1@ecss2 │ msr.ecss1 │ 3.14.15.243 │ connected │ 00:38:31 │ │ │ msr.ecss2 │ 3.14.16.1.0 │ connected │ 00:18:20 │ └─────────────┴───────────┴───────────────┴───────────┴───────────┘ |
sudo apt install ecss-restfs |
sudo apt install ecss-media-server |
sudo dpkg-reconfigure ecss-media-server |
|
Also, to register a media server from ecss2 to ecss1, it is needed to remove the previously added comments from the file /etc/ecss/ecss-media-server/conf.d/default.xml on ecss2:
<?xml version="1.0"?>
<config>
<accounts>
<!--<dynamic msr_name="msr.ecss2" realm="sip:10.0.20.81:5000" dtmf_mode="rfc+inband+info" auth_name="user" auth_password="password"/>-->
<dynamic msr_name="msr.ecss2" realm="sip:10.0.20.82:5000" dtmf_mode="rfc+inband+info" auth_name="user" auth_password="password"/>
</accounts>
</config> |
sudo systemctl restart ecss-media-server.service |
sudo apt install ecss-media-resources |
sudo apt install ecss-web-conf |
Updating the package ecss-teleconference-ui
Updating the package ecss-crm-server
Updating the package ecss-cc-ui
|
sudo rm /etc/apt/preferences.d/eltex-ecss10 |