Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

NetWorker:NVP vProxy FLR 使用者帳戶 (具備 Sudo 存取功能) 無法流覽 /root 目錄

Summary: 檔案層級還原 (FLR) 使用者可以安裝 FLR 代理程式並流覽大部分目錄;但是,他們無法從 NetWorker 管理主控台 (NMC) 還原精靈流覽 /root 目錄。

This article applies to   This article does not apply to 

Symptoms

  • vProxy 管理員已設定檔案層級還原 (FLR) 使用者帳戶以擁有 sudo 存取權。FLR 使用者可以安裝 FLR 代理程式,並流覽大部分目錄;但是,他們無法從 NetWorker 管理主控台 (NMC) 還原精靈流覽 /root 目錄。某些客戶的安全性原則不允許在 FLR 期間使用「root」,因此必須使用非root sudo 使用者帳戶。
  • 使用非root sudo 使用者帳戶時,FLR 無法流覽 Linux VM 上的某些目錄。
  • sudo 使用者帳戶已根據 《NetWorker VMware Integration Guide》進行設定。
  • FLR 是從 NMC 還原精靈執行。
  • FLR 掛接會使用 sudo 使用者帳戶成功,但在僅限根使用者的目錄上流覽作業失敗:
執行流覽作業時收到錯誤訊息的螢幕擷取畫面
圖 1:執行流覽作業時收到錯誤訊息的螢幕擷取畫面。
  • Error message:
Error while browsing 200: Error received from vProxy: "Could not get directory contents: Unable to retrieve file list from 1XX.1XX.9.1X2 (vm-1010) path '//root offset 0. Unable to perform FLR Agent operation 'browse_files' on VM 1XX.1XX.9.1X2 (vm-1010): Cannot open '/opt/emc/vproxysra/flr/mountpoints/FLR14XXXXX636/root/root': open /opt/emc/vproxyra/flr/mountpoints/FLR14XXXXX636/root/root: permission denied". 
  • vProxy 的 /opt/emc/vproxy/runtime/logs/vflrd/browse-*.log 報告:
YYYY-MM-SSTHH:mm:SSZ ERROR:  [@(#) Build number: ##] Could not get directory contents: Unable to retrieve file list from VM_IP (VM_MOREF) path '//root' offset 0.  Unable to perform FLR Agent operation 'browse_files' on VM VM_IP (VM_MOREF):  Cannot open '/opt/emc/vproxyra/flr/mountpoints/FLR14XXXXX636/lvm03-root/root': open /opt/emc/vproxyra/flr/mountpoints/FLR14XXXXX636/lvm03-root/root: permission denied

Cause

FLR「sudo user」無法存取目標 VM 上的掛接點,無提升:
[flradmin@lnx-client02]$ ls -l /opt/emc/vproxyra/flr/mountpoints/FLR14XXXXX636/lvm03-root/root
ls: cannot open directory '/opt/emc/vproxyra/flr/mountpoints/FLR14XXXXX636/lvm03-root/root': Permission denied
[flradmin@lnx-client02]$

使用者需要使用「sudo」來存取「受管制」目錄中的檔案:

[flradmin@lnx-client02]$ sudo ls -l /opt/emc/vproxyra/flr/mountpoints/FLR14XXXXX636/lvm03-root/root
total 8
-rw-------. 1 root root 1387 Jul  6 22:12 anaconda-ks.cfg
drwxr-xr-x. 2 root root    6 Jul  6 22:21 Desktop
drwxr-xr-x. 2 root root    6 Jul  6 22:21 Documents
drwxr-xr-x. 2 root root    6 Jul  6 22:21 Downloads
-rw-r--r--. 1 root root 1833 Jul  6 22:21 initial-setup-ks.cfg
drwxr-xr-x. 2 root root    6 Jul  6 22:21 Music
drwxr-xr-x. 2 root root    6 Jul  6 22:21 Pictures
drwxr-xr-x. 2 root root    6 Jul  6 22:21 Public
-r-xr-x---. 1 root root    0 Oct  3 09:13 somefile
drwxr-xr-x. 3 root root   59 Aug  7 16:12 swrepo
drwxr-xr-x. 2 root root    6 Jul  6 22:21 Templates
drwxr-xr-x. 2 root root    6 Jul  6 22:21 Videos
[flradmin@lnx-client02 root]$

NetWorker 管理主控台沒有 FLR sudo 存取使用者帳戶的許可權提升選項。使用者帳戶無法使用提升來流覽和存取掛接點中的檔案。

Resolution

有兩個可用的選項:

選項 1:

在受限制目錄中執行檔案 FLR (例如 /root) 時,請使用 sudo 使用者帳戶和「使用提升許可權執行」選項,從 NetWorker Web 使用者介面 (NWUI) 執行 FLR。

使用具「提升許可權」之 sudo 帳戶的 NWUI 螢幕截圖
圖 2:
使用具「提升許可權」之 sudo 帳戶的 NWUI 螢幕截圖

這可讓您流覽「受限制」目錄的內容,並使用 sudo 使用者帳戶執行還原:

受管制目錄內容的螢幕擷取畫面
圖 3:受管制目錄內容的螢幕擷取畫面

選項 2:

  1. 從 NetWorker 管理主控台啟動 FLR 掛載。
  2. 在流覽檔案系統之前,請先以 sudo 使用者帳戶身分登入目標虛擬機器。3.使用以下命令識別還原所需的檔案
  3. 使用以下命令識別需要還原的檔案 
/opt/emc/vproxyra/flr/mountpoints/
ls
  1. 使用以下命令,將檔案從暫時掛接點複製到目標 VM 檔案系統。
sudo cp

Products

NetWorker Family
Article Properties
Article Number: 000218459
Article Type: Solution
Last Modified: 27 Dec 2023
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.
Article Properties
Article Number: 000218459
Article Type: Solution
Last Modified: 27 Dec 2023
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.