Please login or register. June 23, 2017, 10:13:23 AM

Author Topic: date on VIO server  (Read 6026 times)

0 Members and 1 Guest are viewing this topic.

fbergenh

  • Senior Member
  • ****
  • Posts: 40
  • Karma: +0/-0
date on VIO server
« on: October 03, 2011, 12:30:52 PM »
One of our clients has 2 VIO servers.

The first VIO server has the correct date and time

$ chdate
Mon Oct  3 14:24:06 GMT+02:00 2011

but the other one is completly off:

$ chdate
Fri Mar 23 08:27:39 GMT+01:00 2007

Is it possible to correct this by setting the right date and time via the chdate command on a running VIO server or should I do this in another way?

Thanks in advance.
Frank

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1039
  • Karma: +0/-0
Re: date on VIO server
« Reply #1 on: October 05, 2011, 10:52:59 PM »
I use the command setclock to update the clock. This uses GMT/CUT time to update the clock. So, the dates should only appear different if the TZ variable is different.

How to use?

setclock host_with_correct_time

But of course, you can use chdate, or ntp as well.

fbergenh

  • Senior Member
  • ****
  • Posts: 40
  • Karma: +0/-0
Re: date on VIO server
« Reply #2 on: October 06, 2011, 07:14:49 AM »
Hi Michael,

When I look back at my question, I see now that I wasn't very clear on what I wanted to know  ;)

The real question was: can I set the correct time without any consequences or are there things on a vio server that will have troubles with the time change.

For example: a time change with a running database isn't a good idea.

 

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1039
  • Karma: +0/-0
Re: date on VIO server
« Reply #3 on: October 09, 2011, 08:56:49 PM »
You can change the time of the VIOS at any time - this should not have any affect on an application (as generally applications do not know they are in a virtual environment).
The VIOS concept of time is local to the VIO partition.