mysql挂载data到zfs分区

zpool create tank /dev/sdb1

rm -rf /var/lib/mysql

zfs create -o mountpoint=/var/lib/mysql tank/mysql

mysql_install_db

chcon -R -t mysqld_db_t /var/lib/mysql

/etc/my.conf
innodb_use_native_aio=false

mysql start

 

Oracle Solaris 管理:ZFS 文件系统
http://docs.oracle.com/cd/E26926_01/html/E25826/

ZFS in 30 minutes

SElinux 安全策略 引发的mysql数据库无法启动 http://blog.sina.com.cn/s/blog_53b13d950100w4yt.html
chcon -R -t mysqld_db_t /var/lib/mysql

使用tmpfs文件系统做MySQL tmpdir潜在的问题 http://www.linuxidc.com/Linux/2013-03/80696.htm
/etc/my.conf
innodb_use_native_aio=false

7 评论

  1. Pingback: Buy NBA 2K17 MT
  2. Pingback: albion online gold
  3. Pingback: UPAlbion.com
  4. Pingback: cheap fifa 17 coins
  5. Pingback: u4fifa
  6. Pingback: nba 2k16 mt

发表评论