跳转至主要内容
  • 快速、轻松地下订单
  • 查看订单并跟踪您的发货状态
  • 创建并访问您的产品列表
  • 使用“Company Administration”(公司管理),管理Dell EMC站点、产品和产品级联系人。

Dell EMC PowerPath for Linux 7.4 及次要版本安装和管理指南

RHEL 8、OL 8、SLES 主机和 LVM

在 RHEL8、OL 8、SLES 12 和 SLES 15 上,如果针对某个逻辑卷找到多个物理卷,那么这些卷既不能自动激活,也不能手动激活。

这是为了避免在物理卷 (PV) 可能属于不同的底层存储的情况下丢失数据。

在此类情况下,将显示类似以下内容的消息:
[root@hostname~] # vgchange -ay ppvg
  WARNING: Not using lvmetad because duplicate PVs were found.
  WARNING: Use multipath or vgimportclone to resolve duplicate PVs?
  WARNING: After duplicates are resolved, run "pvscan --cache" to enable lvmetad.
  /dev/sdb: open failed: No medium found
  /dev/sdc: open failed: No medium found
  WARNING: Not using device /dev/sdd2 for PV USHeZ8-rhWS-AuOY-LYL1-AYHZ-Aew4-xzPykl.
  WARNING: Not using device /dev/sdg2 for PV USHeZ8-rhWS-AuOY-LYL1-AYHZ-Aew4-xzPykl.
  WARNING: Not using device /dev/sdf for PV 5MwDqG-WUAO-ZJT3-B0wB-CHnB-e2w8-9UxVry.
  WARNING: Not using device /dev/sdh for PV 5MwDqG-WUAO-ZJT3-B0wB-CHnB-e2w8-9UxVry.
  WARNING: PV USHeZ8-rhWS-AuOY-LYL1-AYHZ-Aew4-xzPykl prefers device /dev/sda2 because device is used by LV.
  WARNING: PV USHeZ8-rhWS-AuOY-LYL1-AYHZ-Aew4-xzPykl prefers device /dev/sda2 because device is used by LV.
  WARNING: PV 5MwDqG-WUAO-ZJT3-B0wB-CHnB-e2w8-9UxVry prefers device /dev/sde because device is used by LV.
  WARNING: PV 5MwDqG-WUAO-ZJT3-B0wB-CHnB-e2w8-9UxVry prefers device /dev/sde because device is used by LV.
  Cannot activate LVs in VG ppvg while PVs appear on duplicate devices.
  o logical volume(s) in volume group "ppvg" now active
此行为由 RHEL 8、SLES 12 和 SLES 15 主机上 /etc/lvm/lvm.conf 文件中 devices{} 部分的以下参数造成:
# Configuration option devices/allow_changes_with_duplicate_pvs.
# Allow VG modification while a PV appears on multiple devices.
# When a PV appears on multiple devices, LVM attempts to choose the
# best device to use for the PV. If the devices represent the same
# underlying storage, the choice has minimal consequence. If the
# devices represent different underlying storage, the wrong choice
# can result in data loss if the VG is modified. Disabling this
# setting is the safest option because it prevents modifying a VG
# or activating LVs in it while a PV appears on multiple devices.
# Enabling this setting allows the VG to be used as usual even with
# uncertain devices.
allow_changes_with_duplicate_pvs = 0
注: 虽然默认情况下 SLES 12 上不显示此参数,但它仍然有效。这是一个操作系统/LVM 功能。

对此内容评级

准确性
有用性
易理解性
这篇文章对您有帮助吗?
0/3000 characters
  请提供评级(1-5星)。
  请提供评级(1-5星)。
  请提供评级(1-5星)。
  请选择这篇文章是否有帮助。
  注释中不得包含以下特殊字符:<>()\