In crm(8) I found this example:
crm configure<<EOF
#
# resources
#
primitive disk0 iscsi \
params portal=192.168.2.108:3260
target=iqn.2008-07.com.suse:disk0
primitive fs0 Filesystem \
params device=/dev/disk/by-label/disk0 directory=/disk0
fstype=ext3
primitive internal_ip IPaddr params ip=192.168.1.101
primitive apache apache \
params configfile=/disk0/etc/apache2/site0.conf
primitive apcfence stonith:apcsmart \
params ttydev=/dev/ttyS0 hostlist="node1 node2" \
op start timeout=60s
primitive pingd pingd \
params name=pingd dampen=5s multiplier=100 host_list="r1 r2"
#
# monitor apache and the UPS
#
monitor apache 60s:30s
monitor apcfence 120m:60s
#
# cluster layout
#
group internal_www \
disk0 fs0 internal_ip apache
clone fence apcfence \
meta globally-unique=false clone-max=2 clone-node-max=1
clone conn pingd \
meta globally-unique=false clone-max=2 clone-node-max=1
location node_pref internal_www \
rule 50: #uname eq node1 \
rule pingd: defined pingd
#
# cluster properties
#
property stonith-enabled=true
commit
EOF
Kind regards,
Ulrich Windl
> -----Original Message-----
> From: Users <[email protected]> On Behalf Of Windl, Ulrich
> Sent: Wednesday, February 5, 2025 8:44 AM
> To: Cluster Labs - All topics related to open-source clustering welcomed
> <[email protected]>
> Subject: [EXT] Re: [ClusterLabs] Re: Re: Re: Clarification on resource groups
>
> > -----Original Message-----
> > From: Users <[email protected]> On Behalf Of Eugen Block
> > Sent: Tuesday, February 4, 2025 3:42 PM
> > To: Cluster Labs - All topics related to open-source clustering welcomed
> > <[email protected]>
> > Subject: [EXT] Re: [ClusterLabs] Re: Re: Clarification on resource groups
> >
> > I just noticed that with the crm command, I'm not even able to create
> > resource groups. At least I don't see any options for that. I
>
> [Windl, Ulrich]
> That's odd; what about " group grp_name primitive_name... "?
>
>
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users
ClusterLabs home: https://www.clusterlabs.org/