Given the Pacemaker/Corosync resource configuration described below, is it possible to add a resource in a specific position within the resource group? The configuration is CentOS 7.2 using the RHEL-supplied clustering add-ons.
This is a NFS server cluster, and Pacemaker handles the NFS daemon, volumes, exports, virtual-IP and NFS client notification.
When I want to add an NFS mount (exportfs resource) to the cluster setup, it ends up listed after the nfs-notify resource. This breaks the cluster in ugly ways.
I've found the rudimentary pcs resource order
commands, which seem to allow specifying resource X needs to run before resource Y, but that's not scalable.
Is this possible?
[root@zfs1-node1 ~]# pcs status
Cluster name: zfs1
Last updated: Tue Jan 5 04:09:11 2016 Last change: Tue Jan 5 04:08:15 2016 by root via cibadmin on zfs1-node1
Stack: corosync
Current DC: zfs1-node1 (version 1.1.13-10.el7-44eb2dd) - partition with quorum
2 nodes and 9 resources configured
Online: [ zfs1-node1 zfs1-node2 ]
Full list of resources:
fence-vol1 (stonith:fence_scsi): Started zfs1-node1
Resource Group: group-vol1
vol1 (ocf::heartbeat:ZFS): Started zfs1-node1
nfs-daemon (ocf::heartbeat:nfsserver): Started zfs1-node1
nfsinfo (ocf::heartbeat:exportfs): Started zfs1-node1
vol1-management (ocf::heartbeat:exportfs): Started zfs1-node1
vol1-ppro-mirrors (ocf::heartbeat:exportfs): Started zfs1-node1
vol1-staging (ocf::heartbeat:exportfs): Started zfs1-node1
ip-vol1 (ocf::heartbeat:IPaddr2): Started zfs1-node1
nfs-notify (ocf::heartbeat:nfsnotify): Started zfs1-node1
PCSD Status:
zfs1-node1: Online
zfs1-node2: Online
Daemon Status:
corosync: active/enabled
pacemaker: active/enabled
pcsd: active/enabled
crm
available (or could install it)?pcs
available, so I'm not sure, if this is possible as well, but usingcrm configure edit
you would be able to directly edit the config. Keep an eye for line-breaks (marked via "\" (correct formatting doesn't work)) and indentation etc. I've just searched ifpcs
provides such an feature as well, but didn't found anything so far.