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

Adrian_F_Smith at Dell.com Adrian_F_Smith at Dell.com
Wed Oct 12 08:17:52 UTC 2011


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 at lists.launchpad.net [mailto:openstack-bounces+adrian_f_smith=dell.com at lists.launchpad.net] On Behalf Of Roman Sokolkov
Sent: Wednesday, October 12, 2011 6:09 AM
To: openstack at lists.launchpad.net
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 at gmail.com<mailto:rsokolkov at gmail.com>>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20111012/e854cf59/attachment.html>


More information about the Openstack mailing list