Hi Experts,
I am trying to optimize a table on my mysql DB to reclaim disk space from DB to OS. Below is table details:-
+-----------------+----------------------------------------------+------------+-----------+------------+----------------+------------+
| table_schema | table_name | table_rows | Data (GB) | Index (GB) | Data Free (GB) | frag_ratio |
+-----------------+----------------------------------------------+------------+-----------+------------+----------------+------------+
| current | snapshots | 35507457 | 36.96 | 0.61 | 214.84 | 5.8130 |
Looking at the below output i can reclaim 214 GB space. But my MySql data directory has just around 52 GB space left.
So now if i run the pt-online-schema-change tool on the table would it create a temp historic.snapshots table of 36.96 GB, copying 35507457 rows into it? or would the temp table consume Data (GB) + Index (GB) + Data Free (GB) of space on the disk? I dont wont to run out of disk space while optimising and crash my MySql DB.
-Abhi