Hard disk space full causes MySQL ibd file to be deleted prompt tablespace is missing for table ' db_rsk/xxx '

Source: Internet
Author: User

Early yesterday, the developer feedback said a test environment tablespace is missing for table ' Db_rsk/xxx ', the weekend just upgraded, specifically let the development back to check, said the script is definitely not the operation of drop table. DataDir under Check, found the frm file in the IBD file did not, Bing down, did not find similar anomalies. So first go back to Mysql.err search, half a day after the Friday afternoon found MySQL appeared an abnormal outage, said that the disk space is insufficient, look at the log the file is damaged, as follows:

2016-11-12 11:31:00 28443 [ERROR] Error writing file '/usr/local/percona-server-5.6.30-rel76.3-linux.x86_64.ssl101/ Data/tmp-demo-slow.log ' (Errno:1-No space left on device)
2016-11-12 11:40:00 7fc9c995c700 InnoDB:Error:Write to file./db_rsk/tb_rsk_compliancecalcservice.ibd failed at offset 0 .
innodb:65536 bytes should has been written, only 0 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 was not full or a disk quota exceeded.
Innodb:error number means ' No space left on device '.
Innodb:some Operating system error numbers is described at
Innodb:http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
2016-11-12 11:40:00 28443 [ERROR] innodb:truncate TABLE Db_rsk/tb_rsk_compliancecalcservice failed to create a new tables Pace
2016-11-12 11:40:00 7fc9c995c700 innodb:cannot calculate statistics for table "Db_rsk". " Tb_rsk_compliancecalcservice "because. ibd file is missing. For help, refer to HTTP://DEV.MYSQL.COM/DOC/REFMA
N/5.6/en/innodb-troubleshooting.html

Then the background has been reported IBD file is missing.

Find the problem, the solution is convenient, find a backup, the table is re-imported into the can.

That said, MySQL is much more tolerant than Oracle, and Oracle is often resetlogs when it recovers, and sometimes even resetlogs fails.

Hard disk space full causes MySQL ibd file to be deleted prompt tablespace is missing for table ' db_rsk/xxx '

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.