[linux-lvm] lvmdevices - impossible to remove/cleanup device

David Teigland teigland at redhat.com
Thu Feb 3 15:24:53 UTC 2022


On Thu, Feb 03, 2022 at 10:20:41AM +0000, lejeczek wrote:
> Hi guys.
> 
> What is the issue here?
> 
> -> $ lvs
>   Devices file sys_wwid eui.6479a73050830000 PVID none last seen on
> /dev/nvme1n1p4 not found.

That device was added to the lvm devices file at some point (see
/etc/lvm/devices/system.devices), but the device no longer exists.
If that device won't be reattached or if you don't want lvm to use it,
then it should be removed from system.devices.

> -> $ lvmdevices --deldev /dev/nvme1n1 ; echo $?
>   Devices file sys_wwid eui.6479a73050830000 PVID none last seen on
> /dev/nvme1n1p4 not found.
>   Device not found in devices file.

That's the right idea, but two issues,

1. lvmdevices --deldev is missing the ability to remove a missing device
   by name (or by wwid), and that will be fixed.
2. when that's fixed, you'd need to use the name /dev/nvme1n1p4

Until that's fixed, edit system.devices and remove that line.

Dave




More information about the linux-lvm mailing list