InnoDB engine, when using page compression, heavily depend on file system sparse file support. InnoDB Page Compression.
It raises the question, how will mariabackup/xtrabackup handle those InooDB sparse files in
--backup
--prepare
--copy-back
operations?
Suppose we have total of 100G InnoDB tables,(ls
reports 100G but du
reports 0.5G).
The following questions raise:
When I
--backup
this with mariabackup/xtrabackup will the backup itself sparse in the target dir?When I
--prepare
this with mariabackup/xtrabackup will the result is sparse?When I
--copy-back
this with mariabackup/xtrabackup will the result is sparseSay mariabackup/xtrabackup does not handle sparse files. (tragedy). Can I correct this behavior with using
cp --sparse=always
instead ofmariabackup --copy-back ...
or this is not that simple...