Stop and start an Informix instance inside a container to perform maintenance
tasks.
Procedure
-
Temporarily disable the live-ness probe:
oc annotate pod <Informix server pod name> --overwrite livenessprobe=disabled
-
Run the exec command on the Informix pod.
-
Run the onmode -kuy command and perform the maintenance tasks that you
want.
-
When the maintenance tasks are completed, restart Informix with the oninit
command.
-
Confirm that the Informix server is online:
-
Exit the pod.
-
Re-enable the live-ness probe:
oc annotate pod <Informix server pod name> --overwrite livenessprobe=enabled
Note: You might have to run these commands several times before the Informix server is shown as
online.