استارت نشدن سرویس File Replication در ویندوز سرور
عرض خداقوت خدمت اساتید محترم ، سرور اصلی 2008 r2 است و به تازگی سرور 2012 R2 را به صورت ادیشنال نصب کردم .در سرور ادیشنال پوشه های sysvol و netlogon متاسفانه share نشده است و به صورت دستی هم نمیشود آن را share کرد. ارورها در سرور اصلی (2008 ) نشون میده که سرویس file replication استارت نشده و با فعال کردن به صورت دستی هم پیغام زیر را می دهد
در قسمت file replication service این ارور را می دهد
This domain controller has migrated to using the DFS Replication service to replicate the SYSVOL share. Use of the File Replication Service for replication of non-SYSVOL content sets has been deprecated and therefore, the service has been stopped. The DFS Replication service is recommended for replication of folders, the SYSVOL share on domain controllers and DFS link targets
دو تا از پالیسی ها که تازه در سرور اصلی ایجاد شده اعمال نشده و قابل پاک شدن هم نیست و این پیغام را می دهد
در سرور ادیشنال
این پست را هم نگاه کردم اما نرم افزارش نبود که تست کنم
ممنون میشم راهنمایی بفرمایید
14 پاسخ
Non-authoritative SYSVOL Restore را روی سرور ادیشنال (2012) که sysvol و netlogon در آن share نشده است انجام دادم
اما متاسفانه باز هم این دو پوشه share نشد
داخل پوشه sysvol هم چیزی وجود ندارد
در فرایند این کار هیچ اروری هم دریافت نکردم
همه مراحل این پیغام بود SyncAll terminated with no errors.
C:\Windows\system32>dfsrdiag PollAD
Operation Succeeded
بعد از انجام کار
متن ارور 4614
The DFS Replication service initialized SYSVOL at local path C:\Windows\SYSVOL\domain and is waiting to perform initial replication. The replicated folder will remain in the initial synchronization state until it has replicated with its partner DC-2008.xxxx.ost. If the server was in the process of being promoted to a domain controller, the domain controller will not advertize and function as a domain controller until this issue is resolved. This can occur if the specified partner is also in the initial synchronization state, or if sharing violations are encountered on this server or the synchronization partner. If this event occurred during the migration of SYSVOL from File Replication service (FRS) to DFS Replication, changes will not replicate out until this issue is resolved. This can cause the SYSVOL folder on this server to become out of sync with other domain controllers.
Additional Information:
Replicated Folder Name: SYSVOL Share
Replicated Folder ID: 6628564A-BAFD-4CD8-AE98-0F388010B858
Replication Group Name: Domain System Volume
Replication Group ID: 4ACD5A46-80F9-4085-B22C-C304B7340B84
Member ID: A8224D6B-5118-40A4-9FDC-3C121768DAE5
=======================================================================
در آموزش مهاجرت به DFS هم ظاهرا همه چی اوکی هست
PS C:\Windows\system32> dfsrmig /getglobalstate
Current DFSR global state: 'Eliminated'
Succeeded.
PS C:\Windows\system32> Repadmin /Showrepl
Repadmin: running command /Showrepl against full DC localhost
Default-First-Site-Name\DC-2012
DSA Options: IS_GC
Site Options: (none)
DSA object GUID: dcd8b470-1ef9-42ea-b266-54e34277e4a4
DSA invocationID: 03d774d3-0172-45ed-9582-f0d1ad593863
==== INBOUND NEIGHBORS ======================================
DC=xxxxx,DC=ost
Default-First-Site-Name\DC-xxxxxx via RPC
DSA object GUID: 98da5e67-eda3-449a-b947-58fd237f57ff
Last attempt @ 2019-02-04 09:31:55 was successful.
CN=Configuration,DC=xxxx,DC=ost
Default-First-Site-Name\DC-xxxx via RPC
DSA object GUID: 98da5e67-eda3-449a-b947-58fd237f57ff
Last attempt @ 2019-02-04 09:18:32 was successful.
CN=Schema,CN=Configuration,DC=xxxxx,DC=ost
Default-First-Site-Name\DC-xxxxx via RPC
DSA object GUID: 98da5e67-eda3-449a-b947-58fd237f57ff
Last attempt @ 2019-02-04 09:18:32 was successful.
DC=ForestDnsZones,DC=xxxx,DC=ost
Default-First-Site-Name\DC-xxxx via RPC
DSA object GUID: 98da5e67-eda3-449a-b947-58fd237f57ff
Last attempt @ 2019-02-04 09:18:32 was successful.
DC=DomainDnsZones,DC=xxxxx,DC=ost
Default-First-Site-Name\DC-xxxx via RPC
DSA object GUID: 98da5e67-eda3-449a-b947-58fd237f57ff
Last attempt @ 2019-02-04 09:18:32 was successful.
PS C:\Windows\system32> Repadmin /syncall
CALLBACK MESSAGE: The following replication is in progress:
From: 98da5e67-eda3-449a-b947-58fd237f57ff._msdcs.xxxxx.ost
To : dcd8b470-1ef9-42ea-b266-54e34277e4a4._msdcs.xxxxx.ost
CALLBACK MESSAGE: The following replication completed successfully:
From: 98da5e67-eda3-449a-b947-58fd237f57ff._msdcs.xxxx.ost
To : dcd8b470-1ef9-42ea-b266-54e34277e4a4._msdcs.xxxxx.ost
CALLBACK MESSAGE: SyncAll Finished.
SyncAll terminated with no errors.
PS C:\Windows\system32> dfsrmig /setglobalstate 1
Current DFSR global state: 'Eliminated'
New DFSR global state: 'Prepared'
Invalid state change requested.
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32> dfsrmig /getmigrationstate
All domain controllers have migrated successfully to the Global state ('Eliminated').
Migration has reached a consistent state on all domain controllers.
Succeeded.
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32> dfsrmig /setglobalstate 2
Current DFSR global state: 'Eliminated'
New DFSR global state: 'Redirected'
Invalid state change requested.
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32> dfsrmig /getmigrationstate
All domain controllers have migrated successfully to the Global state ('Eliminated').
Migration has reached a consistent state on all domain controllers.
Succeeded.
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32> dfsrmig /setglobalstate 3
Current DFSR global state: 'Eliminated'
New DFSR global state: 'Eliminated'
Invalid state change requested.
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32> dfsrmig /getmigrationstate
All domain controllers have migrated successfully to the Global state ('Eliminated').
Migration has reached a consistent state on all domain controllers.
Succeeded.
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32> net share
Share name Resource Remark
-------------------------------------------------------------------------------
C$ C:\ Default share
D$ D:\ Default share
IPC$ Remote IPC
ADMIN$ C:\Windows Remote Admin
The command completed successfully.
مثل همین کار را روی سرور اصلی هم انجام دادم که نتایج مثل بالاست
نمیدونم مشکل چیه که نمیتونه ارتباط برقرار کنه و این دو پوشه share نمیشن
( در ضمن این دو پوشه در سرور اصلی (2008) در درایو D می باشند )
PS C:\Windows\system32> net share
Share name Resource Remark
-------------------------------------------------------------------
ADMIN$ C:\Windows Remote Admin
C$ C:\ Default share
D$ D:\ Default share
E$ E:\ Default share
F$ F:\ Default share
IPC$ Remote IPC
NETLOGON D:\SYSVOL\sysvol\xxxx.ost\SCRIPTS
Logon server share
Public F:\Public
SYSVOL D:\SYSVOL\sysvol Logon server share
The command completed successfully.
باز هم شرمنده
سرتونو خیلی درد آوردم
ممنون بابت وقت و آموزشی که میزارین
سلام و خداقوت
مشکل همچنان ادامه داره
ساعت و تاریخ یکی هستن
فایروالها از اول خاموش بودن
آدرس dns را هم ضربدری عوض کردم
در سرور 2008 اصلی بعد از تعویض dns
Windows IP Configuration
Host Name . . . . . . . . . . . . : DC-2008
Primary Dns Suffix . . . . . . . : xxxx.ost
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : xxxx.ost
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : xxxx.ost
Description . . . . . . . . . . . :
Physical Address. . . . . . . . . :
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.147.20(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.128
Default Gateway . . . . . . . . . : 192.168.147.1
DNS Servers . . . . . . . . . . . : 192.168.147.30
192.168.147.20
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.xxxx.ost:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : xxxx.ost
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . :
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
در سرور 2012 (ادیشنال)
Windows IP Configuration
Host Name . . . . . . . . . . . . : DC-2012
Primary Dns Suffix . . . . . . . : xxxx.ost
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : xxxx.ost
Ethernet adapter Ethernet0:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . :
n
Physical Address. . . . . . . . . :
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.147.30(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.128
Default Gateway . . . . . . . . . : 192.168.147.1
DNS Servers . . . . . . . . . . . : 192.168.147.20
192.168.147.30
NetBIOS over Tcpip. . . . . . . . : Enabled
در سرور 2008 ارور 4212 و 4008 میده
ارور 4212:
The DFS Replication service could not replicate the replicated folder at local path d:\SYSVOL\domain because the staging path is invalid or inaccessible.
ارور 4004
The DFS Replication service stopped replication on the replicated folder at local path d:\SYSVOL\domain.
Additional Information:
Error: 9025 (The staging area is unusable)
Additional context of the error:
Replicated Folder Name: SYSVOL Share
Replicated Folder ID: 6628564A-BAFD-4CD8-AE98-0F388010B858
Replication Group Name: Domain System Volume
Replication Group ID: 4ACD5A46-80F9-4085-B22C-C304B7340B84
ارور 4212 را جستجو کردم این سایت در مورد افزایش حجم پوشه Staging Area توضیحاتی را داده
اما وقتی دستور اول را در پاورشل کپی می کنم این پیغامو میده
PS C:\Windows\system32> Get-ChildItem c:\temp -recurse Sort-Object length -descending select-object -first 32 | ft n
ame,length -wrap -auto
Get-ChildItem : Cannot find path 'C:\temp' because it does not exist.
At line:1 char:14
+ Get-ChildItem <<<< c:\temp -recurse Sort-Object length -descending select-object -first 32 | ft name,length -wra
p -auto
+ CategoryInfo : ObjectNotFound: (C:\temp:String) [Get-ChildItem], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
البته همانطور که قبلا گفتم پوشه sysvol و netlogon در درایو d سرور 2008 اصلی است
** داخل پوشه Staging Area هیچ چیزی نیست **
در سرور 2012 هم این ارورها را میده
تشکر
لینک زیر رو ببینید. این کار رو روی سرور 2012 انجام بدین.
آموزش انجام Non-authoritative SYSVOL Restore بر پایه DFSR در اکتیودایرکتوری
وضعیت سرویس های سرور ادیشنال (2012)
DC-2012 DFS Replication DFSR Running Automatic
DC-2012 Workstation LanmanWorkstation Running Automatic
DC-2012 DNS Server DNS Running Automatic
DC-2012 Server LanmanServer Running Automatic
DC-2012 File Replication NtFrs Stopped Disabled
DC-2012 Kerberos Key Distribution Center Kdc Running Automatic
DC-2012 Netlogon Netlogon Running Automatic
این کار را اول روی سرور اصلی 2008 انجام دادم و بعد سرور ادیشنال
متاسفانه هنوز در سرور اصلی ارور 4212 و 4004 میده
هر چی گیر هست به نظرم روی سرور اصلی و پوشه SYSVOL هست
علت share نشدن sysvol و netlogon در سرور ادیشنال هم همین مشکله ؟
نه فقط همین دو تا سرور را دارم
راستش فکر کردم مشکل از اینه
چون ارورها اینطور نشون میداد
من کار خاصی برای تبدیل انجام ندادم
نمیدونم چه مشکلی پیش اومده که میفرمایین مهاجرت درست انجام نشده
حقیقتش اطلاعات زیادی از رول frsیا dfrs ندارم
اما چیزایی خوندم
پس من باید مجدد این دو تا رول را حذف کنم ؟
شرمنده
طبق اموزش نصب سرور ادیشنال چیزی در مورد تبدیل frs به dfsr برای ارتباط دو سرور نداده بود
نیازه که برای ارتباط دو سرور این تبدیل انجام شه یا در همان حالت frsهم میشه
در ضمن بر روی هر دو سرور DFS replication را نصب کردم
گزارش dfs managment در سرور اصلی
DC-2008 (2 errors) (View Server Details)
DFS Replication service stopped replication on replicated folder SYSVOL Share.
Staging folder d:\SYSVOL\staging areas\xxx.ost cannot be accessed.
DFS Replication service stopped replication on replicated folder SYSVOL Share.
Affected replicated folders: SYSVOL Share
Description: The DFS Replication service stopped replication on replicated folder SYSVOL Share at local path d:\SYSVOL\domain due to Error ID: 9025 (The staging area is unusable). Event ID: 4004
Staging folder d:\SYSVOL\staging areas\XXXX.ost cannot be accessed.
Affected replicated folders: SYSVOL Share
Description: DFS Replication cannot replicate files in the replicated folders listed above because the staging folder at d:\SYSVOL\staging areas\XXXX.ost cannot be opened. Replication can not take place because the service is unable to create staging files. Event ID: 4212
Last occurred: 232019 at 12:22:07 PM (GMT3:30)
Suggested action: Verify that the staging folder path exists and that the service has access to it.
در سرور اصلی
C:\Windows\system32>dcdiag /q
There are warning or error events within the last 24 hours after the
SYSVOL has been shared. Failing SYSVOL replication problems may cause
Group Policy problems.
......................... DC-2008 failed test DFSREvent
An error event occurred. EventID: 0xC0001B61
Time Generated: 02032019 11:26:38
Event String:
A timeout was reached (30000 milliseconds) while waiting for the Fil
e Replication service to connect.
......................... DC-2008 failed test SystemLog
در سرور ادیشنال
C:\Windows\system32>dcdiag /q
Warning: DsGetDcName returned information for \\DC-2008.xxxx.ost,
when we were trying to reach DC-2012.
SERVER IS NOT RESPONDING or IS NOT CONSIDERED SUITABLE.
......................... DC-2012 failed test Advertising
There are warning or error events within the last 24 hours after the
SYSVOL has been shared. Failing SYSVOL replication problems may cause
Group Policy problems.
......................... DC-2012 failed test DFSREvent
Unable to connect to the NETLOGON share! (\\DC-2012\netlogon)
[DC-2012] An net use or LsaPolicy operation failed with error
67, The network name cannot be found..
......................... DC-2012 failed test NetLogons
An error event occurred. EventID: 0x00000067
جناب مهندس کریم پور برای رفع این مشکل چیز دیگری به نظرتون میرسه
دوست عزیز متن ارور خیلی واضحه. شما FRS رو به DFSR بصورت کامل مهاجرت ندادین. شما این کار رو باید به درستی انجام بدین. بعد از اینکه این کار رو انجام دادین SYSVOL به SYSVOL_DFSR تغییر پیدا می کنه. شما نمیتونید از هر دو سرویس FRS و DFSR بصورت همزمان در Replication بین دامین کنترلر ها استفاده کنید. پیشنهاد می کنم لینک زیر رو ببینید.
آموزش مهاجرت یا Migrate کردن از FRS Replication به DFS Replication
در ضمن میتونم بپرسم که چرا دارید از DFSR استفاده می کنید ؟ دامین کنترلر های زیادی توی شبکه دارید ؟
ساعت و تاریخ بین دو سرور یکسان هست ؟
دستور زیر رو در هر دو سرور اجرا کنید و خروجی رو لطفا بصورت کد اینجا قرار بدید ( کلید های Ctrl+K رو بزنید ) :
ipconfig /all
فایروال های این دو سرور رو موقتا خاموش کنید.
آدرس DNS سرور ها رو هم بصورت ضربدری تنظیم کنید. یعنی DC1 آدرس DNS اولش DC2 باشه و آدرس DNS دومش خودش باشه و DC2 (ادیشنال) آدرس DNS اولش DC1 باشه و بهمین ترتیب آدرس DNS دومش خودش باشه.
یکبار هم پیشنهاد می کنم Authoritative Restore انجام بدین. لینک زیر رو ببینید.
قسمت زیر رو باید بخونید :
How to perform an authoritative synchronization of DFSR-replicated SYSVOL (like "D4" for FRS)
پس مشکل frs چیه که ارتباط برقرار نمیشد
اگه مشکل حل شه قصد ندارم به dfsr تبدیل کنم
کدوم بهتره