メイン コンテンツに進む
  • すばやく簡単にご注文が可能
  • 注文内容の表示、配送状況をトラック
  • 会員限定の特典や割引のご利用
  • 製品リストの作成とアクセスが可能
  • 「Company Administration(会社情報の管理)」では、お使いのDell EMCのサイトや製品、製品レベルでのコンタクト先に関する情報を管理できます。

Cyber Recovery:存储区中的 Windows NetWorker Server 应用程序恢复失败,并显示错误“cp: 保留”/etc/hosts_nw_recovery_123456的权限“:Permission denied“(权限被拒绝)

概要: Cyber Recovery:存储区中的 Windows NetWorker Server 应用程序恢复失败,并显示错误“Failed to run:“cp -p /etc/hosts /etc/hosts_nw_recovery_123456” 错误:进程退出,状态为 1 stderr: cp:保留“/etc/hosts_nw_recovery_123456”的权限:权限被拒绝” ...

この記事は自動翻訳されたものである可能性があります。品質に関するフィードバックがある場合は、このページの下部にあるフォームを使用してお知らせください。

文書の内容


現象

在 Windows 上运行的 NetWorker 服务器的应用程序恢复失败,并在 Cyber Recovery“apps.log”中出现此错误堆栈。
 
[2022-10-12 11:48:03.879] [INFO] [apps] [RecoverNetWorkerApp.go:142 RunNWWorkflow()] : Current Task Number: 1
[2022-10-12 11:48:03.879] [INFO] [apps] [RecoverNetWorkerApp.go:144 RunNWWorkflow()] : Task Name: 10- About NetWorker
[2022-10-12 11:48:03.879] [INFO] [apps] [restapi_client.go:256 CallRESTAPI()] : Methods is :GET URL is:https://10.10.10.10:9090/nwrestapi
[2022-10-12 11:48:03.916] [INFO] [apps] [RecoverNetWorkerApp.go:223 NWAbout()] : Gathering information about Networker host: 10.10.10.10
[2022-10-12 11:48:03.917] [INFO] [apps] [RecoverNetWorkerApp.go:234 NWAbout()] : NW Version: 19.5.0.2.Build.123
[2022-10-12 11:48:03.917] [INFO] [apps] [RecoverNetWorkerApp.go:251 NWAbout()] : Networker Rest API URI: https://10.10.10.10:9090/nwrestapi/v2
[2022-10-12 11:48:03.941] [INFO] [apps] [restauth.go:68 func1()] : GET /irapi/v6/apps/6345b72b9a6dd20001dc9eae Start GetAppByID
[2022-10-12 11:48:03.943] [INFO] [apps] [restauth.go:102 func1()] : GET /irapi/v6/apps/6345b72b9a6dd20001dc9eae End GetAppByID Elapsed=1.208648ms
[2022-10-12 11:48:03.947] [INFO] [apps] [RecoverNetWorkerApp.go:142 RunNWWorkflow()] : Current Task Number: 2
[2022-10-12 11:48:03.947] [INFO] [apps] [RecoverNetWorkerApp.go:144 RunNWWorkflow()] : Task Name: 12- Before Networker Recovery
[2022-10-12 11:48:03.973] [INFO] [apps] [ddssh.go:693 CreateSSHClientConn()] : Establish SSH connection using credential
[2022-10-12 11:48:03.973] [INFO] [apps] [ddssh.go:716 CreateSSHClientConn()] : SSH connecting to 10.10.10.10:22 
[2022-10-12 11:48:04.168] [INFO] [apps] [ddssh.go:317 RunSSHCmd()] : Running: 10.10.10.10:22 cp -p /etc/hosts /etc/hosts_nw_recovery_1234561665568083
[2022-10-12 11:48:04.379] [ERROR] [apps] [ddssh.go:322 RunSSHCmd()] : Failed to run: 'cp -p /etc/hosts /etc/hosts_nw_recovery_1234561665568083' err: Process exited with status 1 stderr: cp: preserving permissions for '/etc/hosts_nw_recovery_1234561665568083': Permission denied
[2022-10-12 11:48:04.379] [ERROR] [apps] [appsUtils.go:147 BackupHostFile()] : Process exited with status 1 stderr: cp: preserving permissions for '/etc/hosts_nw_recovery_1234561665568083': Permission denied
 cp: preserving permissions for '/etc/hosts_nw_recovery_1234561665568083': Permission denied
[2022-10-12 11:48:04.379] [ERROR] [apps] [RecoverNetWorkerApp.go:294 NWPreRecovery()] : Unable to create backup copy of /etc/hosts on 10.10.10.10

Cygwin 根据 Cyber Recovery 安装指南中提到的说明在基于 Windows 的 NetWorker 服务器上正确安装和配置。

原因

如果 Cygwin 安装在标准 Windows 服务器上,则在手动运行相同的“cp -p /etc/hosts /etc/hosts_rec_123456”命令时观察到相同的问题。
Administrator@vm2836 ~
$ cp -p /etc/hosts /etc/hosts_nw_rec_1234
cp: preserving permissions for ‘/etc/hosts_nw_rec_1234’: Permission denied

Administrator@vm2836 ~
$ file /etc/hosts
/etc/hosts: symbolic link to /proc/cygdrive/c/Windows/System32/drivers/etc/hosts

Administrator@vm2836 ~
$ cp -p /proc/cygdrive/c/Windows/System32/drivers/etc/hosts /etc/hosts_rec_12345678
cp: preserving permissions for ‘/etc/hosts_rec_12345678’: Permission denied

唯一有效的做法是从“cp”命令中省略“-p”选项,该命令工作正常。“-p”选项用于在拷贝期间保留文件特征。
Administrator@vm2836 ~
$ cp /etc/hosts /etc/hosts_nw_rec_1234

Cyber Recovery 在执行 NetWorker 应用程序恢复时有两条代码路径,一条用于基于 Linux 的服务器,另一条用于基于 Windows 的服务器。在这种情况下,当恢复运行时,它显示应用程序类型是 Linux 而不是 Windows。  添加 NetWorker 应用程序时,它未获得将应用程序类型设置为 Windows 的正确信息,而是将其设置为 Linux,这就是备份 /etc/hosts 文件时使用 cp -p 的原因。在窗口的代码路径中,不使用“-p”选项。

解決方法

解决方案是删除现有的 NetWorker 应用程序并再次正确添加,以便操作系统类型显示为 Windows 而不是 Linux。

文書のプロパティ


影響を受ける製品

PowerProtect Cyber Recovery, NetWorker

製品

Cyber Recovery Series

最後に公開された日付

23 11月 2022

バージョン

1

文書の種類

Solution