VMware Cloud Community
jeremywatco
Contributor
Contributor

Maintenance Mode with vCenter as VM on Host

I have an interesting issue.

Let me start out by saying that I do NOT have vMotion.

I have a cluster consisting of two hosts, HostA & HostB, with HA configured.

I have vCenter installed as a VM on HostA.

My issue is via vCenter is there any way to put HostA into Maintenance mode? If I try it says it wants me to power down all running hosts before it will go into maintenance mode. If I power down my host that has vCenter on it obviously it won't enter maintenance mode as the machine giving the instruction was just shutdown.

Any thoughts?

Reply
0 Kudos
5 Replies
vmroyale
Immortal
Immortal

Hello.

You could try the following command:

vimsh -n -e /hostsvc/maintenance_mode_enter

Good Luck!

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
Reply
0 Kudos
Troy_Clavell
Immortal
Immortal

the easiest way to get the host into maintenance mode is log directly into the ESX Host in question, shutdown the running VM. Then enter maintenance mode.

Log directly into the second ESX Host, browse your shared datastore and find the .vmx for your vCenter VM and add it to inventory on the other host.

Reply
0 Kudos
jeremywatco
Contributor
Contributor

Awesome! Thanks for the help.

Now in the event of a power or hardware failure of HostA, HostB will automatically take over and bring up my vCenter VM correct? It just wont if I do a manually shut down correct?

Reply
0 Kudos
BDorroh
Contributor
Contributor

If you're saying you don't have HA, then I'm assuming you don't have shared storage. Shared storage is required for HA. If VM1, VM2 and VM3's files reside on HostA, that's where they'll stay, even if the host goes down.

The only way HostB can start those VMs is if it has access to them. And without shared storage, it won't.

Reply
0 Kudos
Troy_Clavell
Immortal
Immortal

if HA is configured, then yes, if there is a failure, the VM, in this case vCenter, will be restarted on the other host in the cluster.

Reply
0 Kudos