我在CentOS 6.3 64位上运行Percona Mysql Server 5.6.14-56。
服务器有很多ram(96GB)和存储空间。 文件系统types:ext4
dev/sda6 ext4 1093623528 56576512 981494148 6% /mysqlstorage
我试图对42Mlogging(大约12.5GB(大约是索引的50%))的表进行一些改动,今天它向我展示了Table Is Full错误。
我检查了加载的variables,并innodb_data_file_path = ibdata1:12M:autoextend它显示在我的MySQLpipe理器。
这个数据库是活的,我宁愿修复这个问题没有(或最小)的停机时间。
文件每桌是活动ibdata1约3.9GB
从MYSQL LOGS:
2015-02-19 01:43:04 7fe921f4b700 InnoDB: Error: Write to file (merge) failed at offset 356515840. InnoDB: 1048576 bytes should have been written, only 1036288 were written. InnoDB: Operating system error number 28. InnoDB: Check that your OS and file system support files of this size. InnoDB: Check also that the disk is not full or a disk quota exceeded. InnoDB: Error number 28 means 'No space left on device'. InnoDB: Some operating system error numbers are described at InnoDB: http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
我怎么去做这个?
//编辑
既然问了这个问题,我知道在这个“交替”期间,我的/ tmp快速填充到100%。 一旦它达到100%,MySQL推出那个错误消息。
Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 50395844 1745156 46090688 4% / tmpfs 37105808 0 37105808 0% /dev/shm /dev/sda1 495844 37092 433152 8% /boot /dev/sda5 4080064 73740 3799068 2% /tmp /dev/sda6 1093623528 56576524 981494136 6% /storage
我怎样才能安全地增加/ tmp的大小没有任何停机时间?
表变更涉及/ tmp分区作为显式和隐式创build的临时表的中间存储。 你必须在足够大的分区上使用tmpdir。 将下一行添加到my.cnf
tmpdir = /path/to/the/mysqltmp