I try to make my MySQL pod persistent.
I always did this on training-environmnents where my DNS-server was on my
master and I had never issues.
Now my NFS is on another server.
My pv looks like this
{
"apiVersion": "v1",
"kind": "PersistentVolume",
"metadata": {
"name": "mysql-data"
},
"spec": {
"capacity": {
"storage": "20Gi"
},
"accessModes": [ "ReadWriteMany" ],
"nfs": {
"path": "/path/mysql",
"server": "server-IP"
}
}
}
I also created a pvc and edited the dc of my mysql to use it. Just like I
always did on my training environment.
After editting the dc there is a new deploy triggered but my pod is going in a
recreation loop.
2016-07-27 08:17:01 0 [Note] /opt/rh/rh-mysql56/root/usr/libexec/mysqld (mysqld
5.6.26) starting as process 18 ...2016-07-27 08:17:01 18 [Warning] Can't create
test file /var/lib/mysql/data/mysql-2-edp7q.lower-test2016-07-27 08:17:01 18
[Warning] Can't create test file
/var/lib/mysql/data/mysql-2-edp7q.lower-test[10:17] 2016-07-27 08:17:01
7fd2befc3840 InnoDB: Operating system error number 13 in a file
operation.InnoDB: The error means mysqld does not have the access rights
toInnoDB: the directory.2016-07-27 08:17:01 18 [ERROR] InnoDB: Creating or
opening ./ibdata1 failed!
Does someone know what could be the issue?
When I create a directory /mnt on my node-host of OS I'm able to mount to my
NFS storage server. So why isn't this working for my mysql container?
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users