server:replication
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
server:replication [2018/07/18 08:36] – [Confirming Functionality Of Primary And Replicant Servers] Scott Cunliffe | server:replication [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Enabling Replication ====== | ====== Enabling Replication ====== | ||
- | To enable | + | The following information illustrates the steps required to enable |
+ | |||
+ | All steps must be **performed in the order presented** to create a successful connection between the Master and Replicant Server. | ||
+ | |||
+ | ===== Prerequisites ===== | ||
+ | |||
+ | Functional installation of TapeTrack Server running that will become the Master. | ||
+ | |||
+ | IP addresses of both the Master and Replicant servers. | ||
+ | |||
+ | You have made a **complete [[server:backups|backup]] of the Master database** before attempting any of these instructions to maintain the database information should you not complete the process successfully. | ||
+ | |||
+ | |||
+ | |||
===== Steps On Remote Server ===== | ===== Steps On Remote Server ===== | ||
- | [[server: | + | [[server: |
- | [[server: | + | [[server: |
- | Delete all database files on the remote machine (all files in the '' | + | |{{server_helper_stop.gif}}| |
- | <note warning> | + | Navigate Windows File Explorer to the TapeTrack Framework Server installation directory (TapeTrack\TapeTrack Framework Server) to the var\db folder. |
- | {{server:server_config_file_no_delete.png}} | + | Delete all database files on the Replicant machine (all files in the '' |
- | Edit the [[server: | + | |{{master_replicant_remove_dbconfig.gif}}| |
- | {{server: | + | Open the DB_CONFIG file in Notepad, or equivalent text editor. |
- | Edit the replication local (replicant server) and remote (master server) host names in the [[server:DB_CONFIG|DB_CONFIG]] file. | + | Edit the TapeTrack\TapeTrack Framework Server\[[server:db_config|DB_CONFIG]] file to remove |
- | * Replace **replicant-1.tapetrack.com 5010** with the domain name (or IP address) of **your** replicant server. | + | |
- | * Replace **master.tapetrack.com 5010** with the domain name (or IP address) of **your** master server. | + | |
- | {{server:server_config_file_replicant_edit_server_address.png}} | + | Edit the Replicant Server and Master Server host names in the [[server:DB_CONFIG|DB_CONFIG]] file. |
+ | * Replace **replicant-1.tapetrack.com** with the IP address of **your** Replicant Server (your_replicant_IP_address used as Replicant IP example) and port number if not using the default 5100 value. | ||
+ | * Replace **master.tapetrack.com** with the IP address of **your** Master Server (your_Master_IP_address used as Master IP example) and port number if not using the default 5100 value. | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | {{master_replicant_dbconfig_replicant.gif}} | ||
<note tip> | <note tip> | ||
- | [[server: | + | |
===== Steps On Master Server ===== | ===== Steps On Master Server ===== | ||
- | [[server: | + | [[server: |
- | <note warning> | + | Edit the TapeTrack\TapeTrack Framework Server\[[server: |
- | Edit the [[server: | + | Edit the [[server: |
+ | Edit the Replicant Server and Master Server host names in the [[server: | ||
+ | | ||
+ | * Replace **master.tapetrack.com** with the domain name (or IP address) of **your** Master Server (your_master_IP_address used as Master IP example). | ||
- | {{server: | + | {{master_replicant_dbconfig_master.gif}} |
- | Edit the [[server: | + | Delete all, and only, the files starting with '' |
- | Edit the replication local (master server) | + | |
- | * Replace **replicant-1.tapetrack.com 5010** with the domain name (or IP address) of **your** replicant server. | + | |
- | * Replace **master.tapetrack.com 5010** with the domain name (or IP address) | + | |
- | {{server: | + | These files will be rebuilt when the server is restarted using the information of the new Master and Replicant details. |
+ | |||
+ | |{{master_replicant_remove_db_files.gif}}| | ||
<note tip> | <note tip> | ||
- | [[server: | + | ===== Start The Servers ===== |
+ | |||
+ | [[server: | ||
+ | |||
+ | |{{server_helper_start.gif}}| | ||
+ | |||
+ | Once the Master | ||
+ | |||
+ | The Replicant server will prepare the database for connection to the Master server and move into '' | ||
+ | |||
+ | |{{start_pending.png}}| | ||
+ | |||
+ | The Master server will now connect to the Replicant server and load the database information across the connection. | ||
+ | |||
+ | Once the database is fully replicated the Replicant server will now display running. | ||
===== Confirming Functionality Of Primary And Replicant Servers ===== | ===== Confirming Functionality Of Primary And Replicant Servers ===== | ||
- | Open '' | + | Open '' |
- | <note tip> | + | <note tip> |
+ | |||
+ | Master $DB_Msg.txt file showing connection between Master and Replicant and the process of sending database information. | ||
+ | |||
+ | {{master_db_msg.png}} | ||
+ | |||
+ | Replicant $DB_Msg.txt file showing connection between Master and Replicant, validation of connection and receiving database information. | ||
+ | |||
+ | {{replicant_db_msg.png}} | ||
+ | |||
+ | Another way of testing the replication is correct and functioning is to [[desktop: | ||
+ | |||
+ | {{login_replicant.png}} | ||
+ | |||
+ | As this database is a replication of the Master server, all user-ID' | ||
+ | |||
+ | When you connect to the Replicant database you will receive a popup reminding you the server is Read Only. While you can view Customer, Media and Volume information, | ||
+ | |||
+ | {{read_only_replicant.png}} | ||
<note warning> | <note warning> | ||
[[troubleshooting: | [[troubleshooting: | ||
+ | |||
+ | ==== See Also ==== | ||
+ | |||
+ | [[server: | ||
<- ^ server: | <- ^ server: |
server/replication.1531902990.txt.gz · Last modified: 2025/01/21 22:07 (external edit)