[ClusterLabs] Resources within a Group
jorge.fabregas at gmail.com
Fri Aug 28 20:46:38 EDT 2015
On 08/28/2015 10:06 AM, Ken Gaillot wrote:
> I'm wondering if maybe you were using the term "group" generically? The
> other responses were referring to Pacemaker's explicit group syntax.
Yes, I was referring to Pacemaker's group syntax. I had this CRMish
primitive p-vg01 LVM \
params volgrpname=vg01 exclusive=true \
op monitor interval=10 timeout=30 \
op stop interval=0 timeout=30 \
op start interval=0 timeout=30
primitive p-filesystem Filesystem \
params directory="/oracle" fstype=ext3 device="/dev/vg01/lvol1" \
op monitor interval=20 timeout=40 \
op stop interval=0 timeout=60 \
op start interval=0 timeout=60
group g-oraclefs p-vg01 p-filesystem \
...and I wasn't able to start the group "g-oraclefs". Then I saw some
errors that it coulnd't activate the VG followed by mounting attempts
(where it mentioned that it coulnd't find /dev/vg01/lvol1"). That's
when I thought: "Why is it trying to start the 2nd resource when the
first one failed?"
I don't have the problem now but one of the errors was that I had set a
Target-Role of "Started" for the group itself but forgot that I had a
Target-Role of "Stopped" for both primitives (set at creation time).
This got me for a while! I finally figured it out when
starting/stopping via the crm shell that warned me. Thru the Hawk web
interface it wasn't clear.
More information about the Users