Translated message

A translation of this page exists in English.

在 RHEL 9 中,当有 IDTYPE=devname 设置时,LVM 会出现 "Devices file PVID <ID> last seen on /dev/sda not found" 信息

Solution In Progress - Updated -

Issue

  • 在运行任何 LVM 命令时,会出现错误:
[root@localhost ~]# pvs
  Devices file PVID xxxxxxxxxxxxxxxxxxxxxxxxxxxxjA2h last seen on /dev/sda not found.
  Devices file PVID xxxxxxxxxxxxxxxxxxxxxxxxxxxxAwAd last seen on /dev/sdb not found.
  Devices file PVID xxxxxxxxxxxxxxxxxxxxxxxxxxxxfRWY last seen on /dev/sda not found.
  Devices file PVID xxxxxxxxxxxxxxxxxxxxxxxxxxxxKDtC last seen on /dev/sda not found.
  • 于文件 /etc/lvm/devices/system.devices 中存在以下条目。
 # cat etc/lvm/devices/system.devices 
 # LVM uses devices listed in this file.
 # Created by LVM command vgs pid 1468 at Sun Jun 11 23:38:02 2023
 VERSION=1.1.10
 <b><font color="red">IDTYPE=devname</font></b> IDNAME=/dev/sda2 DEVNAME=/dev/sdb PVID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxjhW7
 IDTYPE=sys_wwid IDNAME=naa.6000xxxxxxxxxxxxxxxxxxxxxxxxxxxx DEVNAME=/dev/sdd PVID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxKUE9
 IDTYPE=sys_wwid IDNAME=naa.6000xxxxxxxxxxxxxxxxxxxxxxxxxxxx DEVNAME=/dev/sdc PVID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxvBOq
  • 或者,当执行 pvs 命令没有列出任何物理卷,/etc/lvm/devices/system.devices 的内容为空。

Environment

  • Red Hat Enterprise Linux 9
  • LVM2
    • /etc/lvm/lvm.conf 中有 use_devicesfile=1 (在 RHEL 9 中的默认值是 '1' : 启用)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content