VMware Cloud Community
defmania
Enthusiast
Enthusiast
Jump to solution

Type of maintenance mode for vSAN node

Hello,

Maybe this is straightforward and I'm missing it, however how can you tell what type of maintenance was used for a vSAN node after it gets into MM?

 

My use case exactly: I'm trying to determine if a colleague used full data migration when he entered a host in MM earlier in the day.

 

Thanks!

0 Kudos
1 Solution

Accepted Solutions
depping
Leadership
Leadership
Jump to solution

Just spoke with an engineer:

 

Pre ESXi 7.0 the info is stored in the "esx.conf" file, just grep for "hostDecommission". Let me show you:

$ grep "/vsan/hostDecommission" /etc/vmware/esx.conf
/vsan/hostDecommissionVersion = "10"
/vsan/hostDecommissionState = "decom-state-decommissioned"
/vsan/hostDecommissionMode = "decom-mode-ensure-object-accessibility"


If the ESX is at 7.0 or later, just run the below config store command:

$ configstorecli config current get -c vsan -g system -k host_state
{
"decom_mode": "ENSUREOBJECT_ACCESSIBILITY",
"decom_state": "DECOMMISSIONED",
"decom_version": 0
}

View solution in original post

3 Replies
fabio1975
Commander
Commander
Jump to solution

Ciao 

Have you checked if there is any information in the Hostd.log log file (present on node/ var/log..)?

Has the ESXi node been restarted following activation of maintenance mode? If it has been restarted you must be sure that you have changed the settings of where the node logs are saved because if they are not saved on a persistent space the logs are deleted.

Fabio

Visit vmvirtual.blog
If you're satisfied give me a kudos

0 Kudos
depping
Leadership
Leadership
Jump to solution

the hostd.log shows that maintenance mode was invoked, but I don't see the type that was invoked either. I Will file a feature request for it. if you look at the clomd.log you should see that the host was decommisioned.

0 Kudos
depping
Leadership
Leadership
Jump to solution

Just spoke with an engineer:

 

Pre ESXi 7.0 the info is stored in the "esx.conf" file, just grep for "hostDecommission". Let me show you:

$ grep "/vsan/hostDecommission" /etc/vmware/esx.conf
/vsan/hostDecommissionVersion = "10"
/vsan/hostDecommissionState = "decom-state-decommissioned"
/vsan/hostDecommissionMode = "decom-mode-ensure-object-accessibility"


If the ESX is at 7.0 or later, just run the below config store command:

$ configstorecli config current get -c vsan -g system -k host_state
{
"decom_mode": "ENSUREOBJECT_ACCESSIBILITY",
"decom_state": "DECOMMISSIONED",
"decom_version": 0
}