CentOS 5 :: How To Sync Time Of Two Centos Servers
Jun 5, 2009I have one server running a daily cron to sync its time using ntpd:e.g.ntpd -qgI would like to sync my second server's system time to my first server. How can I do this?
View 2 RepliesI have one server running a daily cron to sync its time using ntpd:e.g.ntpd -qgI would like to sync my second server's system time to my first server. How can I do this?
View 2 RepliesI have a CentOS 5.3 server. All of the other computers I have are Windows or Ubuntu. The Ubuntu machines sync to the time on the CentOS machine correctly. The problem is, some of the windows 2000 Pro and Windows XP Pro machines are an hour off when they sync. The CentOS machine is set to New York time.
When I run: (Assume the time is currently 10:06 AM on the server) net time \xxx.xxx.xxx.xxx /set /yes
On the correct machines I get the message:
Current time at \xxx.xxx.xxx.xxx is 11/1/2010 10:06 AM
The command completed successfully.
But on the other machines I get:
Current time at \xxx.xxx.xxx.xxx is 11/1/2010 9:06 AM
Local time (GTM-04:00) at \xxx.xxx.xxx.xxx is 11/1/2010 10:06 AM
The command completed successfully.
Then the time on the windows computer is 9:06 instead of 10:06.
Is there something that needs changed on the CentOS Machine for the times to be correct?
I am trying to sync the time on my Centos 5 box, but I do not want to sync the date. All of our servers need to have the clocks synced, but one system needs to have the date set to the previous day.
View 6 Replies View RelatedI use Arch, but no info about it in official wiki.
View 2 Replies View Related[URL]VMware Workstation 7.0.1 Release Notes has a list of supported OS:[URL]According to that, RHEL 5.4 is listed as supported for both host andguest but CentOS 5.4 is only for guest. This is quite strange and, ifit is true, that could be a serious issue.I succeed to install vmware workstaion 7.1 on centos 5.5, but have run-time error:
[root@ ~]# /etc/init.d/vmware start
Starting VMware services:
VMware USB Arbitrator [ OK ]
[code]....
I want to change only the date of my Centos server but keep the time as it is. Which command to use?
Example:
Sat Jan 2 22:04:39 ICT 2010
I want to change with a command to:
Sun Dec 12 22:04:00 ICT 2010
but the command need only works on the date, the time need no to be modified. How can I do it?
I have two servers, both running CentOS, but one running Cpanel as the control panel and the other running Webmin.
I would like to sync the web folders using rsync. However, when I sync the files from the Cpanel host the permissions look as follows:
Code:
But that doesn't work on the Webmin server which needs the following:
Code:
It seems the Cpanel install has the group as 'nobody' whilst webmin has it the same as the file owner. I can fix this by running:
Code:
But as the file transfers will be frequent, I don't want the files to be inaccessible until chown is run.
So, what I really want to know is - how can I change things on the 'webmin' server so that files with ownership owner:nobody will run?
I have a few mail servers, a mail log server and a web server running on Centos 5. Now I have a task: to avoid accidental crashes on the production servers while installing updates, my boss asked me to do clones (these clones will all be VMware virtual machines) of the servers (EXCLUDING the actual e-mails and log contents) and then to run those clones on VMWare Server. This way, first I will install and test updates on the clones and - if they will be running without crashes - I will apply the updates on the real production servers themselves.
I have already installed VMWare Server 2.0 I have a few questions: How do I build the virtual machines to exclude the actual mail files and mail logs? Can I use VMware Converter for this purpose, or do I have to use another program? How do I actually do this cloning? Is there a tutorial on how to do this?
I wanted to synchronize both clock from windowsxp and centos. whenever i switch to centos i have to change clock before use is there any method so that i can synch both windows clock and centos clock?
View 1 Replies View RelatedI'm trying to download some SRPMS from CentOS 5.6 tree, but it seems that a lot of mirrors are not yet synced for the SRPMS directory.
I barely see the repodata and xml files inside it, but no SRPMS at all.
Is it a deliberate action to provide faster distribution of the 5.6 install tree or someone forgive to give the last rsync?
In the right upper corner of your screen,you can see if you have a network connection or not.Most of the time I do not have one according to Networkmanager (?).So I have to enable my wired connection manually.I already tried a lot to change my settings so I would have a network connection at boot,but it doesn't seem to work....Firefox is in Offline modus when I logon..
View 2 Replies View RelatedI am hosting two Virtual Servers both running Centos 5.3 on a host machine also running the same OS. The VM software in use is Xen, as supplied with the OS.The host machine's time and date is fine, however both Virtual Servers are running ahead of real time consitantly.Running /etc/init.d/ntpd restart will resolve the issue however one of these is running MailScanner and when the time suddenly goes backwards, sometimes by as much as an hour, it stops working properly.
View 1 Replies View RelatedI have checked all over the web for this and apparently everything is correct! But, my time is still an hour backwards.
# ntpdate -q time.nist.gov
server 192.43.244.18, stratum 1, offset 3532.170604, delay 0.05412
7 Jul 14:50:22 ntpdate[9628]: step time server 192.43.244.18 offset 3532.170604 sec
(a few seconds later)# date
Tue Jul 7 14:50:46 PDT 2009
Only problem is that the time is actually 15:46 PDT. So far I have done the following:
# rpm -qa *tzdata*
tzdata-2009i-2.el5
# yum install tzdata
[code]...
the last line in /etc/localtime is "PST8PDT,M3.2.0,M11.1.0"
# /etc/rc.d/init.d/crond restart
Nothing seems to work.
Isn't it time to upgrade XEN 3.0.3 to a more recent version like 3.4 or 4.0?Or is there even a roadmap for this?
View 1 Replies View RelatedI've installed RPMforge and Smart Package Manager.
I had to create my own Centos 5.5 channels to sync yum repos and smart channels.
Here's the Centos 5.5 channel file for Smart:
Just shut Smart PM down, copy this file into /etc/smart/channels, and restart smart.
Smart should then detect the new channels (repos) for Centos 5.5
Update your channels in Smart, and you should then have yum repos and smart channels both in sync, looking at the same set of packages.
Copy this to CentOS-Base.channel, and add it to the /etc/smart/channels directory.
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
[Code].....
Problems with xen 3.1.2 creating and installing domU CentOS 5.5 I am trying to do a virt-install --prompt --paravirt, and the install error out while trying to download install RPMs. I have googled for xen centos virt-install and various permutations. I have found similar howtos for 5.4 and 5.3, but they resulted in the same outcome. I did find several posts with similar issues, but no solution was posted.[URL]..
View 4 Replies View RelatedI am in the process of building a new server on an Asus P5QPL-AM motherboard and an Intel E8600 processor.explain to me the difference between the two versions and what would you recommend.Also, is there any advantage of SATA over IDE hard drives?
View 1 Replies View RelatedI started to use linux (CentOS 5) 1 week ago. And I took lot of imformation from this forum. Is it possible to install two program at same time?
Total download size: 67 M
Is this ok [y/N]: y
Downloading Packages:
jdk-6u24-linux-i586.rpm 19% [========-] 6.0 kB/s | 13 MB 153:51 ETA
It is so boring to wait and I have to wait there is nothing to do something else just centOs text.
I am trying to run dosemu in Centos 5.3 for the first time. I am getting the following error:
./dosemu: symbol lookup error: /home/vmishra/mydos/dosemu/bin/libplugin_X.so: undefined symbol: XShmQueryVersion
Further, when i launch xdosemu then I get the following error:
./xdosemu
Segmentation fault
I have the bar at the top configured to display the time but it is displaying 12 hours out.For example, it's now 16:49 but the time is displaying as 06:49. If I click on Adjust Date & Time it has the correct time in there and it is configured to display 24-hour format and is in the correct time zone. If I switch to 12-hour format it displays 6:49 AM which is clearly incorrect.I can't fix it because it thinks the time is correct when I try to change it.
View 4 Replies View RelatedHow I can activate the one time password in Centos 5.3, I was looking packages but I can't find. Another server I have a debian and then the package name opie-server. In centos i was look opie,opie-server but nothing. Maybe the packag name different? What I must installed to used opie password?
View 2 Replies View RelatedI have two boxes that were originally used as workstations at a school - they upgraded and sold these.The two boxes are identical parts - Lenovo NetVista M42. I installed 5.3, installed RPMforge per the wiki instructions, did a yum -y update && shutdown -h now.The next day I turned the machine on and installed the UT2004 dedicated server. After a few hours I tried logging in via SSH - I could enter my user and password, but could not get farther. I rebooted the server. After another day the same thing happened. I moved the disk from the first box to the second and moved /etc/sysconfig/network-scripts/ifcfg-eth0.bak to ifcfg-eth0 but retaining the correct MAC address.
During this transition where the server "locks up" some things work and others do not. For example, if I type ping 4.2.2.2, wait 10 minutes and CTRL+C it looks like this (note the time of 0ms).
I'm running rsync in daemon mode on CentOS 5.4, and I'm seeing inconsistent times reported in the log file.
View 2 Replies View RelatedI have noticed my system time changes very often. Usually it's only by a minute or two.
If i'm watching date I see things like this :
$ date
Fri Mar 19 12:26:59 EDT 2010
$ date
Fri Mar 19 12:25:23 EDT 2010
$ date
[Code]....
I've been happily running an intranet on CentOS at work for a year now, so i thought I'd give it try as a desktop system.Been working bugs out for two days, but this one has me stumped:In Gnome, only one application at a time can use sound. Example: I fire up Amarok, then start my VirtualBox Windows machine, and I get an error from Virtualbox saying sound can not be initiated for the session.Same with mplayer, or any other sound app, while another app using sound is open, causes an error saying sound can't be used.
View 2 Replies View Relatedi am using squid proxy on centos 5.x release with stable version. during installation time i fixed date time region.it was basicaly gmt +3:00 hours. so everything was fixed, now since past few days every 24 hours it change its time automaatically. this looks like it take update somewhere from internet or internally something is mess up.could someone guide me how to fixed permanantly date time. even either restart the machine or passing 24 hours it do never change it. etc
View 2 Replies View RelatedI am installing CentOS 5.5 64 bit on a HP ProLiant server. The server has a configuration of 2 TB(500x4) HDD and 8 GB RAM. RAID 5 is enabled and mirroring is also going on. I made 7 partitions. Those are:
/boot - 200MB
/ - 80GB
Swap - 20GB
/usr - 100GB
[code]...
The problem i am facing is it takes too much time to format 100GB partitions while installing packages (during installation).
2 times now our server has randomly shut down. Completely powered off as if the power cable was pulled or something. Both around the same time. 7:30ish. Once was on Friday June 5th, then last night, Wednesday June 10th.
Here is the log from last nights crash/shutdown:
Quote:
Jun 10 19:23:18 mail avahi-daemon[2564]: Server startup complete. Host name is mail.local. Local service cookie is 1312323680.
Jun 10 19:23:18 mail avahi-daemon[2564]: Service "SFTP File Transfer on mail" (/services/sftp-ssh.service) successfully established.
Jun 10 19:23:21 mail smartd[2625]: smartd version 5.38 [i686-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen .....
I'm running a CentOS 5.2 vm on a W2K8 hyper-v core server. The problem I have is that when I reboot, the system time always resets itself to 6:00 am in the morning. I tried the /sbin/hwclock --systohc command but it hasn't taken hold.
View 1 Replies View RelatedI'm running CentOS 5.3 on a laptop and there are numerous warnings in the dmesg output that look like:
Warning Timer ISR/0: Time went backwards: delta=-252671169 delta_cpu=-248671169 shadow=6729603658291 off=235680520 processed=6730092000000 cpu_processed=6730088000000 0: 6730088000000