vcdog / mysql-master-ha

Automatically exported from code.google.com/p/mysql-master-ha
0 stars 1 forks source link

masterha_check_repl ignores relay-log defined in /etc/my.cnf #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Define relay-log in /etc/my.cnf as: relay-log = /data/relaylogs/relay-bin
2. Define datadir in /etc/my.cnf as: datadir = /data
3. From MHA manager, run masterha_check_repl  --conf=/etc/MHA.cnf

What is the expected output? What do you see instead?
The relay_log_info should be /data/relaylogs/relay-log.info but it is 
"/data/relay-log.info" and fails.

What version of the product are you using? On what operating system?
0.53 of Node and Manager on CentOS 5.8

Please provide any additional information below.

Mon May 14 10:23:54 2012 - [info]   Executing command : apply_diff_relay_logs 
--command=test --slave_user=mhadmin --slave_host=db2 --slave_ip=99.99.99.239 
--slave_port=3306 --workdir=/var/log/masterha --target_version=5.0.92-50-log 
--manager_version=0.53 --relay_log_info=/data/relay-log.info  
--relay_dir=/data/  --slave_pass=xxx
Mon May 14 10:23:54 2012 - [info]   Connecting to root@99.99.99.239(db2:22).. 
  Checking slave recovery environment settings..
    Opening /data/relay-log.info ...Could not open relay-log-info file /data/relay-log.info.
 at /usr/bin/apply_diff_relay_logs line 306

Original issue reported on code.google.com by kanzp...@gmail.com on 14 May 2012 at 5:34