> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/deployment/lina-multi-server-configuration.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Lina Multi-Server Configuration

This chapter provides information on:

* A Lina multi-server configuration.
* How to create a Lina multi-server configuration.
* How to access the node list in the Lina Administration Console.
* How to modify nodes in the Lina Administration Console.
* Agents in a Lina multi-server configuration

## About the Lina multi-server configuration

### Terminology

A Lina multi-server configuration consists of a Lina master server and several Lina nodes.

**A master server:**

* Represents an entry point for all administration operations.
* Contains the definition of all backup configuration objects.
* Centralizes license management.
* Assigns a tenant and a node to any new agent.

**A node:**

* Is a standalone server used to hold information about the agents and tenants associated with that node. For more information about tenants, see Tenants.
* Contains up to 2000 agents. If an issue occurs on a node, only the agents on that node are affected.

In the Lina Administration Console, you cannot create a node, but you can modify certain properties of an existing node.

### Data transfer between nodes, agents, and the master server

In a multi-server configuration, only Lina nodes and agents communicate with the Lina master server. For example, a Lina agent can communicate with the master server so that the master server assigns the agent to a specific node. There is no limit to the number of nodes that can be created in a multi-server configuration.

The Lina Administration Console is used to:

* Centralize or modify information about strategies, users and user groups, protection policies, rules, zones, paths, file categories, or agents.
* Manage restore and backup operations for all or part of the Lina servers known to the master server.
* Centralize reports on agents, tenants, notifications, nodes, and the master server. In the Lina Administration Console, a superadmin can display nodes in the agents view or notifications sent from nodes (notifications view), using the button below the total item count.

For more details on:

