ざ・わーるど@はてな

気が向いた時に更新する雑記です

サーバー障害

サーバー障害が全然改善されない。
サイトにアクセスしたら表示されないのでPutty立ち上げたけど、サーバーにつながらない。
データセンターに再起動の依頼をしてもらうようにメール。毎日すいません。


とりあえずsyslogみて落ちる寸前あたりを調べてみたけど、qmailのログくらいしか残ってない。

Feb 24 01:15:34 localhost qmail: 1172247334.795202 end msg 2754406
Feb 24 01:17:01 localhost /USR/SBIN/CRON[14796]: (root) CMD ( run-parts --report /etc/cron.hourly)
Feb 24 01:20:01 localhost /USR/SBIN/CRON[14921]: (root) CMD ([ -x /etc/munin/plugins/apt ] && /etc/munin/plugins/apt update 7200 12 >/dev/null)
Feb 24 01:25:02 localhost /USR/SBIN/CRON[15326]: (root) CMD ([ -x /etc/munin/plugins/apt ] && /etc/munin/plugins/apt update 7200 12 >/dev/null)
Feb 24 01:30:02 localhost /USR/SBIN/CRON[15787]: (root) CMD ([ -x /etc/munin/plugins/apt ] && /etc/munin/plugins/apt update 7200 12 >/dev/null)
Feb 24 01:31:48 localhost qmail: 1172248308.473966 new msg 2754444
Feb 24 01:31:48 localhost qmail: 1172248308.474047 info msg 2754444: bytes 11495 from qp 16080 uid 64011
Feb 24 01:31:48 localhost qmail: 1172248308.587158 starting delivery 187: msg 2754444 to local negitaku.org-guest@negitaku.org
Feb 24 01:31:48 localhost qmail: 1172248308.587216 status: local 1/10 remote 0/20
Feb 24 01:31:48 localhost qmail: 1172248308.593986 delivery 187: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
Feb 24 01:31:48 localhost qmail: 1172248308.594071 status: local 0/10 remote 0/20
Feb 24 01:31:48 localhost qmail: 1172248308.739100 bounce msg 2754444 qp 16083
Feb 24 01:31:48 localhost qmail: 1172248308.739181 end msg 2754444
Feb 24 01:31:48 localhost qmail: 1172248308.739854 new msg 2754445
Feb 24 01:31:48 localhost qmail: 1172248308.739891 info msg 2754445: bytes 12038 from <> qp 16083 uid 64012
Feb 24 01:31:48 localhost qmail: 1172248308.858783 starting delivery 188: msg 2754445 to remote films@paraconct.com
Feb 24 01:31:48 localhost qmail: 1172248308.858861 status: local 0/10 remote 1/20
Feb 24 01:31:53 localhost qmail: 1172248313.559566 delivery 188: success: 204.198.250.3_accepted_message./Remote_host_said:_250_2.6.0_Message_Accepted/
Feb 24 01:31:53 localhost qmail: 1172248313.559654 status: local 0/10 remote 0/20
Feb 24 01:31:53 localhost qmail: 1172248313.559671 end msg 2754445
Feb 24 12:42:20 localhost syslogd 1.4.1#17: restart.
Feb 24 12:42:20 localhost kernel: klogd 1.4.1#17, log source = /proc/kmsg started.

qmailのせいでサーバーが落ちたりするものだろうか。


サーバー監視ツールでグラフをみていたら、落ちる寸前でMySQLのクエリー発行が通常の倍くらいになってた。

MySQL


とりあえず、頻繁にアクセスしていてキャッシュ化したほうがよさそうなところに手を入れてみた。


あとMySQLであやしいのは、以下のようなWARNINGがたまに出ているところかな。
下のヤツはMovableTypeのテーブル。この他にも、自分で作ったテーブルでもエラーがでてる。

Feb 24 15:56:11 localhost /etc/mysql/debian-start[1039]: WARNING: mysqlcheck has found corrupt tables
Feb 24 15:56:11 localhost /etc/mysql/debian-start[1039]: ra-men.mt_blog
Feb 24 15:56:11 localhost /etc/mysql/debian-start[1039]: warning : 1 client is using or hasn't closed the table properly
Feb 24 15:56:11 localhost /etc/mysql/debian-start[1039]: ra-men.mt_log
Feb 24 15:56:11 localhost /etc/mysql/debian-start[1039]: warning : 1 client is using or hasn't closed the table properly
Feb 24 15:56:11 localhost /etc/mysql/debian-start[1039]: ra-men.mt_session
Feb 24 15:56:11 localhost /etc/mysql/debian-start[1039]: warning : 1 client is using or hasn't closed the table properly
Feb 24 15:56:11 localhost /etc/mysql/debian-start[1039]: ra-men.mt_tbping
Feb 24 15:56:11 localhost /etc/mysql/debian-start[1039]: warning : 1 client is using or hasn't closed the table properly
Feb 24 15:56:11 localhost /etc/mysql/debian-start[1039]:
Feb 24 15:56:11 localhost /etc/mysql/debian-start[1039]: Improperly closed tables are also reported if clients are accessing
Feb 24 15:56:11 localhost /etc/mysql/debian-start[1039]: the tables *now*. A list of current connections is below.

検索してみると、disconnectしてないんじゃない?っていうのが多いですね。
確かにしてなかったりする部分もあるんですが…。
でも、そうだったとしても、これまでずっとそうだったのに、なんで急に?というのが疑問です。
とりあえず直せるところを直すか。