Comment # 21 on bug 970439 from
(In reply to Yan Gao from comment #9)
> (In reply to Kristoffer Gronlund from comment #7)
> > To be clear:
> > 
> > ocf:heartbeat:clvm should be modified to check if use_lvmetad is set, and if
> > so generate an error.
> Hmm, I see the following in ocf:heartbeat:clvm:
> 
>     # autoset locking type to clusted when lvmconf tool is available
>     if [ -x "$LVMCONF"  ]; then
>             $LVMCONF --enable-cluster > /dev/null 2>&1
>     fi
> 
> According to the manual of lvmconf:
> 
>     --enable-cluster
>         Set locking_type to the default clustered type on this system.  Also
> disable lvmetad use as it is not yet supported in clustered environment.
> 
> So, it doesn't actually work? or only under some conditions?
> 
> > 
> > Should ocf:heartbeat:LVM also check this? I guess not?
> I don't think so.

It turns out that on SLES, LVMCONF is never called by ocf:heartbeat:clvm,
because we install lvmconf to /sbin and not /usr/sbin so the resource agent
can't find it.

The fix would be either to patch the resource agent so it looks in the right
location, or to move lvmconf to /usr/sbin.


You are receiving this mail because: