在btrfs上使用mariadb的时候,需要注意关闭btrfs的Copy on Write (/var/lib/mysql目录)
如下:
┬─[tong@T7:~/Data/anthropoid]─[05:06:16 PM] ╰─>$ sudo lsattr -d /var/lib/mysql ------------------ /var/lib/mysql ┬─[tong@T7:~/Data/anthropoid]─[05:06:21 PM] ╰─>$ sudo chattr +C /var/lib/mysql/ ┬─[tong@T7:~/Data/anthropoid]─[05:10:14 PM] ╰─>$ sudo lsattr -d /var/lib/mysql ---------------C-- /var/lib/mysql ┬─[tong@T7:~/Data/anthropoid]─[05:10:16 PM] ╰─>$
参考:
https://wiki.archlinux.org/index.php/MySQL
https://wiki.archlinux.org/index.php/Btrfs#Copy-on-Write_.28CoW.29