Question

Hosts are in different timezone


Badge
Hi,
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'xxx.xxx.xxx.131', u'xxx.xxx.xxx.132', u'xxx.xxx.xxx.133'] are in UTC timezone
[u'xxx.xxx.xxx.134', u'xxx.xxx.xxx.xxx'] 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:// https://nutanix.my.salesforce.com/kA0600000008hm9?srPos=0&srKp=ka0&lang=en_US# and https:// https://portal.nutanix.com/#/page/kbs/details?targetId=kA0600000008SNvCAM

If you need immediate assistance feel free to reach Nutanix Support

Thanks,
Shridhar
Badge
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.
thanks
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 .

code:
$allssh date


you set up time zone using ncli command .

code:
$ncli cluster set-timezone timezone=Europe/Zurich
Badge
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.
thanks
Userlevel 3
Badge +5
@ikgadmin

here is the way to change timezone of hypervisor

https://portal.nutanix.com/#/page/kbs/details?targetId=kA032000000TVVoCAO
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:

code:
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.

Reply