All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Rajnoha <prajnoha@redhat.com>
To: roman.mashak@gmail.com
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] vgscan can't see LVM volumes on QEMU image
Date: Fri, 31 Oct 2014 15:18:29 +0100	[thread overview]
Message-ID: <54539A35.9050601@redhat.com> (raw)
In-Reply-To: <CANHNcP8vR-AJ7j9fkoWKLgSjX6Vgx4JiTCh=h4B=ftVRySag2w@mail.gmail.com>

On 10/31/2014 02:00 PM, Roman Mashak wrote:
> Hi,
> 
> 2014-10-31 5:48 GMT-04:00 Zdenek Kabelac <zkabelac@redhat.com>:
> [skip]
>>> I'm mostly sure noone has added support for  nbd devices to lvm2.
>>>
>>> look into  /etc/lvm/lvm.conf and  add in device section  something like:
>>>
>>> types = [ "nbd", 16 ]
>>>
>>
>>
>> Ahh ignore this please - I've been having wrong impression it's something
>> new for qcow, but nbd is standard already support network block device.
>>
>> So  what is the disk layout of your qcow ?
> It has two partitions, root and swap.
> 
>> It's purely whole PV ?
> 
>> Have you tried  to disable 'lvmetad' ?
> After I disabled the daemon, vgscan has found the volume group on the
> image and I could mount it;however I observed that after the vgscan
> has completed, lvmetad has started running back again (probably it
> doesn't hurt).

OK, so that's certainly a problem with pvscan not run from udev for
nbd devices at proper time - we still need to fix this - we haven't
covered this yet properly. It needs special treatment like we do
in /lib/udev/rules.d/69-dm-lvm-metad.rules for MD and loop devs.

The lvmetad running back - have you also disabled lvmetad in lvm.conf
(use_lvmetad=0)?


>> What is the lvm2 version in use here ?
> 
> Where can I find this information?
> 

Just run "lvm version"

-- 
Peter

  parent reply	other threads:[~2014-10-31 14:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-31  1:17 [linux-lvm] vgscan can't see LVM volumes on QEMU image Roman Mashak
2014-10-31  9:36 ` Zdenek Kabelac
2014-10-31  9:48   ` Zdenek Kabelac
2014-10-31 13:00     ` Roman Mashak
2014-10-31 14:13       ` Marian Csontos
2014-10-31 14:50         ` Roman Mashak
2014-10-31 14:18       ` Peter Rajnoha [this message]
2014-10-31 14:49         ` Roman Mashak

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=54539A35.9050601@redhat.com \
    --to=prajnoha@redhat.com \
    --cc=linux-lvm@redhat.com \
    --cc=roman.mashak@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.