> For the complete documentation index, see [llms.txt](https://prosbcdocs.telcobridges.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prosbcdocs.telcobridges.com/tmedia-documentation/server-and-os-administration/software-install.md).

# Software:Install

This procedure will show how to install a Toolpack system with host redundancy.

### Requirements

* 2 hosts with the same OS installed (see [Toolpack installation guides](https://github.com/telcobridges-main/tmedia-wiki/tree/main/tmedia/operations/installing-toolpack/README.md) for more information)

**NOTE:** If you are migrating from a 1 host system to a 2 hosts system, it is **HIGHLY RECOMMENDED** to do a database backup **BEFORE** starting the migration.

### Installation

Make sure that both hosts have the Toolpack prerequisites installed.

**Note:** It is critical to use different MySQL server-id between host (see [installation guides](https://github.com/telcobridges-main/tmedia-wiki/tree/main/tmedia/operations/installing-toolpack/README.md) for more details)

#### Primary/Secondary host

You must assign one host as [primary](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/misc/primary-secondary/README.md) the other will be [secondary](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/misc/primary-secondary/README.md).

* run the Toolpack installer on the [primary host](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/misc/primary-secondary/README.md)
* Run the installer on the [secondary host](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/misc/primary-secondary/README.md)
* Start Toolpack on the [primary host](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/misc/primary-secondary/README.md)
* Make sure that the [primary host](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/misc/primary-secondary/README.md) becomes [master](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/misc/master-slave/README.md) and setup both MySQL server correctly.
* Verify the status of the database in the web portal's welcome page(be patient, the process may take several minutes).

Once the primary host has become the master and all the stacks, tmedia are up.

* Start toolpack on the secondary host
* Verify that the [secondary](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/misc/primary-secondary/README.md) host has become the system [slave](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/misc/master-slave/README.md).

Things to remember:

* [CDRs](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/concepts/call-detail-record/README.md) are not copied between hosts, therefore it is necessary to gathered the [CDRs](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/concepts/call-detail-record/README.md) from both hosts.
* Both host has a web portal running and they access the same database. Therefore whether you modify a configuration from the primary or secondary web portal you are modifying the same configuration.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://prosbcdocs.telcobridges.com/tmedia-documentation/server-and-os-administration/software-install.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
