In case of virtio_scsi, you should use following:
/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_{{ disk_id[:-16] }}
Where disk_id[:-16], is id which you get from API, for example:
/api/disks/cdb62095-62ba-4137-8fa0-6375748d8868
so the result path is:
/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_cdb62095-62ba-4137-8
Which is symlink to sda, sdb, sdX...
On 10/30/18 12:01 PM, Markus Schaufler wrote:
Hi!
We are developing a tool for automated vm rollouts and struggle with the disk
ordering which seems to be completly random?
ie. when creating a vm with 3 disks the order on the virtio scsi bus is
different each time - which of course causes troubles when executing the next
steps.
Thanks for any hints on this!
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/[email protected]/message/SWKWTGERQAO4LKBA4UGGLEI3TEW7TAMN/
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/[email protected]/message/OPHGY2AH3UUTWP7OSB4UJJ6PKWVXFP3Z/