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

Cyber Recovery: Vault'da Windows NetWorker Server uygulama kurtarma, "cp: preserving permissions for "/etc/hosts_nw_recovery_123456" hatasıyla başarısız oluyor: İzin reddedildi"

概要: Cyber Recovery: Vault'da Windows NetWorker Server uygulama kurtarma, "Failed to run: (Çalıştırılamadı: "cp -p /etc/hosts /etc/hosts_nw_recovery_123456" hatası: İşlem 1. durum ile çıkıldı: cp: "/etc/hosts_nw_recovery_123456" izinlerini koruma: İzin reddedildi' ...

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

現象

Windows'da çalışan bir NetWorker Sunucusu için uygulama kurtarma, Cyber Recovery 'apps.log'da bu hata yığınıyla başarısız oluyor.
 
[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 yükleme kılavuzunda belirtilen talimatlara göre Windows tabanlı NetWorker Sunucusuna doğru şekilde yüklenir ve yapılandırıldı.

原因

Cygwin standart bir Windows sunucusuna yüklüyse aynı "cp -p /etc/hosts /etc/hosts_rec_123456" komutunu manuel olarak çalıştırırken aynı sorun gözlemlendi.
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

Sorun olmayan tek şey "-p" seçeneğini "cp" komutundan çıkarmaktır. "-p" seçeneği, kopyalama sırasında dosya özelliklerini korumak için kullanılır.
Administrator@vm2836 ~
$ cp /etc/hosts /etc/hosts_nw_rec_1234

Cyber Recovery'nin, Biri Linux tabanlı sunucular ve biri Windows tabanlı sunucular için olmak için NetWorker uygulama kurtarması yaparken iki kod yolu vardır. Bu durumda, kurtarma çalışırken uygulama türü Windows yerine Linux'tı.  NetWorker uygulaması eklenmiştir. Uygulama türünü Windows'a ayarlamak için doğru bilgileri alamamış ve bunun yerine Linux olarak ayarlanmıştır ve bu nedenle /etc/hosts dosyası yedeklerken cp -p kullanılır. Windows'un kod yolundaki "-p" seçeneği kullanılamaz.

解決方法

Çözüm, mevcut NetWorker uygulamasını silmek ve işletim sistemi türünü Linux olarak değil Windows olarak görüntüley etmek için yeniden doğru şekilde eklemektir.

対象製品

PowerProtect Cyber Recovery, NetWorker

製品

Cyber Recovery Series