مقدمه
DFS ویندوز سرور یک namespace یکپارچه برای file share ها در چندین سرور فراهم میکند، به علاوه replication بین سایتها. با DFS Replication، هر سایت یک کپی محلی از پوشههای مشترک دارد که همگامسازی میشود.
DFS Namespace
POWERSHELL
Install-WindowsFeature FS-DFS-Namespace, FS-DFS-Replication -IncludeManagementTools
# ایجاد Namespace
New-DfsnRoot -Path "company.localshared" -Type DomainV2 `
-TargetPath "ileserver01dfsroot"
# اضافه کردن پوشهها
New-DfsnFolder -Path "company.localshareddocuments" `
-TargetPath "ileserver01documents"DFS Replication
POWERSHELL
New-DfsReplicationGroup -GroupName "SharedDocuments"
Add-DfsrMember -GroupName "SharedDocuments" -ComputerName "fileserver01"
Add-DfsrMember -GroupName "SharedDocuments" -ComputerName "fileserver02"
Set-DfsrMembership -GroupName "SharedDocuments" `
-FolderName "Documents" -ComputerName "fileserver01" `
-ContentPath "D:SharesDocuments" -PrimaryMember $trueپایش Replication
POWERSHELL
# بررسی backlog (چه تعداد فایل در انتظار sync)
Get-DfsrBacklog -GroupName "SharedDocuments" `
-FolderName "Documents" `
-SourceComputerName "fileserver01" `
-DestinationComputerName "fileserver02"DFS Namespace مسیر یکپارچهای برای کاربران فراهم میکند صرفنظر از اینکه فایلها واقعاً کجا باشند، در حالی که DFS Replication آن فایلها را همگامسازی نگه میدارد.
