89366

89366



Introducing Additional Slaves to an Existing Replication Environment

To add another slave to an existing replication configuration, you can do so without stopping the

master. Instead, set up the new slave by making a copy of an existing slave, except that you configure

the newslave with a different server-id [1991] value.

To duplicate an existing slave:

1.    Shut down the existing slave:

shell>nysqladmin shutdown

2.    Copy the data directory from the existing slave to the new slave. You can do this by creating an

archive using tar or WinZip, or by performing a direct copy using a tool such as cp

or rsync.

Ensure that you also copy the log files and relay log files.

A common problem that is encountered when adding new replication slaves is that the new slave

fails with a series of warning and error messages like these:

071118 16:44:10 [Warning] Neither —relay-log nor —relay-log-index were used; so

replication raay break when this MySQL server acts as a slave and has his hostname

changed! ! Please use '—relay-log=new_slave_bostn<ame-relay-bin' to avoid this problem.

071118 16:44:10 [ERROR] Failed to open the relay log './old_slave_hostname-relay-bin.003525'

(relay_log_pos 22940879)

071118 16:44:10 [ERROR] Could not find target log during relay log initialization

071118 16:44:10 [ERROR] Failed to initialize the master info structure

This is due to the fact that, if the —relay-log [2007] option is not specified, the relay log files

contain the host name as part of their file names. (This is also true of the relay log index file if the

— relay-log-index [2008] option is not used. See Section 16.1.4, “Replication and Binary

Logging Options and Variables", for morę information about these options.)



Wyszukiwarka

Podobne podstrony:
00468 ac0a903ecaaaafcf5417aa03140492 474 Del Castillo Introduction There has been an increased rec
FSC503! Name_ _ Addition facts to 6Mmmm...Piel Solve each problem. Write the answer on the pie. <
148 Arquivos de Zoologia Introduction The Cerithioidea is an enigmatic group abundant in species, wi
League of Nations —Treaty Senes. 1 Traduction. — Translation. No. 3206. — ADDITIONAL AGREEMENT 1 TO
Creating a Tablespace You can creatc additional tablcspaccs to storę user data, so that not all data
24475 tekst3 (2) experimentally in rats and anecdotally in humans. Additionally, up to a third of d
26023 IMG81 CONTENTS FROM THE AUT HOR <> INTRODUCTION: DIGITAL LIBRARIŁS AS AN CHLIECT OFSCIl
PRI c 06 airlines K)-Ob. 2QC£ Airlines „ICARUS” Airlines decided to introduce information system to
Pre-listening While-listening Post-listening 4. Would you introduce any changes to the
Chapter 1Introduction This chapter introduces the reader to the content of the dissertation. It cons
DODATEK DO SZKOLENIA PROJEKT EMC MATERIAŁY DODATKOWE DO SZKOLENIA PROJEKT EMC ADDITIONAL MATRIA
image002 INTRODUCTION Poland, analogically to Bohemia and Ruthenia, originated as a pagan country, a

więcej podobnych podstron