I'm planning on moving all my VMs to shared storage, and I have a question about how to deal with a MySQL VM:
Currently the size of the VM image is 100GB, where most of the space is taken up by the MySQL data. I feel there are two options when moving to shared storage but I'm not sure which is the most common/recommended practice:
- Simply put the 100GB VM on shared storage
- Move the 95GB data directory to shared storage, Resize VM to 5GB and move to shared storage, then point the VM to the data directory
Does anyone have a view on this?
Data and index sizes as follows:
+----------------+----------------------+----------------------+----------------------+
| Storage Engine | Data Size | Index Size | Table Size |
+----------------+----------------------+----------------------+----------------------+
| MEMORY | 0.002 GB | 0.001 GB | 0.003 GB |
| FEDERATED | 2.198 GB | 0.000 GB | 2.198 GB |
| MyISAM | 2.258 GB | 0.337 GB | 2.595 GB |
| InnoDB | 47.249 GB | 30.568 GB | 77.817 GB |
| Total | 51.706 GB | 30.906 GB | 82.613 GB |
+----------------+----------------------+----------------------+----------------------+