← Back to team overview

openstack team mailing list archive

Re: [OPENSTACK] Does diablo support lvm block devices instead files for VMs?

 

It supports iSCSI volumes which employ the use of LVM, http://docs.openstack.org/diablo/openstack-compute/admin/content/managing-volumes.html.

The template file you reference is not the full picture. When you mount a volume a new snippet of XML is generated and passed to libvirt. The XML would look something like this,

<disk type='block'>
   <driver name='qemu' type='raw'/>
   <source dev='/dev/mapper/nova--volumes-volume--0000000a'/>
   <target dev='/dev/vdb' bus='virtio'/>
</disk>

You can find the details in the code here, https://github.com/openstack/nova/blob/2011.3/nova/virt/libvirt/connection.py#L344

From: openstack-bounces+adrian_f_smith=dell.com@xxxxxxxxxxxxxxxxxxx [mailto:openstack-bounces+adrian_f_smith=dell.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of Roman Sokolkov
Sent: Wednesday, October 12, 2011 6:09 AM
To: openstack@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Openstack] [OPENSTACK] Does diablo support lvm block devices instead files for VMs?

Hi!

Could someone answer for my question?

2011/10/7 Roman Sokolkov <rsokolkov@xxxxxxxxx<mailto:rsokolkov@xxxxxxxxx>>
Hi! For my research I think Diablo doesn't support LVM block devices for VMs, does it?

In /usr/share/nova/libvirt.xml.template only file supports for main disk device. I am right?

    #if $getVar('rescue', False)
        <disk type='file'>
            <driver type='${driver_type}'/>
            <source file='${basepath}/disk.rescue'/>
            <target dev='${disk_prefix}a' bus='${disk_bus}'/>
        </disk>
        <disk type='file'>
            <driver type='${driver_type}'/>
            <source file='${basepath}/disk'/>
            <target dev='${disk_prefix}b' bus='${disk_bus}'/>
        </disk>
    #else
        #if not ($getVar('ebs_root', False))
        <disk type='file'>
            <driver type='${driver_type}'/>
            <source file='${basepath}/disk'/>
            <target dev='${root_device}' bus='${disk_bus}'/>
        </disk>
        #end if

Thanks



--
Regards, Roman Sokolkov

References