This is again a case of please read all characters carefully :-)
definition from xml: (gdb) p def->source.devices[i].path $4 = 0x7f5204008e30 "/dev/disk/by-path/virtio-pci-0000:00:07.0"
compared against the array it built with the lvm tools (gdb) p thisSource->devices[0] $7 = {nfreeExtent = 0, freeExtents = 0x0, path = 0x7f51fc012b20 "/dev/disk/by-path/pci-0000:00:07.0", format = 0, part_separator = 0, geometry = {cylinders = 0, heads = 0, sectors = 0}}
That is different: /dev/disk/by-path/virtio-pci-0000:00:07.0 /dev/disk/by-path/pci-0000:00:07.0
Lets further improve the lvm config we have.
This is again a case of please read all characters carefully :-)
definition from xml: devices[ i].path by-path/ virtio- pci-0000: 00:07.0"
(gdb) p def->source.
$4 = 0x7f5204008e30 "/dev/disk/
compared against the array it built with the lvm tools >devices[ 0] by-path/ pci-0000: 00:07.0" , format = 0, part_separator = 0, geometry = {cylinders = 0, heads = 0, sectors = 0}}
(gdb) p thisSource-
$7 = {nfreeExtent = 0, freeExtents = 0x0, path = 0x7f51fc012b20 "/dev/disk/
That is different: by-path/ virtio- pci-0000: 00:07.0 by-path/ pci-0000: 00:07.0
/dev/disk/
/dev/disk/
Lets further improve the lvm config we have.