ronivay / XenOrchestraInstallerUpdater

Xen Orchestra install/update script
GNU General Public License v3.0
1.18k stars 189 forks source link

Option to remove the normal version when switching to Docker version #64

Closed Haribo112 closed 3 years ago

Haribo112 commented 3 years ago

I was previously running the installed version of Xen Orchestra using you script to install and update. I have now switched to the Docker version, also using your script. However; running htop shows that there are still some parts of the previous version running and I am unsure how to make them stop. Maybe your script could include an option to remove the 'native' installed version of XO?

ronivay commented 3 years ago

Hi,

that docker portion in this script is sort of remnant from very early days when container i maintained wasn’t in it’s own repository (it is nowadays: https://github.com/ronivay/xen-orchestra-docker). That part in this script doesn’t really do anything except pull container and give some instructions how to start it. it doesn’t do anything for possibly existing installation.

I’ve been meaning to remove docker portion completely to avoid confusion but hasn’t been a priority. Maybe i’ll take care of it now :)

You can simply run systemctl stop xo-server && systemctl disable xo-server to shut old installation down and prevent it from automatically starting anymore.

Haribo112 commented 3 years ago

I ran the systemctl commands; however this still leaves redis-server and xe-daemon running. I'm also seeing multipathd still running, which I assume is also started by XO?

ronivay commented 3 years ago

multipathd isn't started by xen orchestra. xe-daemon is xen-tools for your VM and related to the fact you're running that on XCP-NG/XenServer, so leave it on. redis-server you can stop if you don't need it for anything else (same commands as above, replace xo-server with redis-server).

Haribo112 commented 3 years ago

Thanks. Any hints on directories I can delete to remove all the xo related stuff from my Ubuntu install? Or should I make a clean new VM and run docker on that.

ronivay commented 3 years ago

Clean install is obviously safest, but should be fairly simple to cleanup. If you used the default base directory for sources and built xen-orchestra's, then remove /opt/xo and all subdirectories. If this was something else, then you probably know better what you configured :)

Actual persistent xen-orchestra data is at /var/lib/xo-server and /var/lib/redis which you can remove completely. Note that you're safe to remove these only if you didn't bind mount same directories to container with -v option.

Docker stuff is now removed from this script and it will live completely in it's own repo from now on.