什么方法备份几百GB数据,文件数量5百万左右?

分类:Linux,工作记 | 作者:凹凸曼 | 发表于2012/05/22 什么方法备份几百GB数据,文件数量5百万左右?已关闭评论

备份分为全局备份和增量备份

前段时间,做了全局备份,采用的是nfs+shell

常说共享方式,本地复制解决,

编写shell里我加入了,磁盘短信通知(超过自定义的磁盘的容量)

全局备份 几百GB数据时要备份1天多,开始担心,备份时间过长,

会对nfs提供其他服务,产生影响

目前观察来看没有对其他服务造成影响

增量备份 :前几天看到 数据同步算法觉得挺不错的,还是用一下unix下的rsync

如何解决 Writing to net ?

分类:Mysql,问题集 | 作者:凹凸曼 | 发表于2012/05/09 如何解决 Writing to net ?已关闭评论

centos6.2 下主从防火墙相应的端口已经开放了

最近查数据库老出问题,

发现新增的从数据, 在主从同步出现 Writing to net

如 下图

+——–+———–+———————+——-+————-+——-+—————————————————————-+——————+
| Id | User | Host | db | Command | Time | State | Info |
+——–+———–+———————+——-+————-+——-+—————————————————————-+——————+
| 1054 | ddd | ip1:38323 | NULL | Binlog Dump | 11874 | Has sent all binlog to slave; waiting for binlog to be updated | NULL |
| 1056 | ddd2| ip2:37068 | NULL | Binlog Dump | 11874 | Has sent all binlog to slave; waiting for binlog to be updated | NULL |
| 466120 | ddd3| ip3:52302 | NULL | Binlog Dump | 751 | Writing to net | NULL |
测试发现关闭防火墙问题就会消失!

后来再测了一下,用另外一台centos5.5 从数据库防火墙配置覆盖新增加的,结果还是一样的会出现 writing to net

两台丛数据区别 centos版本不同 iptables 版本不同

如何解决部署MySql主从遇到的部分问题?

分类:Mysql,问题集 | 作者:凹凸曼 | 发表于2012/05/07 如何解决部署MySql主从遇到的部分问题?已关闭评论

一、ERROR 29 (HY000): File ‘/log/mysql/slave_relaylog.index’ not found
解决办法:文件权限不对 chown mysql:mysql mysql-slow.log

二、ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log