Feel free to make a Pull Request against the repository, and I can give
some feedback, and we can either merge it if there's others wanting
the feature, or close it if not (it will still be available so people
can search for oracle in the Pull Requests section and find the code).


Oyvind

On 22/08/24 08:58 GMT, Oyvind Albrigtsen wrote:
I cant remember anyone requesting this, but it should be fairly simple
to implement.

You can add a "mode" parameter to the metadata with
OCF_RESKEY_mode_default="running", and add an expected_status
variable in instance_live() that will be OPEN if it's set to running,
and the expected state for standby when it's set to standby, and
replace the 3 OPEN's in the function with $expected state.


Oyvind

On 19/08/24 17:10 GMT, Fabrizio Ermini wrote:
Hi!
I am trying to set up an oracle instance managed by a pacemaker cluster.
It's a task that I have performed several times with no issue, but in this
particular case I have a non standard requirement: since the instance
sometimes would take the role of a standby database, the "start" actions
should NOT open the DB instance, just mount it.

Are you aware of a way to make this happen? I thought initially to just
comment out the "open" command in the resource script, but of course this
would not work since the monitor operations would report the unopened
instance as an error.

In any case let me know if you could be interested to add this as a feature
if I manage to successfully make it work.

Thanks for your time and effort, and best regards
Fabrizio

_______________________________________________
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/

Reply via email to