[ovirt-users] lvm_dev_whitelist vdsm.conf option

Johannes Tiefenbacher jojo at linbit.com
Tue Feb 16 12:46:51 UTC 2016


On 2016-02-15 17:05, jojo wrote:
> On 2016-02-15 16:09, Adam Litke wrote:
>> On 11/02/16 17:22 +0100, Johannes Tiefenbacher wrote:
>>> Hi,
>>> I am wondering what the lvm_dev_whitelist vdsm.conf option is for?
>>>
>>> I had some issues whith vdsm switching off logical volumes that it 
>>> better should keep it's hands off.
>>>
>>> Could this option help to handle this?
>>
>> Yes this option should be exactly what you are looking for.  You
>> specify a comma separated list of glob expressions and vdsm will
>> instruct lvm to ignore all devices which are not matched by your list.
>>
>> See:
>> https://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/lvm_filters.html 
>>
>> for more background information on the LVM filters.
>>
>
> perfect, I will try this out.
> thanks a lot for your answer.
> all the best
> Jojo

Hi Adam,

I configured this now but I am not sure how I could confirm if I have 
the syntax correct.
I want vdsm to leave alone the VGs called ovirt and kvmvg.


lvm_dev_whitelist = [ "r|^/dev/kvmvg|", "r|^/dev/ovirt|" ]

I restarted vdsmd and did not get any error.

I also tried to write some bollocks to vdsm.conf, restarted and searched 
for an error in vdsm.log. surprisingly that also seems to work !?!

so the general question actually is: how can i make sure that vdsm.conf 
options are read correctly. where and when is this checked? what to look 
for in vdsm.log (or even other log files?)

thanks
Jojo
LINBIT VIE



More information about the Users mailing list