From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [10.34.130.202] (dhcp130-202.brq.redhat.com [10.34.130.202]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9V9n1PJ005676 for ; Fri, 31 Oct 2014 05:49:01 -0400 Message-ID: <54535B0B.50700@redhat.com> Date: Fri, 31 Oct 2014 10:48:59 +0100 From: Zdenek Kabelac MIME-Version: 1.0 References: <54535811.3050906@redhat.com> In-Reply-To: <54535811.3050906@redhat.com> Content-Transfer-Encoding: 7bit Subject: Re: [linux-lvm] vgscan can't see LVM volumes on QEMU image Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: LVM general discussion and development Dne 31.10.2014 v 10:36 Zdenek Kabelac napsal(a): > Dne 31.10.2014 v 02:17 Roman Mashak napsal(a): >> Hello, >> >> I want to mount QEMU image of qcow2 type on Fedora 20 host. Here is >> what commands I executed, according to the advices at >> http://docs.openstack.org/image-guide/content/ch_modifying_images.html: >> >> % modprobe nbd max_part=16 >> % qemu-nbd -c /dev/nbd0 image.qcow2 >> % partprobe /dev/nbd0 > > > 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's purely whole PV ? Have you tried to disable 'lvmetad' ? What is the lvm2 version in use here ? Zdenek