짜잘한거/자잘한 설정

[설정]? Windows Server 2008 시간 동기화 설정

월하노인 2014. 7. 28. 15:51

http://blog.daum.net/jungsangun/7691206

시간 동기화가 잘 안되어 서버(Window Server 2008) 시간이 틀리는 것을 발견했다.

xp, windows 7 은  제어판의 "날짜 및 시간" 항목의 "인터넷 시간" 탭이 있어 동기화를 GUI환경에서 설정할 수 있는데

서버에는 없다.

 

명령프롬프트에서 다음과 같이 하면 된다.

 

1. 먼저 시간동기화가 되는지 확인한다.
C:\>w32tm /resync

로컬 컴퓨터에 다시 동기화 명령을 보내는 중
사용 가능한 시간 데이터가 없어 컴퓨터가 동기화하지 못했습니다.

 

2. 현재 설정된 시간 동기화 정보확인
C:\>w32tm /query /configuration

[구성]

EventLogFlags: 2 (로컬)
AnnounceFlags: 10 (로컬)
TimeJumpAuditOffset: 28800 (로컬)
MinPollInterval: 6 (로컬)
MaxPollInterval: 10 (로컬)
MaxNegPhaseCorrection: 172800 (로컬)
MaxPosPhaseCorrection: 172800 (로컬)
MaxAllowedPhaseOffset: 300 (로컬)

FrequencyCorrectRate: 4 (로컬)
PollAdjustFactor: 5 (로컬)
LargePhaseOffset: 50000000 (로컬)
SpikeWatchPeriod: 900 (로컬)
LocalClockDispersion: 10 (로컬)
HoldPeriod: 5 (로컬)
PhaseCorrectRate: 7 (로컬)
UpdateInterval: 100 (로컬)


[시간 공급자]

NtpClient (로컬)
DllName: C:\Windows\system32\w32time.dll (로컬)
Enabled: 1 (로컬)
InputProvider: 1 (로컬)
CrossSiteSyncFlags: 2 (로컬)
AllowNonstandardModeCombinations: 1 (로컬)
ResolvePeerBackoffMinutes: 15 (로컬)
ResolvePeerBackoffMaxTimes: 7 (로컬)
CompatibilityFlags: 2147483648 (로컬)
EventLogFlags: 1 (로컬)
LargeSampleSkew: 3 (로컬)
SpecialPollInterval: 3600 (로컬)         -> 동기화 주기 초단위 3600=1시간
Type: AllSync (로컬)
NtpServer: time-nw.nist.gov,0x9 (로컬) -> 잘못된 시간동기화 서버 정보

NtpServer (로컬)
DllName: C:\Windows\system32\w32time.dll (로컬)
Enabled: 1 (로컬)
InputProvider: 0 (로컬)
AllowNonstandardModeCombinations: 1 (로컬)

 


3. 시간동기화 서버 변경
C:\>w32tm /config /manualpeerlist:"time.windows.com,0x9" /syncfromflags:MANUAL
명령이 성공적으로 완료되었습니다.

 

4. 시간동기화 서비스 멈추고
C:\>net stop w32time

Windows Time 서비스를 멈춥니다..
Windows Time 서비스를 잘 멈추었습니다.

 

5. 시간동기화 서비스 시작
C:\>net start w32time

Windows Time 서비스를 시작합니다..
Windows Time 서비스가 잘 시작되었습니다.

 

6. 시간동기화 실행
C:\>w32tm /resync


로컬 컴퓨터에 다시 동기화 명령을 보내는 중
명령이 성공적으로 완료되었습니다.