[ClusterLabs] how to active Clustered Logical Volume Manager with CRM

Travis Bean tbean74 at gmail.com
Wed Jul 30 01:23:10 UTC 2025


On Tue, Jul 29, 2025 at 7:47 AM Travis Bean <tbean74 at gmail.com> wrote:
>
> On Mon, Jul 28, 2025 at 9:49 AM Travis Bean <tbean74 at gmail.com> wrote:
> >
> > In the past, I always used the following to activate the Distributed
> > Lock Manager (DLM) and Clustered Logical Volume Manager (CLVM):
> >
> > crm<<EOF.base
> >   configure
> >     property no-quorum-policy="ignore"
> >     rsc_defaults resource-stickiness="100"
> >     primitive controld ocf:pacemaker:controld \
> >       op monitor interval="60s" timeout="30s" \
> >       op start interval="0" timeout="90s" \
> >       op stop interval="0" timeout="100s"
> >     primitive clvmd ocf:lvm2:clvmd \
> >       op monitor interval="60s" timeout="30s" \
> >       op start interval="0" timeout="90s" \
> >       op stop interval="0" timeout="100s"
> >     group gr_base controld clvmd
> >     clone cl_base gr_base \
> >       meta interleave="true"
> >     commit
> > EOF.base
> >
> > Now I get an error when attempting to use this code. The error is as follows:
> >
> > ERROR: ocf:lvm2:clvmd: got no meta-data, does this RA exist?
> > ERROR: ocf:lvm2:clvmd: no such resource agent
>
> Is the following a suitable replacement for the above-mentioned
> deprecated code, or am I missing something?:
> crm<<EOF.base
>   configure
>     property no-quorum-policy="ignore"
>     rsc_defaults resource-stickiness="100"
>     primitive lvmlockd lvmlockd \
>       op monitor interval="60s" timeout="30s" \
>       op start interval="0" timeout="90s" \
>       op stop interval="0" timeout="100s"
>     primitive rsc-LVM LVM-activate \
>       params vgname=vg_system vg_access_mode=lvmlockd \
>       op monitor interval="60s" timeout="30s" \
>       op start interval="0" timeout="90s" \
>       op stop interval="0" timeout="100s"
>     group gr_base lvmlockd rsc-LVM
>     clone cl_base gr_base \
>       meta interleave="true"
>     commit
> EOF.base

The following code is what I was looking for. (I figured this out by
referencing the SUSE Linux Enterprise Server documentation, which has
the best examples using CRM):

# Activate Pacemaker's Distributed Lock Manager (DLM) and LVM locking
daemon (LVMLOCKD).
# DLM and LVMLOCKD must be activated together.
crm<<EOF.base
  configure
    property no-quorum-policy="ignore"
    rsc_defaults resource-stickiness="100"
    primitive controld ocf:pacemaker:controld \
      op monitor interval="60s" timeout="30s" \
      op start interval="0" timeout="90s" \
      op stop interval="0" timeout="100s"
    primitive lvmlockd lvmlockd \
      op monitor interval="60s" timeout="30s" \
      op start interval="0" timeout="90s" \
      op stop interval="0" timeout="100s"
    primitive LVM LVM-activate \
      params vgname=$(echo $LV_DRBD_PATH | cut -d "/" -f3)
vg_access_mode=lvmlockd activation_mode=shared \
      op monitor interval="60s" timeout="30s" \
      op start interval="0" timeout="90s" \
      op stop interval="0" timeout="100s"
    group gr_base controld lvmlockd LVM
    clone cl_base gr_base \
      meta interleave="true"
    commit
EOF.base


More information about the Users mailing list