Media Server Uninstallation

This procedure is to remove a media server permanently.

On XIVO

  1. Unplug media server from XDS by removing it from webi (see XiVO Configuration):
  • remove media server
  • remove template line
  1. Clean connection permissions from all places and apply new configuration

After the removal, inactive database replication slot will remain in the database. It shouldn’t cause any problems. If a media server with the same name will be installed, it will be dropped by the mds install script. But you can clean it even so (from XiVO database):

select * from pg_replication_slots;
select pg_drop_replication_slot('slot_name');

On Media Server

Only reinstallation is supported.

Media Server Reinstallation

On XIVO

All settings can remain if they are still valid - if the new media server has the same name and IP as a previous (for example crashed) media server.

On Media Server

If the mds install script failed with error, you can re-run it.

To fully reinstall media server, you need to reinstall xivo-mds-installer and recreate database on the media server. This procedure will also remove database replication slot on XiVO:

xivo-service stop all
apt-get purge xivo-mds-installer

But the database subscription will remain with old configuration on the media server. Sql commands to create for the replication are inside the db container and they run only when the database is initialized. Therefore the database must be reinitialized.

Warning

Call and chat history will be lost from the media server

rm -rf /var/lib/postgresql/11

Then finish the reinstallation. The custom.env will be recreated with new values:

apt-get install xivo-mds-installer
xivo-service start all
xivo-dcomp up -d