mysql:12659
From: Kenta Hashimoto <Kenta Hashimoto <kem@xxxxxxxxxx>>
Date: Fri, 20 Jan 2006 23:19:38 +0900
Subject: [mysql 12659] Re: リレーログがおかしい
橋本です。
スレーブの情報は、以下の通りです。
----
mysql> show slave status\G
*************************** 1. row ***************************
Slave_IO_State:
Master_Host: 192.168.1.123
Master_User: repl
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: masterdb-bin.000085
Read_Master_Log_Pos: 731901898
Relay_Log_File: slave2-relay-bin.000144
Relay_Log_Pos: 706459275
Relay_Master_Log_File: masterdb-bin.000085
Slave_IO_Running: No
Slave_SQL_Running: No
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table: db1.%
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 731884440
Relay_Log_Space: 0
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: NULL
1 row in set (0.00 sec)
----
スタートしようとすると、次のようなエラーが出ます。
----
mysql> start slave;
ERROR 1201 (HY000): Could not initialize master info structure; more
error messages can be found in the MySQL error log
----
エラーログは、次の通りです。
----
060120 23:14:31 [ERROR] Failed to open log (file
'./slave2-relay-bin.000144', errno 2)
060120 23:14:31 [ERROR] Failed to open the relay log
'./slave2-relay-bin.000144' (relay_log_pos 706459275)
060120 23:14:31 [ERROR] Could not open log file
----
マスターの情報は、以下の通りです。
----
mysql> show master status;
+---------------------+-----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+---------------------+-----------+--------------+------------------+
| masterdb-bin.000086 | 337429262 | | |
+---------------------+-----------+--------------+------------------+
1 row in set (0.00 sec)
----
SATOH Fumiyasu wrote:
> さとうふみやす @ ミラクルです。
>
> At Fri, 20 Jan 2006 22:26:30 +0900,
> Kenta Hashimoto wrote:
>
>>ところが、今日になって、2台あるスレーブサーバのうち、
>>片方のレプリケーションが止まってしまって困っています。
>>お力をお貸しくださるとありがたいです。
>
>
> とりあえず、show slave status (スレーブに対し)、
> show master status (マスタqー) で何と表示されますか?
>
12242 2005-10-18 23:58 [Kenta Hashimoto <kem] デュアルコアで2CPU 12243 2005-10-19 09:24 ┗[とみたまさひろ <tomm] 12245 2005-10-19 09:52 ┗[Kenta Hashimoto <kem] 12247 2005-10-19 10:03 ┣[Hideki SUNADA <hidek] 12249 2005-10-19 10:35 ┃┣[Hideki SUNADA <hidek] 12250 2005-10-19 10:37 ┃┗[IGARASHI Kouichi <ig] 12251 2005-10-19 11:00 ┃ ┗[Kenta Hashimoto <kem] 12252 2005-10-19 12:00 ┃ ┗[Hideki SUNADA <hidek] 12257 2005-10-21 10:15 ┃ ┗[草野龍雄 <kusano@xxx] 12258 2005-10-21 10:23 ┃ ┣[草野龍雄 <kusano@xxx] 12259 2005-10-21 14:00 ┃ ┣[Kenta Hashimoto <kem] 12261 2005-10-21 23:14 ┃ ┃┣[murayama <locutus@xx] 並列屋の視点(Re: デュアルコアで2CPU) 12263 2005-10-22 16:32 ┃ ┃┃┗[草野龍雄 <kusano@xxx] 12657 2006-01-20 22:26 ┃ ┃┗[Kenta Hashimoto <kem] リレーログがおかしい 12658 2006-01-20 23:09 ┃ ┃ ┗[SATOH Fumiyasu <fumi] -> 12659 2006-01-20 23:19 ┃ ┃ ┗[Kenta Hashimoto <kem] 12660 2006-01-21 00:04 ┃ ┃ ┗[Kenta Hashimoto <kem] 12271 2005-10-24 00:06 ┃ ┗[Hiro Yoshioka <hyosh] 12272 2005-10-24 02:03 ┃ ┗[草野龍雄 <kusano@xxx] 12248 2005-10-19 10:29 ┗["F.Y" <fumi_sby@xxxx]