On 16/02/16 13:46 +0100, Johannes Tiefenbacher wrote:
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|" ]
This is a whitelist not a blacklist. You should only specify the
devices you want to allow. Sorry if that's not ideal for you here but
it's the way the code currently works. Please do not use the r||
syntax. Just use a comma separated string of wildcards that you want
to allow. For example:
lvm_dev_whitelist = "^/dev/fast*,^/dev/furious*"
You should be able to check the vdsm log and see the lvm queries will
include your whitelist converted into the format expected by the lvm
commands.
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
--
Adam Litke