Now that coal and coal-web have been moved to the webperf machines, a few cleanup steps are needed on both graphite1001 and graphite2001. These require root access (which I don't have), so leaving it to someone who does have that access to run them.
These can be run any time.
- Stop coal services. Coal should be already, just try again in case.
sudo systemctl stop uwsgi-coal sudo systemctl stop coal
- Disable coal services
sudo systemctl disable uwsgi-coal sudo systemctl disable coal
- Remove the systemd control files
sudo rm /lib/systemd/system/uwsgi-coal.service sudo rm /lib/systemd/system/coal.service
- Reset the systemd daemon to remove those services
sudo systemctl daemon-reload
- Remove the symlinked coal whisper storage dir, create the new dir, and copy the data files
- note: leaves a copy of the files in /var/lib/coal, just in case.
sudo rm /var/lib/carbon/whisper/coal sudo mkdir /var/lib/carbon/whisper/coal sudo chown _graphite:_graphite /var/lib/carbon/whisper/coal sudo cp -r /var/lib/coal/*.wsp /var/lib/carbon/whisper/coal/ sudo chown -R _graphite:_graphite /var/lib/carbon/whisper/coal/
- Remove nagios/nrpe configs:
- note: slightly adjusted reload command
sudo rm /etc/nagios/nrpe.d/check_uwsgi-coal.cfg sudo systemctl reload nagios-nrpe-server.service
- Remove uwsgi config
- note: this was already done, it was "no such file or directory" already when i ran it
rm /etc/uwsgi/apps-enabled/coal.ini rm /etc/uwsgi/apps-available/coal.ini
Give me a shout if there are any questions about this - marlier on IRC.