Comment 2 for bug 1692555

Revision history for this message
Filippo DiNoto (fdinoto) wrote :

I'm not sure what the goal of the lvm.conf.j2 is.

I need to prevent any disks attached to the host from being seen by lvm. That doesn't happen by default. I am having trouble understanding how ansible facts are going to provide anything relevant to the desired result.

Comment on line 17:
{# If there are no LVM devices present, allow all devices to be scanned #}

Why would anyone want all devices to be scanned? These are hypervisors. Nobody wants hypervisors to see LVM data on volumes attached to guests do they?

I can see a case for specifying some disks that are intended to be used by the hypervisor but any other disks should be ignored. But even in this case, the user is going to have to specify the UUID of those disks. There is no way ansible is going to be able to determine that.