NetWorker:備份失敗,並顯示:無法在主機用戶端名稱上建立使用 nsrexecd 的工作階段通道,以執行命令「savefs ...」。

Summary: 備份失敗,並顯示無法在主機用戶端名稱上使用 nsrexecd 建立工作階段通道以執行命令「savefs -s server-name -c client-name -g

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

NetWorker 用戶端備份失敗,並顯示:
Unable to create session channel with nsrexecd on host client-name to execute command 'savefs -s server-name -c client-name'

Cause

伺服器和客戶端之間存在通信問題。

Resolution

初始步驟:

  • 檢查 nsrexecd 是否正在用戶端上執行。
    • Linux: ps -ef | grep nsrexecd
      Windows: tasklist | findstr nsrexecd

       
  • 如果用戶端服務未執行,請啟動這些服務並監控是否有任何服務問題:
    • Linux: systemctl start networker
      Windows: net start nsrexecd

       
  • 可以在用戶端的daemon.raw檔中監視服務啟動問題
  • 使用 nslookup,確認從 NetWorker 伺服器和用戶端的名稱解析都能正常運作。FQDN、短名稱和 IP 都應該正確傳回。

連線能力故障診斷:

  • 檢查 nsradmin 是否可以從伺服器連線到用戶端,反之亦然:
nsradmin -p nsrexecd -s client-name
其中「client-name」是 NetWorker 組態中定義的用戶端主機名稱。
  • 使用 nsrports 檢查伺服器和用戶端上的連接埠範圍,以確認它們相符。NetWorker 使用的預設服務連接埠範圍是 7937-9936。
  • 在 NetWorker 伺服器上,檢查用戶端可顯示哪些連接埠/程式: 
nsrrprcinfo -p client-name
其中「client-name」是 NetWorker 組態中定義的用戶端主機名稱。
PS C:\Windows\system32> nsrrpcinfo -p winsrvr2k16.emclab.local
PROGRAM VERSION PROTOCOL PORT SERVICE
100000  2       tcp      7938 nsrportmapper  Port Mapper
100000  2       udp      7938 nsrportmapper  Port Mapper
390436  1       tcp      8655 nsrexecd       GSS Authentication
390435  1       tcp      9220 nsrexecd       Resource Mirror
390113  1       tcp      7937 nsrexecd       Remote Execution
390440  1       tcp      9500 nsrexecd_nsrfa Remote File Access
連接埠是從設定的連接埠範圍動態指派。 
  • 檢查用戶端上是否有執行軟體防火牆,如果有,連接埠範圍包括以下 NetWorker 連接埠:
    • Linux: 
      firewall-cmd --list-all
      採用預設 NetWorker 連接埠的一般組態為:
# firewall-cmd --list-all
public (active)
  target: %%REJECT%%
  icmp-block-inversion: no
  interfaces: ens3
  sources:
  services:
  ports: 7937-9936/tcp
  protocols:
  forward: no
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:
        rule family="ipv4" source ipset="jump-servers" service name="ssh" accept
但是,配置錯誤的防火牆配置可能如下所示:
# firewall-cmd --list-all
public (active)
  target: %%REJECT%%
  icmp-block-inversion: yes
  interfaces: ens3
  sources:
  services:
  ports: 7936-7996/tcp
  protocols:
  forward: no
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks: echo-reply echo-request
  rich rules:
        rule family="ipv4" source ipset="jump-servers" service name="ssh" accept
Windows:
開啟具有 進階安全的 Windows Defender 防火牆 ,並檢 閱入站 出站 規則。檢查是否有任何規則封鎖或限制 NetWorker 連接埠範圍 ( 如 nsrport 所示)。“本地埠”列顯示應用規則的埠範圍。 
 
注意:作業系統系統管理員應介入檢閱任何其他可能封鎖通訊的作業系統設定或軟體。如果找不到作業系統層級組態,則網路裝置可能會封鎖通訊。網路管理員也應參與審查任何可能封鎖通訊的潛在網路組態。
  • 建議盡可能使用預設連接埠範圍 (7937-9936)。可使用 nsrports 命令設定連接埠範圍:
nsrports -S 7937-9936
連接埠範圍正確後,nsradmin 應會連線,且備份應可正常運作。

Affected Products

NetWorker Family, NetWorker
Article Properties
Article Number: 000207523
Article Type: Solution
Last Modified: 20 Apr 2023
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.