mysql-operator icon indicating copy to clipboard operation
mysql-operator copied to clipboard

Trying to mount a path from an existing NFS (Google Filestore) to /var/lib/mysql and conf dirs

Open codebard opened this issue 4 years ago • 1 comments

Im trying to launch a cluster by using Google Filestore as the MySQL datadir, conf and any other needed directories. The operator's doc provides examples for only PVC, hostpath and emptydir, but in CRDs it seems like specifying volumes and then mounting them to containers seem possible. CRDs also seem to specify a NFS option.

Is there a legitimate way to use a mounted volume (from nfs), or directly the nfs itself to mount MySQL data dir and other needed directories?

codebard avatar Oct 24 '21 05:10 codebard

It's not recommended to run MySQL on NFS (at least not on v3 which is the version Filestore provides). See https://dev.mysql.com/doc/refman/8.0/en/disk-issues.html#disk-issues-nfs.

You should use MySQL Operator with google cloud's persistent volumes and persistent volume provisioner.

calind avatar Oct 26 '21 09:10 calind