Media Server Uninstallation¶
This procedure is to remove a media server permanently.
On XIVO¶
- Unplug media server from XDS by removing it from webi (see XiVO Configuration):
- remove media server
- remove template line
- 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.
But to fully reinstall media server, you need to reinstall xivo-mds-installer package and recreate database on the media server.
Uninstall MDS:
xivo-service stop all apt purge xivo-mds-installer rm -rf /var/lib/postgresql/11
Reinstall MDS: the
custom.env
will be recreated with new values:apt install xivo-mds-installer xivo-service start all xivo-dcomp up -d
At the end you need also to reinstall the XiVO Main ssh public key for File Synchronization:
XIVO_HOST=$(grep XIVO_HOST /etc/docker/mds/custom.env | awk -F "=" '/1/ {print $2}')
mkdir -p /root/.ssh
wget https://$XIVO_HOST/ssh-key --no-check-certificate -O /root/.ssh/rsync_xds.pub
cat /root/.ssh/rsync_xds.pub >> /root/.ssh/authorized_keys
apt install -y rsync