# Add a backend server in a legacy architecture

Expanding a cluster in a legacy architecture with a new backend server is similar to the WEKA legacy system installation process.

Adding a server to the cluster includes adding the containers and configuring the networking, CPU resources, and SSDs.

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FvlhbtkuEHDrKO7q3Qedy%2Fadd_server_single.gif?alt=media&#x26;token=dd008226-198c-49e1-a125-fb13c40788e4" alt=""><figcaption><p>Adding a server to the cluster in a legacy architecture</p></figcaption></figure>

{% hint style="info" %}
**Note:** In most cases, the container configurations are similar. Therefore, importing the container settings from a previously exported container in the cluster is possible, saving time and avoiding misconfiguration. \
See [Expand the cluster by importing the server settings](#expand-the-cluster-by-importing-the-server-settings).
{% endhint %}

## Add a backend server to an existing cluster

1. Obtain the WEKA install file.
   * Download the WEKA install file used when the existing cluster was last upgraded (or formed, if not upgraded). See [obtaining-the-weka-install-file](https://docs.weka.io/4.1/install/bare-metal/obtaining-the-weka-install-file "mention").
   * Use the `weka status` command to show the current cluster install file version.<br>
2. Install the WEKA software on the new server.
   * Run the `untar` command and `install.sh` command on the new server.\
     At the end of the installation process, the server is in stem mode (the server is not attached to a cluster).
3. Add the container to the cluster.
   * Run the following command line on any container in the cluster. In the `backend-hostname` property, specify the IP address or hostname of the new backend server to add.

```
weka cluster container add <backend-hostname>

```

{% hint style="info" %}
**Note:** Once this step is completed, the container ID of the newly added server appears in response to the command. Make a note of it to use in the following steps.
{% endhint %}

4. Configure the networking.
   * Perform the instructions in [#stage-6-configure-the-networking](https://docs.weka.io/4.1/install/bare-metal/weka-system-installation-with-multiple-containers-using-the-cli/using-cli#stage-6-configure-the-networking "mention").
5. Configure the CPU resources.
   * Perform the instructions in [#stage-8-configure-the-cpu-resources](https://docs.weka.io/4.1/install/bare-metal/weka-system-installation-with-multiple-containers-using-the-cli/using-cli#stage-8-configure-the-cpu-resources "mention").
6. Apply the configuration of the container on the newly added server.
   * Perform the instructions in [#stage-13-apply-containers-configuration](https://docs.weka.io/4.1/install/bare-metal/weka-system-installation-with-multiple-containers-using-the-cli/using-cli#stage-13-apply-containers-configuration "mention").

{% hint style="info" %}
**Note:** You can activate the cluster containers sequentially.
{% endhint %}

7. Configure the SSDs.
   * Perform the instructions in [#7.-configure-the-ssds](https://docs.weka.io/4.1/install/bare-metal/weka-system-installation-with-multiple-containers-using-the-cli/using-cli#7.-configure-the-ssds "mention").

## Expand the cluster by importing the container settings

In most cases, the server configurations are similar. Therefore, importing the server setting from a previously exported server in the cluster is possible, saving time and avoiding misconfiguration.

**Procedure:**

1. Perform only steps 1 to 3 in the [Add a backend server to an existing cluster](#add-a-backend-server-to-an-existing-cluster) procedure (above).
2. Connect to one of the servers in the cluster and export the settings by running the following command: `weka local resources export`.
3. Connect to the new server and import the settings by running the following command: \
   `weka local resources import`.
4. Edit the local configuration.
   * See the [#local-resources-editing-commands](https://docs.weka.io/4.1/usage/expansion-of-specific-resources#local-resources-editing-commands "mention") section.
5. Apply the configuration on the newly added server.
   * See [#stage-13-apply-containers-configuration](https://docs.weka.io/4.1/install/bare-metal/weka-system-installation-with-multiple-containers-using-the-cli/using-cli#stage-13-apply-containers-configuration "mention").
