启用或禁用引用和客户端故障回复Enable or Disable Referrals and Client Failback

适用于: Windows Server 2019,Windows Server (半年通道) ,Windows Server 2016,Windows Server 2012 R2,Windows Server 2012,Windows Server 2008 R2,Windows Server 2008Applies to: Windows Server 2019, Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2, Windows Server 2008

引用是指当用户访问命名空间根目录或包含目标的 DFS 文件夹时,客户端计算机从域控制器或命名空间服务器接收的服务器的排序列表。A referral is an ordered list of servers that a client computer receives from a domain controller or namespace server when the user accesses a namespace root or DFS folder with targets. 接收引用后,计算机会尝试访问列表中的第一个服务器。After the computer receives the referral, the computer attempts to access the first server in the list. 如果该服务器不可用,则客户端计算机会尝试访问下一个服务器。If the server is not available, the client computer attempts to access the next server. 如果服务器不可用,则可将客户端配置为在该服务器可用后故障回复到首选服务器。If a server becomes unavailable, you can configure clients to fail back to the preferred server after it becomes available.

以下部分提供有关如何启用或禁用引用或启用客户端故障回复的信息:The following sections provide information about how to enable or disable referrals or enable client failback:

启用或禁用引用Enable or disable referrals

通过禁用命名空间服务器的引用或文件夹目标的引用,可以防止用户被定向到该命名空间服务器或文件夹目标。By disabling a namespace server's or folder target's referral, you can prevent users from being directed to that namespace server or folder target. 如果需要临时使服务器脱机以便进行维护,此功能很有用。This is useful if you need to temporarily take a server offline for maintenance.

  • 若要启用或禁用对文件夹目标的引用,请按照以下步骤操作:To enable or disable referrals to a folder target, use the following steps:

    1. 在 DFS 管理控制台树中的命名空间节点下,单击包含目标的文件夹,然后在详细信息窗格中单击文件夹目标In the DFS Management console tree, under the Namespaces node, click a folder containing targets, and then click the Folder Targets tab in the Details pane.
    2. 右键单击该文件夹目标,然后单击禁用文件夹目标启用文件夹目标Right-click the folder target, and then click either Disable Folder Target or Enable Folder Target.
  • 若要启用或禁用对命名空间服务器的引用,请按照以下步骤操作:To enable or disable referrals to a namespace server, use the following steps:

    1. 在 DFS 管理控制台树中,选择相应的命名空间,然后单击命名空间服务器选项卡。In the DFS Management console tree, select the appropriate namespace and then click the Namespace Servers tab.
    2. 右键单击相应的命名空间服务器,然后单击禁用命名空间服务器启用命名空间服务器Right-click the appropriate namespace server and then click either Disable Namespace Server or Enable Namespace Server.

提示

若要使用 Windows PowerShell 启用或禁用引用,请使用 Set-DfsnRootTarget –StateSet-DfsnServerConfiguration cmdlet(在 Windows Server 2012 中引入)。To enable or disable referrals by using Windows PowerShell, use the Set-DfsnRootTarget –State or Set-DfsnServerConfiguration cmdlets, which were introduced in Windows Server 2012.

启用客户端故障回复Enable client failback

如果目标不可用,可以将客户端配置为在目标恢复后故障回复到该目标。If a target becomes unavailable, you can configure clients to fail back to the target after it is restored. 若要使故障回复正常进行,客户端计算机必须满足以下主题中所列的要求:查看 DFS 命名空间客户端要求For failback to work, client computers must meet the requirements listed in the following topic: Review DFS Namespaces Client Requirements.

备注

若要使用 Windows PowerShell 对命名空间根目录启用客户端故障回复,请使用 Set-DfsnRoot cmdlet。To enable client failback on a namespace root by using Windows PowerShell, use the Set-DfsnRoot cmdlet. 若要对 DFS 文件夹启用客户端故障回复,请使用 Set-DfsnFolder cmdlet。To enable client failback on a DFS folder, use the Set-DfsnFolder cmdlet.

对命名空间根路径启用客户端故障回复的步骤To enable client failback for a namespace root

  1. 单击“开始”****、指向“管理工具”****,然后单击“DFS 管理”****。Click Start, point to Administrative Tools, and then click DFS Management.

  2. 在控制台树中的“命名空间”**** 节点下,右键单击命名空间,然后单击“属性”****。In the console tree, under the Namespaces node, right-click a namespace, and then click Properties.

  3. 在“引用”**** 选项卡上,选中“客户端故障回复到首选目标”**** 复选框。On the Referrals tab, select the Clients fail back to preferred targets check box.

包含目标的文件夹从命名空间根路径继承客户端故障回复设置。Folders with targets inherit client failback settings from the namespace root. 如果对命名空间根目录禁用了客户端故障回复,则可按照以下过程使客户端可对包含目标的文件夹启用故障回复。If client failback is disabled on the namespace root, you can use the following procedure to enable the client to fail back on a folder with targets.

对包含目标的文件夹启用客户端故障回复的步骤To enable client failback for a folder with targets

  1. 单击“开始”****、指向“管理工具”****,然后单击“DFS 管理”****。Click Start, point to Administrative Tools, and then click DFS Management.

  2. 在控制台树中的“命名空间”**** 节点下,右键单击包含目标的文件夹,然后单击“属性”****。In the console tree, under the Namespaces node, right-click a folder with targets, and then click Properties.

  3. 在“引用”**** 选项卡上,单击“客户端故障回复到首选目标”**** 复选框。On the Referrals tab, click the Clients fail back to preferred targets check box.

其他参考Additional References