[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Running commands

Hi Rodolfo,

The Persistent Volume point to "/srv/vol1"

My target was:
- Create the directory /var/mysql/${SERVICE}
- Configure the MYSQL_DATADIR in /var/mysql/${SERVICE}
- Mount the one volume in /var/mysql/

Then, one volume store the different MYSQL_DATADIR and I can identify them. So I wanted to change the MYSQL_DATADIR

With this configuration the path is different in each case and they won't get mounted in /var/mysql/data in every container like you say to me.


El jue., 7 ene. 2016 a las 13:48, Rodolfo Carvalho (<rcarvalh redhat com>) escribió:
On Thu, Jan 7, 2016 at 12:49 PM, Alejandro Nieto Boza <ale90nb gmail com> wrote:
Hi Rodolfo, 

My idea was exactly using persistent storage and having the following directory tree:

Exporting a NFS volume and create MYSQL_DATADIR of multiple containers inside the one volume and each container would use a different data dir like you said, but it seems will just complicate matters.

Those are the paths in your NFS share, however, in the containers the path should always be the same -- just stick with the defaults.

In the Persistent Volume and Persistent Volume Claim definitions, you will point to those NFS paths, but they will get mounted in /var/mysql/data in every container.

Rodolfo Carvalho

OpenShift Developer Experience 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]