Changing only time zone file not the timezone without reboot


 
Thread Tools Search this Thread
Operating Systems Solaris Changing only time zone file not the timezone without reboot
# 8  
Old 05-11-2015
That depends on how the timestamps are formatted in the logs.

Usual log formats do not store the geographical timezone which is indeed unreliable but either GMT or some offset from GMT.
# 9  
Old 05-11-2015
My concern would be that you might have the time being written as each process perceives it and there could be a mismatch, eg.
Code:
12:34:56  Event good
12:34:59  Event good
12:35:02  Event good
11:35:02  Event unexpected
12:35:03  Event good

If you have a busy and common application log, this could make quite a mess. An alternate worry might be if an application does it's own logging within a database. We have to switch of NTP for one of these when it kept complaining that the clock had moved back.

Not that these are necessarily a problem in your case, just something to consider. I must say I'm left to wonder why you would want to make such a change without a boot? Is it so hard to find a window to boot in?


Kind regards,
Robin
# 10  
Old 05-11-2015
My previous answer is incorrect. I just looked at the localtime source code and noticed the time zone definitions are loaded only once and stored in a cache.

That means an altered timezone will only be taken into account by new processes but not by those already running.

I would then agree with rbatte1 and suggest the operation be followed by a reboot to make sure all processes, including init are in sync.
These 2 Users Gave Thanks to jlliagre For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 global zone timezone

Am new on Solaris If I compare with ESXi default timezone is UTC and we have to set BIOS timezone to UTC too . What we follow and best practice in Solaris Sparc servers . Thanks in advance . (2 Replies)
Discussion started by: Shirishlnx
2 Replies

2. Red Hat

Changing java timezone on RHEL 5

Hi all, I faced with some problem when I changing java timezone on RHEL 5. I used tzupdater.jar tool from oracle to update java timezone. But I missed stopping applications before I run tzupdater tool. So some applications working with wrong timezone. I think there's some cached instance of... (0 Replies)
Discussion started by: sembii
0 Replies

3. Solaris

[Solved] Question changing timezone rules / zic

Dear, One of our customer which is located in Iraq/Baghdad, has informed us about a official change in daylight saving time in few days later and has asked us to fix this issue. So, the current timezone of that system is set as 'Asia/Baghdad' which is correct. however to fix the issue I went... (0 Replies)
Discussion started by: Anti_Evil
0 Replies

4. Solaris

Changing the timezone to GMT+1

Hello everyone, Can you please help me with this problem? I want to change the timezone of my Solaris 10 system. I found on internet that I should do the following steps: 1- Edit the /etc/TIMEZONE file 2- restart the system : init 6 My question is : In the file /etc/TIMEZONE I should... (5 Replies)
Discussion started by: adilyos
5 Replies

5. Solaris

showing 2 different time zones in global zone and nonglobal zone

can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT. System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies

6. Solaris

Can i reboot a zone when i logged in the zone

I am curious to know if I can reboot a zone while I was inside the zone itself. By doing so can I know what happens to the zone and what are the pros and cons. Is it recommended or not? Is that zone will properly shuts down; :confused::confused::confused: (7 Replies)
Discussion started by: srinivas1049
7 Replies

7. AIX

changing the time zone in aix

hi may aix version is 6100-06-03-1048 when i give date command it shows the time zone as root@cbspsgui01 #date Fri Sep 16 08:43:42 Africa/Johannesburg 2011 I want to change the time zone to GMT +02:00: After i change the time zone it should show something like the one below when i type... (2 Replies)
Discussion started by: newtoaixos
2 Replies

8. Red Hat

changing timezone

Hi, I would like to change time zone Linux from IST to US/Canada but not getting the option , I have run the command setup -> timezone configuration but not getting the option of us/canada or pacific us/canada. Please suggest. Regards, Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

9. Solaris

changing time zone from ist to bst

Hi, Can anybody tell me how to change time zone from ist to bst, What changes should be done in /etc/TIMEZONE file. wheather it is possible to change timezone without rebooting the server. Regards Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

10. UNIX for Advanced & Expert Users

TimeZone changing in Solaris

I've date back one of my Unix WS ,after that again i want to return to real date,but after running: # date -u mmddHHMMyy the clock immediately returns to GMT timezone that is different with my local timezone. any suggestion could be useful... tanx --nikk (2 Replies)
Discussion started by: nikk
2 Replies
Login or Register to Ask a Question