[Openstack] [nova] Disk attachment consistency

Vishvananda Ishaya vishvananda at gmail.com
Wed Aug 15 03:05:28 UTC 2012


On Aug 14, 2012, at 7:55 PM, "Wangpan"<hzwangpan at corp.netease.com> wrote:

> How about using the pci address as the UUID of target devices in one VM?
> the pci address is generated by libvirt and we can see it in VM by cmd "ls -la /sys/block/",
> and it has no dependency with the kernel version, I can see it in 2.6.32*
> when an user attached a disk to VM, we find a free target dev such as vdd(the user doesn't need to assign one) to attach and return the pci address to user,
> the disk is consistent when user see it on horizon and in VM(by cmd "ls -la /sys/block/").
>  
> libvirt:<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
> ls -la /sys/block/:vda -> ../devices/pci-0000:00/0000:00:04.0/virtio1/block/vda

This is definitely another solution, although it seems less usable than the device serial number which can be an arbitrary string. If this works for xen though, that would be a plus.

Vish

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120814/a07d3583/attachment.html>


More information about the Openstack mailing list