vProtect:备份失败并显示“Cannot read from the device:/dev/sdX - 检查 vProtect 用户权限”

Summary: 备份失败并显示权限问题“Cannot read from the device /dev/sdX - check vProtect user privileges.”(无法从设备 /dev/sdX 读取 - 检查 vProtect 用户权限)。即使 vProtect 共享的权限和 vProtect 用户具有正确的权限,也会发生这种情况。

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

备份失败并显示权限问题“Cannot read from the device /dev/sdX - check vProtect user privileges.”(无法从设备 /dev/sdX 读取 - 检查 vProtect 用户权限)。即使 vProtect 共享的权限和 vProtect 用户具有正确的权限,也会发生这种情况。

当连接用于备份的磁盘未分离时,将生成此错误。这可能是由于虚拟机管理程序未根据断开连接请求或 LVM 筛选器未正确配置以及操作系统保留磁盘。

Cause

/etc/lvl/lvm.conf 文件配置不正确。没有配置 LVM 筛选器。

# cat lvm.conf | grep filter

# is used to drive LVM filtering like MD component detection, multipath
        # Configuration option devices/filter.
        # Run vgscan after changing the filter to regenerate the cache.
        # filter = [ "a|.*|" ]
        # filter = [ "r|/dev/cdrom|" ]
        # filter = [ "a|loop|", "r|.*|" ]
        # filter = [ "a|loop|", "r|/dev/hdc|", "a|/dev/ide|", "r|.*|" ]
        # filter = [ "a|^/dev/hda8$|", "r|.*|" ]
        # filter = [ "a|.*|" ]
        # Configuration option devices/global_filter.
        # Because devices/filter may be overridden from the command line, it is
        # not suitable for system-wide device filtering, e.g. udev.
        # Use global_filter to hide devices from these LVM system components.
        # The syntax is the same as devices/filter. Devices rejected by
        # global_filter are not opened by LVM.
        # global_filter = [ "a|.*|" ]
        # This is a quick way of filtering out block devices that are not
        # the LVs with device filters. Also, when this setting is enabled,
        # filtered), which can cause performance problems on systems with
        # an LV. The LVs are ignored using a built in device filter that
        # Configuration option activation/mlock_filter.
        # mlock_filter = [ "locale/locale-archive", "gconv/gconv-modules.cache" ]

它对于操作系统至关重要,所需的驱动器位于 lvm.conf 文件的 devices 部分的筛选器中。

Resolution

vProtect 节点附加的虚拟机磁盘可能是其自己的克隆(例如,如果节点是从模板部署的)。您必须在节点上配置 LVM,以便不会扫描连接磁盘的 LVM 卷。

  1. 在 /etc/lvm/lvm.conf in devices 部分中设置以下变量,以便 LVM 守护程序仅检测系统卷(在此示例中,SDA 磁盘具有两个分区:sda1 和 sda2):

在 /etc/lvm/lvm.conf 中设置变量
图 1:在 /etc/lvm/lvm.conf 中设置变量 

  1. 使用 vgscan 检查是否仍在检测到您的操作系统卷:
-vvv 

检查是否检测到操作系统卷
图 2:检查是否检测到操作系统卷。

  1. 重新启动
有关更多详细信息,请查看 vProtect Installation and User Guide 中的“vProtect Node for disk attachment backup mode”部分中的“LVM setup on vProtect Node for disk attachment backup mode”(vProtect 安装和用户指南

Affected Products

vProtect
Article Properties
Article Number: 000218735
Article Type: Solution
Last Modified: 31 Oct 2023
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.