Comment 7 for bug 1801918

Revision history for this message
Jan Marquardt (jm-artfiles) wrote : Re: [Bug 1801918] Re: storage pool with persistent device names fails

Christian, thank you for pointing me in the right direction. Adding

filter = [ "a|/dev/disk/by-path/pci-*|" ]

to /etc/lvm/lvm.conf solved this issue. (There is no need to restart any
service after changing this file. ;))

You can find the thread on the mailing list under this link:
https://www.redhat.com/archives/libvirt-users/2018-October/msg00059.html

I'll add a response there soon.

Best Regards

Jan

Am 06.11.18 um 15:48 schrieb  Christian Ehrhardt :
> I now used:
> filter =[ "a|/dev/disk/by-path/virtio-pci-*|" ]
>
> Now it really is the same way on creation and query.
> $ sudo /sbin/pvcreate /dev/disk/by-path/virtio-pci-0000:00:07.0
> Physical volume "/dev/disk/by-path/virtio-pci-0000:00:07.0" successfully created.
> $ sudo pvdisplay
> "/dev/disk/by-path/virtio-pci-0000:00:07.0" is a new physical volume of "30.00 MiB"
> --- NEW Physical volume ---
> PV Name /dev/disk/by-path/virtio-pci-0000:00:07.0
>
> And with that finally
> $ sudo virsh pool-build testpool1
> Pool testpool1 built
>
> $ sudo virsh pool-start testpool1
> Pool testpool1 started
>
> I'd still be interested in the mail thread link.
> But for your case, if you want to use by-path with LVM you should adapt the lvm.conf to use (only) these.
>
> ** Changed in: libvirt (Ubuntu)
> Status: Incomplete => Invalid
>

--
Artfiles New Media GmbH | Zirkusweg 1 | 20359 Hamburg
Tel: 040 - 32 02 72 90 | Fax: 040 - 32 02 72 95
E-Mail: <email address hidden> | Web: http://www.artfiles.de
Geschäftsführer: Harald Oltmanns | Tim Evers
Eingetragen im Handelsregister Hamburg - HRB 81478