linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] lvmdevices - impossible to remove/cleanup device
       [not found] <6d7e7954-8123-76e1-b02a-61621c02148d.ref@yahoo.co.uk>
@ 2022-02-03 10:20 ` lejeczek
  2022-02-03 15:24   ` David Teigland
  0 siblings, 1 reply; 2+ messages in thread
From: lejeczek @ 2022-02-03 10:20 UTC (permalink / raw)
  To: LVM general discussion and development

Hi guys.

What is the issue here?

-> $ lvs
   Devices file sys_wwid eui.6479a73050830000 PVID none last 
seen on /dev/nvme1n1p4 not found.
   LV   VG       Attr       LSize   Pool Origin Data%  Meta% 
Move Log Cpy%Sync Convert
   devs cs_whale -wi-ao---- 844.23g
   root cs_whale -wi-ao---- 40.00g
   swap cs_whale -wi-ao----   7.54g

-> $ 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.
5

-> $ lvmdevices --deldev /dev/nvme1n1 --devicesfile 
eui.6479a73050830000; echo $?
   Device not found in devices file.
5

many thanks, L.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] lvmdevices - impossible to remove/cleanup device
  2022-02-03 10:20 ` [linux-lvm] lvmdevices - impossible to remove/cleanup device lejeczek
@ 2022-02-03 15:24   ` David Teigland
  0 siblings, 0 replies; 2+ messages in thread
From: David Teigland @ 2022-02-03 15:24 UTC (permalink / raw)
  To: lejeczek; +Cc: LVM general discussion and development

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@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-03 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <6d7e7954-8123-76e1-b02a-61621c02148d.ref@yahoo.co.uk>
2022-02-03 10:20 ` [linux-lvm] lvmdevices - impossible to remove/cleanup device lejeczek
2022-02-03 15:24   ` David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).