Move mysql datadir to a sub-directory on mounted volume
Having the mysql datadir located at root of a mounted volume
(which happens with volume support enabled) causes problems for
backup/restore and resize. Mysql decides that the "lost+found"
directory, which the operating system puts at the root of each
file system, is actually a mysql "database".
This change causes the guest agent to move the datadir into a
sub-directory called "data" on the mounted volume.
Change-Id: Ica628012a5708374d73e5394e370da2514300939
Co-Authored-By: Simon Chang <email address hidden>
Closes-bug: 1370646
Reviewed: https:/ /review. openstack. org/147908 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=ad42de03d3c 3438fe00971d168 405075cf1d6b14
Committed: https:/
Submitter: Jenkins
Branch: master
commit ad42de03d3c3438 fe00971d1684050 75cf1d6b14
Author: Doug Shelley <email address hidden>
Date: Fri Jan 16 16:22:37 2015 +0000
Move mysql datadir to a sub-directory on mounted volume
Having the mysql datadir located at root of a mounted volume
(which happens with volume support enabled) causes problems for
backup/restore and resize. Mysql decides that the "lost+found"
directory, which the operating system puts at the root of each
file system, is actually a mysql "database".
This change causes the guest agent to move the datadir into a
sub-directory called "data" on the mounted volume.
Change-Id: Ica628012a57083 74d73e5394e370d a2514300939
Co-Authored-By: Simon Chang <email address hidden>
Closes-bug: 1370646