Re: vgscan can't see LVM volumes on QEMU image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
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/




[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux