From: Marian Csontos <mcsontos@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>,
Peter Rajnoha <prajnoha@redhat.com>,
lvm@spatium.org
Subject: Re: [linux-lvm] No device found for PV but is actually fine
Date: Fri, 09 May 2014 14:16:16 +0200 [thread overview]
Message-ID: <536CC710.4030708@redhat.com> (raw)
In-Reply-To: <20140508104546.GA610@feynman.spatium.org>
On 05/08/2014 12:45 PM, Michal Svoboda wrote:
> Hi all,
>
> I have a weird issue:
>
> # pvs
> No device found for PV JszGc1-S16s-bsFQ-weAl-aj8W-d6y4-BeVqcN.
> PV VG Fmt Attr PSize PFree
> /dev/sdc data2 lvm2 a-- 298.09g 0
> /dev/sdd1 data lvm2 a-- 298.09g 0
>
> # pvscan
> No device found for PV JszGc1-S16s-bsFQ-weAl-aj8W-d6y4-BeVqcN.
> No device found for PV JszGc1-S16s-bsFQ-weAl-aj8W-d6y4-BeVqcN.
> PV /dev/sdc VG data2 lvm2 [298.09 GiB / 0 free]
> PV /dev/sdd1 VG data lvm2 [298.09 GiB / 0 free]
> Total: 2 [596.18 GiB] / in use: 2 [596.18 GiB] / in no VG: 0 [0 ]
>
> # pvscan --cache
> Found duplicate PV JszGc1S16sbsFQweAlaj8Wd6y4BeVqcN: using /dev/sde2 not /dev/md0
> Found duplicate PV JszGc1S16sbsFQweAlaj8Wd6y4BeVqcN: using /dev/sdf2 not /dev/sde2
Peter, is this an error in LVM filtering or is manual filter
modification required?
Michal(-e), I suggest modifying global_filter to accept only the devices
you want in the VG.
-- Martian
>
> The VG on the "missing" PV is called "system", but:
>
> # vgdisplay /dev/system
> No device found for PV JszGc1-S16s-bsFQ-weAl-aj8W-d6y4-BeVqcN.
> --- Volume group ---
> VG Name system
> System ID
> Format lvm2
> Metadata Areas 0
> Metadata Sequence No 28
> VG Access read/write
> VG Status resizable
> MAX LV 0
> Cur LV 8
> Open LV 8
> Max PV 0
> Cur PV 1
> Act PV 0
> VG Size 232.88 GiB
> PE Size 4.00 MiB
> Total PE 59616
> Alloc PE / Size 33792 / 132.00 GiB
> Free PE / Size 25824 / 100.88 GiB
> VG UUID fQoJ8p-BI3D-BcEH-BiQX-JJqf-p6TT-6KIoRt
>
> Actually all LVs on the "system" VG are present and accounted for. The
> LVs contain the root file system, and some virtual machine drives, all
> of which are running *fine* (and the system in fact boots up from the
> "missing" PV :). But I can't resize:
>
> # lvextend -L +16G /dev/system/vm-monitor
> No device found for PV JszGc1-S16s-bsFQ-weAl-aj8W-d6y4-BeVqcN.
> Cannot change VG system while PVs are missing.
> Consider vgreduce --removemissing.
>
> The "system" VG is situated on a md raid1. I think it all happened after
> I replaced all the drives of that md with mdadm --replace with bigger
> disks. But I can't be sure, because the system in fact works and except
> the inability to resize there are no problems.
>
> I have googled around a bit, but to no avail. Can someone help me
> diagnose and repair this?
>
> Version info:
>
> # pvs --version
> LVM version: 2.02.105(2) (2014-01-20)
> Library version: 1.02.84 (2014-01-20)
> Driver version: 4.27.0
>
> # cat /proc/version
> Linux version 3.14.0-4-ARCH (nobody@var-lib-archbuild-extra-x86_64-thomas) (gcc version 4.8.2 20140206 (prerelease) (GCC) ) #1 SMP PREEMPT Wed Apr 9 21:11:25 CEST 2014
>
>
> Thanks,
> Michal Svoboda
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
next prev parent reply other threads:[~2014-05-09 12:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-08 10:45 [linux-lvm] No device found for PV but is actually fine Michal Svoboda
2014-05-08 14:00 ` Jack Waterworth
2014-05-09 12:16 ` Marian Csontos [this message]
2014-05-09 12:40 ` Michal Svoboda
2014-05-09 14:13 ` Marian Csontos
2014-05-13 19:26 ` Michal Svoboda
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=536CC710.4030708@redhat.com \
--to=mcsontos@redhat.com \
--cc=linux-lvm@redhat.com \
--cc=lvm@spatium.org \
--cc=prajnoha@redhat.com \
/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).