[linux-lvm] Shared VG, Separate LVs

Eric Ren zren at suse.com
Thu Nov 23 13:46:31 UTC 2017


Hi,

>
> /"I noticed you didn't configure LVM resource agent to manage your 
> VG's (de)activation task,
> not sure if it can always work as expect, so have more exceptional 
> checking :)"
> /
>
>              Strangely the Pacemaker active-passive configuration 
> example shows VG controlled by Pacemaker, while the active-active one 
> does not. I have taken the active-active configuration for Pacemaker 
> and created 2 LVs, then instead of formatting it using the GFS2 
> clustered filesystem, I used normal XFS and made sure that it is 
> mounted only on one node at a time. (lv01 on node 2, lv02 on node2)
>
> https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/global_file_system_2/ch-clustsetup-gfs2
>
>              I can see the clustered VG and LVs as soon 
> ocf:heartbeat:clvm is started.
>
> Is there anything I am missing here?

Good. "clvm" will activate all VGs by default. If you have more than one 
VG in your cluster,  you may want to
activate/deactivate one VG for each group of "vg" and "xfs", then you 
may need to look at LVM for each VG:

https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/LVM

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20171123/f2d3f807/attachment.htm>


More information about the linux-lvm mailing list