Operating System - HP-UX
1835626 Members
3174 Online
110081 Solutions
New Discussion

weekend time change trick

 
Marc Ahrendt
Super Advisor

weekend time change trick

i was wondering if there was a way to avoid having my server fall back its clock one hour ...but instead drift back one hour over a period of a day or so

basically i do not want to shutdown my Informix application at 1am for one hour to wait for it to be 1am again. i was hoping to just make the clock run slower over a certain persiod of time to lose about 1 hour so that i can keep the datbase up while also drifting slowly back 1 hour

this trick, if possible, would allow us not to lose 1 hour of work (we are a 24x7 shop)

please note that the server in question is running 11.11 with NTP (stratum level 4)
hola
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: weekend time change trick

You can shut down the ntp daemon and have cron set the time forward an hour one minute before the fall back.

Then turn ntp back on.

The clock will gradually adjust itself back.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mark Greene_1
Honored Contributor

Re: weekend time change trick

Which informix product?

Here's the IBM page on Informix:

http://www-306.ibm.com/software/data/informix/

you might be able to find something there to help.

And here's the informix user's group page with tons of info and links to other resources:

http://www.iiug.org/home.html

mark
the future will be a lot like now, only later
Marc Ahrendt
Super Advisor

Re: weekend time change trick

steve ...can you clarify?


at 2am the clocks roll back to 1am so would i do the following?


1) at 1:59am

/sbin/init.d/xntpd stop
/sbin/init.d/informix stop

2) at 2:00am the clock goes back to 1:00am then i change the time forward manually back to 2am

date 103100200

3) then start app and get clock to slowly sync back 1 hour using NTP

/sbin/init.d/xntpd start
/sbin/init.d/informix start
hola