[Pacemaker] Do I need a resource for a clustered LVM volume group or not?

Florian Haas florian.haas at linbit.com
Wed Dec 8 15:01:54 EST 2010


On 12/08/2010 04:54 PM, Mike Diehn wrote:
> 
> Hello all.
> 
> First post.  :-)
> 
> I'm building a cluster for an Apache served subversion server.

Why? Well I presume you must, otherwise whoever you're building this
fore would have long switched to git or Mercurial.

> I want
> to use OCFS2 on an LVM2 logical volume.

Why why why???

> The PV for the volume group is
> a SAN LAN connected to the nodes with fiber channel.
> 
> Some examples I found showed configuring a resource with
> ocf:heartbeat:LVM, presumably to active the volume group?  Do I need
> that?  I ask because....
> 
> Once the cluster gets dlm, clvm and o2cb running on a node, I can always
> see the volume group on that node with vgscan.  Before dlm and clvm is
> running, I can't - which makes perfect sense.

Are you trying to build simple failover, and you have no requirements
for load balancing at all? Forget cLVM or any cluster filesystem. Use
regular LVM and ext3 or XFS or whathaveyou. The build a resource group
with ocf:heartbeat:LVM, ocf:heartbeat:Filesystem, ocf:heartbeat:IPaddr2,
and ocf:heartbeat:apache. Make sure you configure STONITH so you can
arbitrate access to shared storage.

Cheers,
Florian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20101208/ae648464/attachment-0003.sig>


More information about the Pacemaker mailing list