[ClusterLabs] a request for "oracle" resource agent
Oyvind Albrigtsen
oalbrigt at redhat.com
Thu Aug 22 06:58:39 UTC 2024
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/
More information about the Users
mailing list