<p>We are trying to create MySQL pod with databases ready by cloning PVC of already running MySQL pod. <br/></p>
<p>Use case: we have a staging environment with database imported and want to create dynamic environments based off that  database structure and data. This approach should save us significant bootstrapping time (download and import of dump vs clone of the PV). However once we have target MySQL pod running with cloned PVC attached, we can't see any databases available in it. MySQL starts normally, recognises <code>/var/lib/mysql/mysql</code> directory and skips new db setup, however databases are not there.
Details:</p>
<ul>
<li>MySQL image: mysql:5.7</li>
<li>we use InnoDb</li>
<li>we scale-in source StatefulSet before taking clone (expecting source MySQL saves everything to disk)</li>
<li>PVC is mounted as:
<pre><code>volumeMounts:
  - name: mysql-data
    mountPath: /var/lib/mysql
</code></pre>
</li>
</ul>
<p>What are we missing?</p>

Anton Andrushchenko
<p>Apparently the issue was related to the AWS EBS CSI. Volume Cloning does not seem to work, however VolumeSnapshot feature might solve the issue.</p>
