linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: David Teigland <teigland@redhat.com>
To: lejeczek <peljasz@yahoo.co.uk>
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] lvmdevices - impossible to remove/cleanup device
Date: Thu, 3 Feb 2022 09:24:53 -0600	[thread overview]
Message-ID: <20220203152453.GA29864@redhat.com> (raw)
In-Reply-To: <6d7e7954-8123-76e1-b02a-61621c02148d@yahoo.co.uk>

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/


      reply	other threads:[~2022-02-03 15:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220203152453.GA29864@redhat.com \
    --to=teigland@redhat.com \
    --cc=linux-lvm@redhat.com \
    --cc=peljasz@yahoo.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).