[转帖]No space left on device问题的解决 _MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
2
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 1724 | 回复: 1   主题: [转帖]No space left on device问题的解决         上一篇   下一篇 
ad222888
注册用户
等级:新兵
经验:66
发帖:134
精华:0
注册:2016-9-25
状态:离线
发送短消息息给ad222888 加好友    发送短消息息给ad222888 发消息
发表于: IP:您无权察看 2019-8-29 9:22:03 | [全部帖] [楼主帖] 楼主

今天一个网友执行sql时出现了上面的错误,重复执行一次则成功:

搜索之后发现:

https://bugs.mysql.com/bug.php?id=67861
[10 Dec 2012 14:23] Erik Hoekstra
Description: Our newest installation of 5.6.8-rc1 on el6 (centos) has issues with connections.
The mysql client doesn't reconnect as expected. Since the issue can be discribed as well for mysql client as for the federated connections, we think this could just as well be the same issue.
[# mysql --help | grep 'reconnect'
reconnect TRUE
[# cat /etc/my.cnf
[MYSQL]
disable-auto-rehash
default-character-set = utf8
@mysql client
mysql> show table status \G
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql> show table status \G
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 17083871
The MySQL server has gone away is due to the inactive_timeout; the lost connection to MySQL server during query at first hand is the issue/bug?
For a Federated table this is quite the same; first call is a error (this time the Got an error reading communication packets ), second call ok.
mysql> select * from views_1_F;
ERROR 1158 (08S01): Got an error reading communication packets
mysql> select * from views_1_F;
Empty set (0.00 sec)
The issues can be conbined as well :-\
mysql> select * from views_1_F;
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql> select * from views_1_F;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 17105645
Current database: kliks_tracking
ERROR 1158 (08S01): Got an error reading communication packets
mysql> select * from views_1_F;
Empty set (0.00 sec)
Federated connection strings are ok, structure etc as well. How to repeat: Install fresh el6 on centos (6)
Install fresh 5.6.8-rc1 on 2 different machines
[11 Dec 2012 11:33] Erik Hoekstra
Just tested 5.5.28 for mysql client (connect localhost); all ok, no issues on-before-reconnect
Tested 5.5.28 client to 5.6.8-rc1 server : no issues on-before-reconnect
Tested federated table from 5.5.28 to 5.6.8-rc1 : no issues
[12 Dec 2012 8:42] Erik Hoekstra
Issue solved in 5.6.9
Probably in the line of :
Connection ID (thread ID) values greater than 32 bits can occur on some systems (such as busy or long-running 64-bit systems), causing these problems:
Connection IDs written to the general query log and slow query log were incorrect. This was true for logging to both files and tables.
The CONNECTION_ID() function could return a value with a data type too small for values larger than 32 bits.
The mysql_thread_id() and mysql_kill() C API functions did not handle ID values larger than 32 bits. This could result in killing the wrong thread; for example, if you invoked mysql_kill(mysql_thread_id()).
Connection IDs now are permitted to be 64-bit values when the server supports them (when built with 64-bit data types), which has these effects:
Connection IDs are logged correctly to the general query log and slow query log.
Note
This change involves a modification to the log tables, so after upgrading to this release, you must run mysql_upgrade and restart the server.
CONNECTION_ID() returns a data type appropriate for values larger than 32 bits.
mysql_thread_id() is unchanged; the client/server protocal has only 4 bytes for the ID value. This function returns an incorrect (truncated) value for connection IDs larger than 32 bits and should be avoided.
mysql_kill() still cannot handle values larger than 32 bits, but to guard against killing the wrong thread now returns an error in these cases:
If given an ID larger than 32 bits, mysql_kill() returns a CR_INVALID_CONN_HANDLE error.
After the server's internal thread ID counter reaches a value larger than 32 bits, it returns an ER_DATA_OUT_OF_RANGE error for any mysql_kill() invocation and mysql_kill() fails.
To avoid problems with mysql_thread_id() and mysql_kill(), do not use them. To get the connection ID, execute a SELECT CONNECTION_ID() query and retrieve the result. To kill a thread, execute a KILL statement.
(Bug #19806, Bug #11745768, Bug #65715, Bug #14236124, Bug #44728, Bug #11753308)
[12 Dec 2012 8:42] Erik Hoekstra
Issue solved
Probably in the line of:
Connection ID (thread ID) values greater than 32 bits can occur on some systems (such as busy or long-running 64-bit systems), causing these problems:
Connection IDs written to the general query log and slow query log were incorrect. This was true for logging to both files and tables.
The CONNECTION_ID() function could return a value with a data type too small for values larger than 32 bits.
The mysql_thread_id() and mysql_kill() C API functions did not handle ID values larger than 32 bits. This could result in killing the wrong thread; for example, if you invoked mysql_kill(mysql_thread_id()).
Connection IDs now are permitted to be 64-bit values when the server supports them (when built with 64-bit data types), which has these effects:
Connection IDs are logged correctly to the general query log and slow query log.
Note
This change involves a modification to the log tables, so after upgrading to this release, you must run mysql_upgrade and restart the server.
CONNECTION_ID() returns a data type appropriate for values larger than 32 bits.
mysql_thread_id() is unchanged; the client/server protocal has only 4 bytes for the ID value. This function returns an incorrect (truncated) value for connection IDs larger than 32 bits and should be avoided.
mysql_kill() still cannot handle values larger than 32 bits, but to guard against killing the wrong thread now returns an error in these cases:
If given an ID larger than 32 bits, mysql_kill() returns a CR_INVALID_CONN_HANDLE error.
After the server's internal thread ID counter reaches a value larger than 32 bits, it returns an ER_DATA_OUT_OF_RANGE error for any mysql_kill() invocation and mysql_kill() fails.
To avoid problems with mysql_thread_id() and mysql_kill(), do not use them. To get the connection ID, execute a SELECT CONNECTION_ID() query and retrieve the result. To kill a thread, execute a KILL statement.
(Bug #19806, Bug #11745768, Bug #65715, Bug #14236124, Bug #44728, Bug #11753308)
[13 Dec 2012 10:23] Erik Hoekstra
For federated tables the issue is still there
mysql> show table status;
+-----------+-----------+---------+------------+-------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-------------------+------------+----------------+--------------------------------------------+
| Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time | Update_time | Check_time | Collation | Checksum | Create_options | Comment |
+-----------+-----------+---------+------------+-------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-------------------+------------+----------------+--------------------------------------------+
| error | MyISAM | 10 | Dynamic | 19670 | 155 | 3057164 | 281474976710655 | 2840576 | 0 | NULL | 2011-02-08 12:44:09 | 2012-11-29 17:08:29 | 2012-11-30 11:40:48 | latin1_swedish_ci | 1212143160 | checksum=1 | |
| views_0 | MyISAM | 10 | Fixed | 0 | 0 | 0 | 6473924464345087 | 1024 | 0 | 1 | 2011-10-14 13:01:01 | 2012-11-29 17:08:29 | 2012-11-30 11:40:48 | latin1_swedish_ci | 0 | checksum=1 | |
| views_0_F | FEDERATED | 10 | | NULL | 0 | 0 | 0 | 0 | 0 | NULL | NULL | NULL | NULL | latin1_swedish_ci | NULL | | Got an error reading communication packets |
| views_1 | MyISAM | 10 | Fixed | 0 | 0 | 0 | 6473924464345087 | 1024 | 0 | 1 | 2011-10-14 12:01:01 | 2012-11-29 17:08:29 | 2012-11-30 11:40:48 | latin1_swedish_ci | 0 | checksum=1 | |
| views_1_F | FEDERATED | 10 | | NULL | 0 | 0 | 0 | 0 | 0 | NULL | NULL | NULL | NULL | latin1_swedish_ci | NULL | | Got an error reading communication packets |
+-----------+-----------+---------+------------+-------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-------------------+------------+----------------+--------------------------------------------+
5 rows in set, 2 warnings (0.01 sec)
mysql> show warnings;
+---------+------+--------------------------------------------+
| Level | Code | Message |
+---------+------+--------------------------------------------+
| Warning | 1158 | Got an error reading communication packets |
| Warning | 1158 | Got an error reading communication packets |
+---------+------+--------------------------------------------+
2 rows in set (0.00 sec)
mysql> show table status;
+-----------+-----------+---------+------------+-------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-------------------+------------+----------------+---------+
| Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time | Update_time | Check_time | Collation | Checksum | Create_options | Comment |
+-----------+-----------+---------+------------+-------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-------------------+------------+----------------+---------+
| error | MyISAM | 10 | Dynamic | 19670 | 155 | 3057164 | 281474976710655 | 2840576 | 0 | NULL | 2011-02-08 12:44:09 | 2012-11-29 17:08:29 | 2012-11-30 11:40:48 | latin1_swedish_ci | 1212143160 | checksum=1 | |
| views_0 | MyISAM | 10 | Fixed | 0 | 0 | 0 | 6473924464345087 | 1024 | 0 | 1 | 2011-10-14 13:01:01 | 2012-11-29 17:08:29 | 2012-11-30 11:40:48 | latin1_swedish_ci | 0 | checksum=1 | |
| views_0_F | FEDERATED | 10 | Fixed | 0 | 0 | 0 | 0 | 0 | 0 | 0 | NULL | 1970-01-01 01:33:32 | NULL | latin1_swedish_ci | NULL | | |
| views_1 | MyISAM | 10 | Fixed | 0 | 0 | 0 | 6473924464345087 | 1024 | 0 | 1 | 2011-10-14 12:01:01 | 2012-11-29 17:08:29 | 2012-11-30 11:40:48 | latin1_swedish_ci | 0 | checksum=1 | |
| views_1_F | FEDERATED | 10 | Fixed | 0 | 0 | 0 | 0 | 0 | 0 | 0 | NULL | 1970-01-01 01:33:32 | NULL | latin1_swedish_ci | NULL | | |
+-----------+-----------+---------+------------+-------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-------------------+------------+----------------+---------+
5 rows in set (0.00 sec)
mysql>
[13 Dec 2012 11:04] Erik Hoekstra
Federated issue hangs on wait_timeout on destination server
[13 Dec 2012 11:52] Erik Hoekstra
Bug #14874
[13 Dec 2012 20:29] Sveta Smirnova
Thank you for the report.
I agree: this is more likely duplicate of Bug #14874
[2 Jun 2014 10:05] Prasad Gowda
Whenever a query is issued against a federated table, a single/multiple [ depends on Number = table_open_cache_instances] will be created from the DB instance hosting the federated table to the DB instance hosting the main table. If those single/mutiple connection on the DB instance hosting main table expires because of [wait_timeout,connect_timeout] or if those gets terminated manually , any new queries on federated table will result in "ERROR 1158 (08S01) at line 1: Got an error reading communication packets" on the DB instance hosting the federated table.
Reason : Flushing of the federated table does not happen properly from the table_open_cache_instances ,
Solution : To avoid this, the temporary solution is to manually/forcefully flush only those federated tables once before every [wait_timeout,connect_timeout] seconds. In our case we put the flush command in event_scheduler since the number of federated tables were very less and we knew exactly which federated tables were rarely getting queried with gap of more than [wait_timeout,connect_timeout] seconds. This used to affect even our MEB backup when it used execute "flush tables with READ lock".
flush table ; -- executed every 4 hours
Since then, after putting the manual flush of federated tables with a frequence less than [wait_timeout,connect_timeout] , this issue has not showed up. Hope this helps.
Thanks
Prasad
Similar Posts:


wince6.0 编译报错:"error C2220: warning treated as error - no 'object' file generated"的解决办法 内容提要:wince6.0编译报错:"error C2220: warning treated as error - no 'object' file generated" 原因是:warning treated as error 意思是将警告当成错误,这是编译选项的问题,将警告级别设置得高导致的错误. 解决的办法是:将警告级别设置为低.这个我想大家都知道,但要如何设置呢?我找了一段时间,也没有很好的解决办法,网上也有很多人遇到这个问题,但真正解决的却没有,我是没有找到,或者就是有人解

git clone Error The requested URL returned error: 401 Unauthorized 用git clone项目的http路径时,出现了下面错误提示: 点击(此处)折叠或打开 Initialized empty Git repository in ...... error: The requested URL returned error: 401 Unauthorized while accessing fatal:HTTP request failed 由于Git服务于Git版本之间常存在依赖关系,因此解决的思路是升级Git,目前默认的yum安装的Git版本是1.7.1(Cen

OpenSSL 编译 ./crypto/cversion.c(105) : error C2220: warning treated as error - no 1.安装Perl: 2.下载OpenSSL并解压到e:/work/openssl: 3.启动VS command prompt控制台: 4.cd e:/work/openssl 5.perl Configure VC-WIN32 --prefix=d:/openssl 6.ms/do_ms.bat 7.修改ms/nt.mak和ms/ntdll.mak 去掉CFLAG定义中的/WX.(/WX表示treat warning as error,该开关会导致openssl无法编译) 8.执行编译 nma

remote: ERROR: committer email address remote: ERROR: does not match your use 原文:http://blog.csdn.net/npjocj/article/details/31735605 Q2." remote: ERROR: committer email address remote: ERROR: does not match your user account." [cpp] view plaincopyprint? remote: Processing changes: refs: 1, done remote: remote: ERROR: In

IIS7.5中 “HTTP Error 500.19 - Internal Server Error ” 解决 错误信息: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information Module : IIS Web Core Requested URL: http://localhost:80/ Notification: U

编译NIOS2出现如下错误提示:make:***[**.mk] Error 1 或者 make: *** [**.elf] Error 1 我的系统是WIN7,QuartusII和NIOS2的版本都是10.0,按照特权同学的<特权和你一起学NIOS2--第三章 流程实践案例--手把手第一个工程>操作,前面都很顺利,后来在Eclipse里建好了软件工程之后,编译(Build Project),出现如下错误提示:make:***[**.mk] Error 1 或者 make: *** [**.elf] Error 1. 看了很多论坛,很多网友都提了自己的解决思路,归纳起来,大概有几种解决办法: (1).Regenerate the B

CE6编译出错error C2220: warning treated as error - no &amp;amp;#39;object&amp;amp;#39; file 编译OS时遇到的问题: error C2220: warning treated as error - no object file generated 在编译wince的时候经常会碰到这样的提示,实际上很多时候比如定义的变量未使用等,都是无关紧要的,完全可以忽略,所以警告被当作错误对待是不行的. 消除方法:寻找 sources.cmn 1.bsp的位于bsp根目录下 2.public 源码中用到的sources.cmn位于public/common/下,删除WARNISERROR=1 这一行即

ERROR org.apache.zookeeper.ClientCnxn: Error while calling watcher ERROR org.apache.zookeeper.ClientCnxn: Error while calling watcher错误: zooKeeper 默认同一个ip地址连接到服务器的连接数最大是10,如果大于这个数会出现以上错误.解决方法:设置参数maxClientCnxns=0(即无限制)但是为了防止dos网络攻击还请根据实际情况设置.

Driver build Error &quot;error C2220: warning treated as error - no &#39;object&#39; file generated&quot; VS2012 build NT driver时,发现platform选择Vista,没有任何问题,选择Win7则出现 error C2220: warning treated as error - no 'object' file generated 横看竖看没有看到问题,后来搜索发现,原来是没有使用的参数,需要用这个宏来标记: UNREFERENCED_PARAMETER() 标记后,可以顺利build成功. 参考: https://social.msdn.microsoft.com/Foru


OE 发邮件 500 Error: bad syntax&#39;, Port: 25, ... Error Number: 0x800CCC79 1.当用outlook express 发送邮件时.outlook express 报出如下错误信息: The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was ' '. Subject 'Extend the passport' Account: 'ivy.dou' Server: 'm




赞(0)    操作        顶端 
联动大白
注册用户
等级:列兵
经验:91
发帖:0
精华:0
注册:2015-5-27
状态:离线
发送短消息息给联动大白 加好友    发送短消息息给联动大白 发消息
发表于: IP:您无权察看 2019-9-9 0:30:00 | [全部帖] [楼主帖] 2  楼

为了方便大家阅读,我对文章中错误号来解释一下吧!

Error Id: MYSQL:2013

Title: CR_SERVER_LOST

Description:

Lost connection to MySQL server during query


Error Id: 40:4

Title: 输入段的一个上级工序

Description:

输入段的一个上级工序


Error Id: 40:48

Title: 资源直至下达才被允许

Description:

资源直至下达才被允许


也许你已明白,但对一个人有用也是我存在的理由!^_^ By:持之以恒的大白

-- 来自: 北京联动北方科技有限公司



赞(0)    操作        顶端 
总帖数
2
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论