メイン コンテンツに進む
  • すばやく簡単にご注文が可能
  • 注文内容の表示、配送状況をトラック
  • 会員限定の特典や割引のご利用
  • 製品リストの作成とアクセスが可能

사이버 복구: 볼트에서 Windows NetWorker Server 애플리케이션 복구가 실패하고 'cp: '/etc/hosts_nw_recovery_123456'에 대한 사용 권한 보존: 사용 권한이 거부됨"

概要: 사이버 복구: 볼트에서 Windows NetWorker Server 애플리케이션 복구가 실패하고 'Failed to run: 'cp -p /etc/hosts /etc/hosts_nw_recovery_123456' err: 상태 1 stderr: cp: '/etc/hosts_nw_recovery_123456'에 대한 사용 권한 보존으로 프로세스가 종료되었습니다. 사용 권한이 거부됨' ...

この記事は次に適用されます:   この記事は次には適用されません: 

現象

Windows에서 실행되는 NetWorker Server에 대한 애플리케이션 복구가 실패하고 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 Server에 올바르게 설치 및 구성됩니다.

原因

표준 Windows 서버에 Cygwin이 설치된 경우 동일한 '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 기반 서버용으로 두 가지 코드 경로가 있습니다. 이 경우 복구가 실행되었을 때 애플리케이션 유형이 Windows 대신 Linux인 것으로 나타났습니다.  NetWorker 애플리케이션이 추가되었을 때 앱 유형을 Windows로 설정하는 올바른 정보를 얻지 못했습니다. 대신 Linux로 설정되었기 때문에 /etc/hosts 파일을 백업할 때 cp -p가 사용됩니다. 창의 코드 경로에서 '-p' 옵션은 사용되지 않습니다.

解決方法

이 솔루션은 기존 NetWorker 애플리케이션을 삭제하고 다시 올바르게 추가하여 운영 체제 유형이 Linux가 아닌 Windows로 표시되도록 하는 것입니다.

対象製品

PowerProtect Cyber Recovery, NetWorker

製品

Cyber Recovery Series