<p dir="ltr"><br>
On 27/02/2016 9:44 am, "Eric Robinson" <<a href="mailto:eric.robinson@psmnv.com">eric.robinson@psmnv.com</a>> wrote:<br>
><br>
> In the example you provided…<br>
><br>
> ...<br>
> filter = [ "a|/dev/vd.*|", "a|/dev/drbd*|", "r|.*|" ]<br>
> write_cache_state = 0<br>
> volume_list = [ "rootvg", "vg1", "vg2" ]<br>
> ...<br>
><br>
> …it looks like you are accepting anything that begins with '/dev/vd.' or '/dev/drbd' and rejecting everything else. </p>
<p dir="ltr">That's correct.</p>
<p dir="ltr">Sorry for my dumb question, but if the goal is to filter out certain devices so LVM won't grab them before drbd does, wouldn't you want to reject them instead of accepting them?<br>
><br>
<br>
Your root vg is on sda so you have to let lvm read it. Your cluster vg's are on drbd devices so you tell lvm to read those too and NOT the underlying block devices sd[bcdef...]</p>
<p dir="ltr">> Here is what I have written on my system...<br>
><br>
> ...<br>
> filter = [ "a|/dev/sda*|", "a|/dev/drbd*|", "r|.*|" ]<br>
> write_cache_state = 0<br>
> volume_list = [ "vg00", "vg_drbd0", "vg_drbd1" ]<br>
> ...<br>
><br>
Looks good.</p>
<p dir="ltr">> I have not rebooted yet because I am not sure this is correct.<br>
> --<br>
> Eric Robinson<br>
></p>