* Lina architecture in a multi-server configuration, see [<mark style="color:blue;">Lina in a multi-server configuration</mark>](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/about-lina/architecture-and-components.md#lina-in-a-multi-server-configuration)
* How to connect to Lina via a reverse proxy, see [<mark style="color:blue;">Connecting to Lina via a reverse proxy.</mark>](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/settings/security.md#connecting-to-lina-via-a-reverse-proxy)
* How to create an agent in a multi-server configuration, see [<mark style="color:blue;">Agents in a multi-server configuration.</mark>](#agents-in-a-multi-server-configuration)

### Limitations

It is not possible to:

* Set up a multi-server configuration on the HyperStream Server.
* Use a standalone configuration and a multi-server configuration at the same time.

## Creating a Lina multi-server configuration

The Lina master server must be installed on a server that will manage the nodes. Once the installation is complete, you can configure the nodes. This procedure can only be performed in the CLI interface and consists of 4 steps:

1. Creating a master server and nodes.
2. Attaching nodes to the master server.
3. Restarting the nodes.
4. Updating the accessinfo string. This step is only required if a proxy or reverse proxy is used to access the nodes.

### Prerequisites

Select the servers that will be used as the master server and nodes, as well as their location.

As an example for this procedure, 3 servers are used:

* A master server called myserver.
* Two nodes called mynode1 and mynode2.

### Step 1: Create a master server

1. Run the Lina installer on myserver. See Installing the Lina server for more details.

Do not follow the configuration steps that usually follow server installation. Since the master server does not host any backed-up data, these steps are not necessary.

2. Stop the Lina service, then run this command to replace the standalone instance with a master instance:

```bash
./ade_server --create --force --master
```

A master instance with a dual port is created. The default values for the following ports are:

* Data port used to communicate with agents: <kbd>8181.</kbd>
* User interface administration port: <kbd>8182.</kbd>
* CLI port: <kbd>23232.</kbd>

3. (Optional) Run this command to customize the TCP ports

```bash
./ade_server --create --force --master -P 23232 --httpd_port 8182 --data_port 8181
```

The TCP port can be customized when creating a master server or using the configurator.

4. Restart the Lina service.

The multi-server instance is ready to be configured.

### Step 2: Create nodes

When you install a Lina server, the default port numbers are:

* Data port used to communicate with agents: <kbd>8181</kbd>.
* User interface administration port: <kbd>8182</kbd>.
* CLI port: <kbd>23232</kbd>.

However, if you install more than one node on the same machine, you must use different port numbers for each node, as explained below.

You can create a node by installing a new Lina server or by converting an existing Lina server into a node. For more information on converting a server into a node, see [Converting an existing standalone server into a node](https://docs.atempo.com/lina/7.3/fr/lina-administration/Content/Documentation_Lina/Transform_Standalone_Server_Into_Node.htm).

**To create a node**

Run the Lina installer on mynode1. See [<mark style="color:blue;">Installing the Lina server</mark>](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/deployment/deploying-the-lina-server.md#installing-the-lina-server) for more details. This installation procedure is no different from a standard server installation (standalone server installation).

**To change the default port numbers**

You may need to change the port numbers after installation if:

* You do not want to keep the default port values.
* You performed a silent batch-mode installation, which does not let you change the port values.

1. Go to the main **Lina directory,** and run this command <kbd>./ade\_admin -u superadmin.</kbd>
2. Enter the administration UI port and data port numbers selected for each node.

```bash
./ade_admin -u superadmin
> set httpd.data_port=8183
> set httpd.port=8184
> set net.port=23233
```

3. Restart the Lina service.

### Step 3: Attach nodes to a master server

You can use two methods to attach a node to a master server:

* **Method 1**: Each node's access key is retrieved, then used to link the master server and the nodes. It is recommended to use this method. Method 2: The master server's access key is retrieved, then used to link the master server and the nodes.
* **Method 2:** The master server's access key is retrieved, then used to link the master server and the nodes.

#### Method 1: Attach nodes to the master server using each node's access key

1. 1Log in to mynode1 and mynode2, using this command: <kbd>./ade\_admin -u superadmin.</kbd>
2. Enter <kbd>node</kbd> to retrieve each node's access key. Here is an example of what you may see for each node:

```
> node
{ "status" : 0,
  "status_msg" : "ASM_OK",
  "ACCESS_KEY" : "870f5358-fa99-11eb-bffb-e9ae15dda958",
  "mode" : "STANDALONE"
}
```

3. Log in to myserver using this command: <kbd>./ade\_admin -u superadmin</kbd>
4. Accept mynode1 and mynode2, using each node's access key.

```
> node accept 870f5358-fa99-11eb-bffb-e9ae15dda958
> node accept 88b44842-7f2a-4bb6-ad46-fd2816c2f301
```

5. Go to mynode1 and mynode2, then attach each node to the master server. In this example, the port used is <kbd>8181</kbd>:

```
> node attach :8181
```

#### Method 2: Attach the master server to nodes using the master server's access key

1. Log in to the master server using this command: <kbd>./ade\_admin -u superadmin.</kbd>
2. Enter <kbd>node</kbd> to retrieve myserver's access key.

Here is an example of what you may see for each node:

```
> node

{

"status": 0, "status\_msg": "ASM\_OK",

"server\_uuid": "20203944-d748-4321-834e-cceabcbeaa27",
"ACCESS\_KEY": "efbc28ff-9d25-4eb5-a2a8-d1e31120f3ad",
"date": 1649150387,

"mode": "MASTER",

...

}
```

3. Go to mynode1 and mynode2.
4. Attach myserver to each node, using each node's access key.

> node attach :8181 efbc28ff-9d25-4eb5-a2a8-d1e31120f3ad

For security reasons, it is recommended to generate a new access key for the master server. Regenerating access keys prevents any unwanted node from attaching. To regenerate the master server's access key, use the command <kbd>node renew</kbd>.

### Step 4: Restart the nodes

mynode1 and mynode2 must be restarted after being attached to myserver, otherwise myserver cannot detect a new node.

\> Restart each node.

### (Optional) Step 5: Verify the multi-server configuration

You can perform this step to verify that the nodes are correctly attached to the master server.

\> In the command-line interface (CLI), go to myserver and enter <kbd>node</kbd>.

In the following example, you can see that two nodes have been attached to myserver.

```json
> node
{
  "status": 0,
  "status_msg": "ASM_OK",
  "server_uuid": "20203944-d748-4321-834e-cceabcbeaa27",
  "ACCESS_KEY": "efbc28ff-9d25-4eb5-a2a8-d1e31120f3ad",
  "date": 1649150868,
  "mode": "MASTER",
  "nodes": [
    {
      "id": 1,
      "uuid": "0befc910-0176-4bee-b568-6a19740c031e",
      "name": "mynode1",
      "port": 8181,
      "friendly_name": "mynode1_8181",
      "last_ip": "",
      "last_seen": 0,
      "offline": true,
      "access_info": "mynode1:8181",
      "nb_agent": 0,
      "free_space_volume": 0,
      "version": "6.0.0.20704 DEV",
      "os": "Windows Server 2019 64 bits 10.0.17763 AMD-64",
      "hss_port": 23232,
      "admin_port": 8182
    },
    {
      "id": 2,
      "uuid": "26c926aa-7850-4dca-a971-61c748e5694c",
      "name": "hyperstream",
      "port": 8181,
      "friendly_name": "mynode2_8181",
      "last_ip": "",
      "last_seen": 0,
      "offline": true,
      "access_info": "mynode2:8181",
      "nb_agent": 0,
      "free_space_volume": 0,
      "version": null,
      "hss_port": 23232,
      "admin_port": 8182
    }
  ],
  "queue": [],
  "offline": 0
}
```

### (Optional) Step 6: Define a distribution policy for each tenant

A distribution policy specifies how new agents are distributed to nodes. Three types of policy can be applied:

* Round robin: Agents are distributed evenly across multiple nodes. Fewest agents: agents are distributed to the nodes that contain the fewest agents.
* Most available space: agents are distributed to the nodes that contain the most free space.
* Most available space: agents are distributed to the nodes that contain the most free space.

To associate a distribution policy with a tenant in the Lina Administration Console, see [<mark style="color:blue;">Creating a tenant.</mark>](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/deployment/configuring-the-server-environment.md#creating-a-tenant)

### Step 7: Update accessinfo on the nodes

This step is only required if a proxy or reverse proxy is used to access a node.

Accessinfo is a string used to connect an agent to a node. It can be changed when:

* The internal DNS does not match the external DNS.
* A reverse proxy is used.

The same syntax is used for accessinfo and CfgServerHost. For more details on CfgServerHost, see [<mark style="color:blue;">Configuring advanced agent access to the server.</mark>](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/deployment/installing-lina-agents.md#configuring-advanced-agent-access-to-the-server)

\> On each node, update the accessinfo, using this command.

<kbd>1 172.16.130.30:8181</kbd> is the new accessinfo value:

```bash
node accessinfo 1 172.16.130.30:8181
```

### Advanced commands

You can use the following commands to get more information from ade\_ admin:

* <kbd>tcp</kbd>: This command lists all TCP ports and can be used on all nodes.
* <kbd>agent</kbd>: This command lists all agents used on the master server.
* <kbd>node</kbd>: This command lists all nodes and displays the TCP ports used for these nodes on the master server.

## Converting an existing standalone server into a node

You can use this procedure to import an existing standalone server, the agents associated with that server, and the agent configuration. However, you may lose part of your server's configuration if your standalone server contains replicated tenants, replication destinations, agent groups, or HSS or HVDS streams.

**To import an existing standalone server into a master server**

1. On the standalone server, go to the directory containing the Lina binaries, then run this command:

```bash
./ade_server --master_export <fully_qualified_domain_name_of_the_master_server>:<data_port_number>
```

A report log file is generated after exporting the server, in the node's log directory, named **ExportReport.** This report contains the list of agents that were or were not transferred, and information about why agents were not transferred. The following example is displayed after a successful agent import.

```json
{ "Name": "<agent_name>",
  "UUID": "<agent_UUID>",
  "Merged": true,
  "Ignored groups": [ ]
},
```

An agent cannot be imported if that agent was created manually, is being deleted, is replicated, or is a duplicate. The following example is displayed when an agent was not imported.

```json
{
  "Name": "<agent_name>",
  "UUID": "<agent_UUID>",
  "Merged": false,
  "Issue": "",
  "Ignored groups": []
}
```

1. Go to step 3 [Attaching nodes to a master server](https://docs.atempo.com/lina/7.3/fr/lina-administration/Content/Documentation_Lina/Create_MS_Configuration.htm#attaching_nodes_to_master_server) to continue creating your multi-server configuration.

## Managing nodes

This section explains how to access the node list and modify a node.

### Opening the node list in the Lina Administration Console

#### To open the node list

\> Go to the dashboard and click **Total number of agents** or **Server > Nodes**.

In the node list, you can:

* Open a specific node in a separate window of the Lina Administration Console. To open a node in a separate window, hover over the node name, then click the button above the node list or on the right side of the window.
* Refresh, filter, or export the node list in CSV or HTML format.
* Display or hide information specific to all nodes, such as the master server used for each tenant or the node version.

### Modifying a node in the Lina Administration Console

**To modify a node**

1. Select the node name. The node's properties are displayed. You can:
   * Change the node's name and the access string used for the node.
   * Display the master server and port number selected for the node.
   * Display a summary of node information shown in the node list, such as the operating system used by the node.
2. Click **Save**.

## Agents in a multi-server configuration

The workstation on which Lina is installed must be associated with a node. You can:

* Define an automatic allocation strategy for agents on the nodes associated with a tenant. For more information, see [<mark style="color:blue;">Creating a tenant.</mark>](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/deployment/configuring-the-server-environment.md#creating-a-tenant)
* Associate an agent with a node when creating the agent in the Lina Administration Console. For more information, see [<mark style="color:blue;">Manually creating Lina agents.</mark>](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/getting-started/configuring-agents-on-the-server.md#manually-creating-lina-agents)
* Specify the node to associate with the agent, using accessinfo. For more details on ServerHost, see [<mark style="color:blue;">Configuring advanced agent access to the server.</mark>](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/deployment/installing-lina-agents.md#configuring-advanced-agent-access-to-the-server)

If the master server is unavailable for any reason, agents continue to be protected and data can be restored. The master server is not required for backup or restore.

If a node is offline, agents associated with that node cannot be backed up or restored.

## Moving agents between nodes

In a Lina multi-server environment, it is now possible to move agents from one node to another. All blocks belonging to the agent are then copied from the source node's storage space to the destination node.

**To move agents between nodes**

To move an agent to another node, the tenant in which the agent is located must be able to access the destination node (Nodes topic in the tenant properties). Otherwise, an error message is displayed.

1. Select a tenant at the top of the page.
2. Select the agent(s) to move in the Agents view of the Lina Administration Console, then click the → icon.
3. In the dropdown list that appears, select the node to which you want to move the agents, then apply your changes.
4. Confirm that you want to move the agents. If you want to cancel moving agents between two nodes, see [<mark style="color:blue;">Canceling agent transfer between nodes.</mark>](#canceling-agent-transfer-between-nodes)

A job is created for each agent. To view jobs, click the ⚙️ icon above the filter bar.

The block movement happens in the background, with a progress indicator for each job. The duration of the move is based on the volume of backed-up data to move per agent and the number of agents to move.

At the end of the move, a message indicating that the migration was successful appears.

## Canceling agent transfer between nodes

If needed, you can cancel an ongoing move. This may happen if you selected an incorrect destination node, or because additional agents were selected.

You can cancel a move from the agent list, or cancel one move at a time from the job list.

### Canceling a move from the agent list

1. If needed, deselect any agent you want to move from one node to another.
2. You can transfer them to the node of your choice before or after canceling the transfer of your agents.
3. Click the ↛ icon above the agent list, then confirm that you want to cancel the move for the selected agent(s).

### Canceling a move from the job list

1. Click the ⚙️ icon above the filter bar.
2. To the right of the job name of your choice, click the ✖️ icon.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/deployment/lina-multi-server-configuration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
