[ClusterLabs] resources management - redesign
Kristoffer Grönlund
kgronlund at suse.com
Mon Feb 6 08:01:44 EST 2017
Hi Florin,
I'm afraid I don't quite understand what it is that you are asking. You
can specify the resource ID when creating resources, and using resource
constraints, you can specify any order/colocation structure that you
need.
> 1. RG = rg1 + following resources: fs1, fs2,fs3, ocf:heartbeat[my custom
> systemd script]
What do you mean by ocf:heartbeat[my custom systemd script]? If you've
got your own service with a systemd service file and you don't need
custom monitoring, you can use "systemd:<name>" as the resource agent.
> Now, what solution exists ? export cib, edit cib and re-import cib;
> what if I will need a new fs:fs4, so what: export cib, create new
> resource inside exported cib and re-import it.
One way to make large changes to the configuration is to
1. Stop all resources
crm configure property stop-all-resources=true
2. Edit configuration to what you need
crm configure edit
3. Start all resources
crm configure property stop-all-resources=false
You might have some success in keeping services running during editing
by using maintenance-mode=true instead, but that takes a lot more
care and is difficult to recommend in the general case.
It is also possible to use the shadow CIB facitility to simulate changes
to the cluster before applying them:
http://clusterlabs.org/man/pacemaker/crm_simulate.8.html
There's some documentation on using Hawk with the simulator which is
already outdated but might be of some help in figuring out what is
possible:
https://hawk-guide.readthedocs.io/en/latest/simulator.html
Cheers,
Kristoffer
--
// Kristoffer Grönlund
// kgronlund at suse.com
More information about the Users
mailing list