Hosts are in different timezone

I ran an update over prism-software upgrade from 5.15 to 5.5.6 on our Cluster-1 with
3 ESXi Nodes (vSphere 6)
2 AHV Nodes (storage)

after the update the nodes are suddenly in different timezones:

Detailed information for same_timezone_check:
FAIL: Hosts are in different timezone
[u'', u'', u''] are in UTC timezone
[u'', u''] are in PDT timezone

the CVMs are in the correct timezones /etc/localtime -> /usr/share/zoneinfo/Europe/Zurich
but the Hosts aren't.

As I'm aware that time is something precious (not only in life but for nutanix clusters) I'm nervous to tamper around with timezones and timesettings. Is there a KB for setting the timezones of the Hosts (not CVMs) and refreshing the cluster without getting into problems?

thanks and best regards

7 replies

Badge +1
Hi @ikgadmin ,

Please refer following KB article

https:// and https://

If you need immediate assistance feel free to reach Nutanix Support

Dear Shridhar,
the first link I don't get access to with my login.
the second link describes the time settings of the CVMs, not the hosts.
Userlevel 3
Badge +5
when you manually modify cvm time , cluster may does not work because of different time .

to know whether time is correct or not .

$allssh date

you set up time zone using ncli command .

$ncli cluster set-timezone timezone=Europe/Zurich
Dear kashi5409
thanks for looking in my post, the timezone of the CVMs are all correct.
I'm talking about the timezones of the hypervisor hosts.
Userlevel 3
Badge +5

here is the way to change timezone of hypervisor
Userlevel 2
Badge +17
Timezone on ESXi hosts always are UTC based.
You just can only change the timezone on the AHV hosts by following the guide posted by kashi5409 above.
Hi to ervyone, this is my first forum reply

In my opinion, the issue is related to multi-hypervisor Nutanix cluster, because on the one hand, the timezone cannot be changed in ESXi hosts and always is UTC based, but on the other hand the AHV hosts are on PDT timezone.

The workarround could be set the AHV timezone to UTC.

You can set the timezone automatically only in the AHV hosts with the command below. The command must be run in any CVM:

for i in `svmips`; do echo $i; ssh $i "if [ -e /usr/libexec/qemu-kvm ]; then cp /etc/localtime /etc/localtime_backup && ln -s /usr/share/zoneinfo/UTC /etc/localtime; fi; date"; done

The command acts in each host, It checks if It's AHV (looking if qemu-kvm file exist). If afirmative, It makes a backup of the previus timezone and then set the UTC Timezone. In adition It shows the date for every host.

I hope this information is helpful to you.