VMware vCenter Server Appliance v6 Services
So I have been asked by a few people,
“James, how do I restart the [vCSA] services from the cli and what order do I need to start/stop/restart them in?”
Some people have not truly ventured into the inner workings of the vCenter Server Appliance (VCSA) to troubleshoot stuff on their own yet. The biggest reason I could see this being the case is due to most people being accustomed to building a Windows-based vCenter server. On top of that, some people are just not comfortable with Linux. Either way, here is some information on how to restart the services and the order they start in just in case one needs to restart the services individually.
You will want to ssh into the VCSA as root. VMware has made it very easy to restart all of the services required to get the VCSA back up and running. The command that has all of the awesomeness built in is service-control
.
Stop all VCSA Services:
Start all VCSA Services:
Get current status of all VCSA Services:
List all VCSA Services:
The above commands will allow you to control all of the services in one command as opposed to doing each command individually. If you need to start/stop a specific service then you can use the same command. To do this, use the command like this:
Now, serviceName
is derived from the service-control --list
command. For your reference, here is the output of that command:
If you need to see the startup order then you can just follow the output of the service-control --start
and service-control --stop
commands. Each command has a specific start and stop order. As with any time spent in the cli of the VCSA, you need to proceed with great caution on the commands you enter. So here is the disclaimer…
DO THIS AT YOUR OWN RISK!!!
I know this seems like I am trying to scare you but I am just trying to make sure you pay close attention to what you are typing in the session as to not cause any issues. This is really important if you are unfamiliar with Linux and shell. Don’t be scared though, just be thorough! I hope that this helps and maybe even taught you something. Have fun!
Leave a Comment