在Windows Server 2012 R2上使用相同的驱动器号进行DFS复制是否会导致任何已知问题?

我们正在与大型DFS复制项目的顾问合作,并且在初始复制期间我们遇到了重大的数据丢失。

在试图确定顾问回来时发生了什么事,并表示这是由于在复制涉及的两台服务器上使用相同的驱动器号。 我试图确定这是否是一个合理的问题。

技术细节如下:

Server 1 has a file share residing on the D: named Share 1 to sync to Server 2's D: Server 2 has a file share residing on its D: named Share 2 to sync to Server 2's D: 

交叉同步这两个股份给对方造成一个问题? 最初的复制进行得很好,完成了大约60%,直到服务器感到困惑,然后服务器2认为它具有来自服务器1的所有数据,并指示服务器1删除所有其余的数据,因为它不再需要。

任何人都可以摆脱这一点非常感激。 谢谢。

不,这绝对不是你问题的根源。

我从来没有见过任何支持这种说法的文档,而且我还pipe理着一个拥有18个站点,数十个DFS复制组,半个DFS命名空间的企业,这些命名空间包含数百个包含TB级数据的共享,并且从未遇到过我们复制组几乎完全从相同的驱动器号复制到相同的驱动器号。 (我花了很多精力来标准化我们的服务器版本,所以我们所有的文件服务器对于相同的卷都有相同的驱动器号。)

例如:

在这里输入图像说明

或者,如果您愿意,也可以使用相同的驱动器号和文件夹path来进行文件服务器迁移:

在这里输入图像说明

编辑:我发现另一个高度相关的例子,说明为什么DFS-R不关心驱动器号。

下面是为文件服务器迁移创build的复制组。 除了其他问题之外,我将两个部门份额合并为一个卷,所以在目标服务器上,我在F:驱动器上有两个复制文件夹。 (我将在稍后将两者的内容放入一个文件夹中):

在这里输入图像说明

这很好,因为每个复制的文件夹(甚至是同一个卷上的文件夹)都会自己存储元数据和DFS-R数据,以便不同的复制文件夹不会混淆彼此的复制,如下所示:

在这里输入图像说明

使用相同的驱动器号不是我遇到的问题。 我为DFSconfiguration了多个服务器,而且几乎每一次,我都有一个D:上的数据卷,后跟一个相关的目录结构。

我使用最佳实践分析器,遵循任何configuration,以及Robocopy来预置任何数据。 一旦复制开始,由于数据改变的百分比很小,所以它很快完成工作。 当然,时间因数据量而异。

最佳实践分析器是一个只读的应用程序,不会改变你的configuration,但会给予非常显着和直接的build议,以补救任何执行不当的configuration。 它救了我不less次。

以下是如何使用Robocopy预先处理您的数据,从Technet库引用:

通过使用,将复制的文件预置到目标服务器上

ROBOCOPY

使用属于源服务器和目标服务器上的本地Administrators组成员的帐户login到目标服务器。 打开提升的命令提示符。 要将文件从源服务器预置到目标服务器,请运行以下命令,replace您自己的源,目标和日志文件path:

 robocopy "<source replicated folder path>" "<destination replicated folder path>" /e /b /copyall /r:6 /w:5 /MT:64 /xd DfsrPrivate /tee /log:<log file path> /v 

该命令将源文件夹的所有内容复制到目标文件夹,并使用以下参数:

 Parameter Description "<source replicated folder path>" Specifies the source folder to preseed on the destination server. "<destination replicated folder path>" Specifies the path to the folder that will store the preseeded files. Important The destination folder must not already exist on the destination server. To get matching file hashes, Robocopy must create the root folder when it preseeds the files. /e Copies subdirectories and their files, as well as empty subdirectories. /b Copies files in Backup mode. /copyall Copies all file information, including data, attributes, time stamps, the NTFS access control list (ACL), owner information, and auditing information. /r:6 Retries the operation 6 times when an error occurs. /w:5 Waits 5 seconds between retries. MT:64 Copies 64 files simultaneously. /xd DfsrPrivate Excludes the DfsrPrivate folder. /tee Writes status output to the console window, as well as to the log file. /log <log file path> Specifies the log file to write. Overwrites the file's existing contents. (To append the entries to the existing log file, use /log+ <log file path>.) /v Produces verbose output that includes skipped files. 

例如,以下命令将源复制文件夹E:\ RF01中的文件复制到目标服务器上的数据驱动器D:

 robocopy.exe "\\srv01\e$\rf01" "d:\rf01" /e /b /copyall /r:6 /w:5 /MT:64 /xd DfsrPrivate /tee /log:c:\temp\preseedsrv02.log