Actually, I'm a system engineer and my company is using Linux system (SuSE). Unfortunately, one of my company's server was down since last Chinese New Year...(wow, long time ago)...I recovered it due to the reason of failure is hard drive getting bad sectors.
But a big big problem didn't solve after recovered until today, what is that? That is the time synchronizing problem. The server is used for logging our duty arrival time and leaving time, so that the time accurarcy is very important. However, I couldn't synchronize the time with NTP server.
You know, I'm in Hong Kong so the time zone is GMT+8. When I set my server's time zone to "Asia/Hong_Kong" using "YaST", my web server and the database (using MySQL) are still showing GMT time. I thought that is due to I was using YaST to set the clock, but that's not.
Thereafter, I changed the timezone using GMT+8 instead of country. It's working. Good?! No! Because I need to synchronize with NTP server otherwise my system clock will graduately delay. When I tried to use "ntpdate" to synchronize it. I changed the clock to 8 hours earlier that causes the system clock becomes incorrect again. I tried many many methods... the time could synchronize unless I changed back the timezone to "Asia/Hong_Kong" but the web server and database time will be incorrect as the result.
Back and forth, trying, trying and trying. I still could not resolve the problem. Today, I tried again to change the timezone back to "Asia/Hong_Kong" (I was using GMT+8 before). It's because I found that the server treats the time as GMT even I set GMT+8. But the problem still exists... Finally, what did I do?! I restarted my web server that is WORKING! So I restarted eddatabase server and sendmail server too. All of them are working good now, God blesses me!!!!
I'm going to challenge my Flex application la....update here tomorrow la...
No comments:
Post a Comment