Reputation: 123
I am trying to deploy mysql
cluster on openshift
with one master and 2 slaves replicas this MySQL-Replication-Example.
I changed the image used in this json template by the latest image and changed the slave replica count to 2 at line 244. It deployed successfully initially.
After some time, I got following errors:
2020-05-07T10:34:57.974142Z 0 [ERROR] InnoDB: Unable to lock ./ibdata1 error: 11
2020-05-07T10:34:57.974208Z 0 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
As per my understanding and investigation, it works fine for single slave replica, but fails for two slave replicas which is a mandatory requirement for me. I cannot kill any slave process.
I am new to the openshift
.
What should I change so that it works fine for two slave replicas too?
Upvotes: 1
Views: 346
Reputation: 2314
The MYSQL Example has a Persistent Volume Claim with the Access Mode as type ReadWriteOnce
. You can change this to ReadWriteMany
. However, you should look at the Access Modes documentation for more information.
Upvotes: 1