AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 661060
Accepted
Windows Ninja
Windows Ninja
Asked: 2015-01-21 15:10:56 +0800 CST2015-01-21 15:10:56 +0800 CST 2015-01-21 15:10:56 +0800 CST

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

  • 772

我们正在与一个大型 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 删除其所有其余数据,因为不再需要这些数据。

任何人都可以对此有所了解,我们将不胜感激。谢谢你。

windows-server-2012
  • 2 2 个回答
  • 2232 Views

2 个回答

  • Voted
  1. Best Answer
    HopelessN00b
    2015-01-21T16:16:50+08:002015-01-21T16:16:50+08:00

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

    我从未见过任何支持这种说法的文档,此外,我管理的企业有 18 个站点、数十个 DFS 复制组、六个 DFS 命名空间,其中包含数百个 TB 级数据共享,并且从未遇到过我们的问题复制组几乎完全从同一驱动器号复制到同一驱动器号。(我为标准化我们的服务器构建付出了很多努力,因此我们所有的文件服务器对于相同的卷都有相同的驱动器号。)

    例如:

    在此处输入图像描述

    或者,如果您愿意,这里有一个来自相同驱动器号甚至文件夹路径的文件服务器迁移:

    在此处输入图像描述

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

    下面是我为文件服务器迁移创建的复制组。除其他问题外,我将两个单独的部门共享卷合并到一个卷中,因此在目标服务器上,我在F:驱动器上有两个复制的文件夹。(稍后我会将两者的内容放到一个文件夹中):

    在此处输入图像描述

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

    在此处输入图像描述

    • 8
  2. Citizen
    2015-01-21T16:12:26+08:002015-01-21T16:12:26+08:00

    使用相同的驱动器号不是我遇到的问题。我已经为 DFS 配置了多个服务器,几乎每次,我都有一个数据卷D:,然后是一个相关的目录结构。

    我确实使用最佳实践分析器,遵循任何配置,以及 Robocopy 来预置任何数据。复制开始后,由于数据更改的百分比很小,它会很快完成工作。当然,时间随数据量而变化。

    最佳实践分析器是一个只读应用程序,它不会更改您的配置,但会为修复任何执行不佳的配置提供非常突出和直接的建议。它救了我好几次。

    以下是如何使用 Robocopy 预置数据,引自Technet 库:

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

    机械复制

    使用作为源服务器和目标服务器上本地管理员组成员的帐户登录到目标服务器。打开提升的命令提示符。要将文件从源服务器预置到目标服务器,请运行以下命令,替换您自己的源、目标和日志文件路径:

    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
    
    • 5

相关问题

  • 一个 Active Directory,多个远程桌面服务(Server 2012 解决方案)

  • 在虚拟处理器上启用硬件辅助虚拟化?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve