Re: lvmdevices - impossible to remove/cleanup device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
linux-lvm mailing list
linux-lvm@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/





[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux