We're experimenting with DRBD/pacemaker on top of an existing Debian 6 Encrypted RAID1 setup. We have one comparatively general and one comparatively specific question:
1) DRBD - backed vs. physical volume (general design option question)
We want to run a number of virtual servers in our DRBD/pacemaker setup. Having looked (and gotten great help on this forum - thank you DOC) at using LVM as a backing device, it seems if we want to spin up and tear down Logical Volumes on the fly, that we might be better off using LVM on top of DRBD as a physical volume. Does this sound right?
For our purposes, is "backing" or "physical volume" a better choice? Is there a design option that would allow us to have one drbd, put all of the logical volumes on that, which would then allow us to have a simpler drbd and pacemaker config? If we were to continue using LVM as a backing device, would you have one drbd for each logical volume and create our pacemaker CRMs accordingly?
Part of the complexity for us here is in addition to these issues of using Encrypted RAID1 (so we've been struggling with the disk/device maps in the drbd.conf).
2) LVM filter problem (more specific question)
In the "Configuring a DRBD resource as a Physical Volume" documentation, it has you adjust lvm.conf after you create a physical volume on your drbd: filter = [ "a|drbd.|", "r|.|" ], write_cache_state = 0, and then wipe the lvm cache.
Problem is, once we do this, we can't get any of the "pvscan, vgscan, lvscan" to work, and we'll need to volume group to be active to add our modify our next logical volume in the drbd. One set up documentation said you needed update the intrafs, which after doing we couldn't boot the machine anymore (it's a test machine, so just inconvenient).
Q: What are we doing wrong here? The documentation seems to suggest that after tweaking the "lvm.conf" that you should be able to use things like "vgchange -aey volumegroup" but all of our runs of this come back blank.
Is this the sort of thing where we need to temporarily update "lvm.conf" back to its original filter, add a logical volume, and then change the "lvm.conf back? FYI - if we boot off of the original filter, our drbd mounts but we get errors in the tty saying the encrypted device couldn't start...so we're assuming that's not the answer.
Help appreciated (happy to post any configs or logs as requested...just not sure what would be helpful)!