Nov 18
Nov 18
If you replication slave reboots and you get error messages like:
ERROR 1201: Could not initialize master info structure, more error messages can be found in the MySQL error log
Fix i found for it was manually adding the master.info back to slave:
STOP SLAVE RESET SLAVE CHANGE MASTER TO MASTER_HOST=’your_master’, MASTER_USER=’your_login’, MASTER_PASSWORD=’your_password’, MASTER_LOG_FILE=’log_file’, MASTER_LOG_POS=log_position START SLAVE
If you get errors, try:
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1 START SLAVE
Source: http://blog.bit-matrix.com/2008/11/19/mysql-replication-error-1201-could-not-initialize-master-info-structure/
Nov 18
We use dladm to see which interfaces are up:
# dladm show-link
LINK CLASS MTU STATE OVER
bnx0 phys 1500 up --
bnx1 phys 1500 up --
bnx2 phys 1500 up --
bnx3 phys 1500 up --
bnx4 phys 1500 down --
Then we want to make bond with 2 of the interfaces:
# ifconfig bnx2 unplumb
# dladm create-aggr -d bnx2 -d bnx3 0
# ifconfig aggr0 plumb
Its up and running:
# dladm show-link aggr0
LINK CLASS MTU STATE OVER
aggr0 aggr 1500 up bnx2 bnx3
Now we give it an IP address:
# ifconfig aggr0 10.0.2.1 netmask 255.255.255.0 up