Wednesday, March 16, 2016

Solaris/Zone: Virtualized Clocks/TimeZones

Oracle Solaris Native Zones now have virtualized clocks to support applications that need to run in different times or to test specific time-related scenarios, for example, how an environment might respond to a leap second.

You can set time values in non-global zones that are different from the value in the global zone. The ability to set different time values in non-global zones is still dependent on the time changes in the global zone. If you change the time in the global zone, the non-global zone time is offset by the same amount.

For example, to set the time value in a non-global zone:

# zonecfg -z myzone

zonecfg:myzone> set limitpriv=default,sys_time

zonecfg:myzone> set global-time=false

zonecfg:myzone> exit

No comments:

Post a Comment