openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #15862
Re: [nova] Disk attachment consistency
On Aug 14, 2012, at 7:55 PM, "Wangpan"<hzwangpan@xxxxxxxxxxxxxxxx> 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
Follow ups
References