> ## Documentation Index
> Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Reinstall your bare metal server

> Install a new system on your dedicated server and choose its RAID and partitions, from guided templates or a custom layout

The reinstall puts a fresh system on your bare metal server: its disks are erased, its RAID rebuilt on the server's RAID controller, then the system you chose is installed with your SSH keys. The console computes the storage layouts from the server's real disks and shows the usable space before you confirm.

> [!WARNING]
>
> Reinstalling erases every disk of the server. Back up your important files before you start.

> [!NOTE]
>
> **Prerequisites**
>
> * A bare metal server with no task running (see its **Tasks** tab)
> * At least one [SSH key](https://help.onetsolutions.net/vps/ssh-keys.md) in your project: the server is reinstalled with SSH keys, without a password

## Start the reinstall

On your server's page, open the **Reinstall** tab. The page has three steps and a **Summary**.

## 1. Choose what to install

Under **What do you want to install?**:

* **OS only**: a Linux system, such as Ubuntu LTS, Debian, Rocky Linux or AlmaLinux. The list shows the systems validated on your server's hardware; the **Images** tab of the **Bare Metal** section lists them all.
* **Control panel**: a system delivered with a server control panel, installed for you.
* **Applications**: a system ready for a One Click App.

## 2. Choose the storage

### Guided templates

The guide asks three questions, computed from your server's disks:

**1. Protection level**

Choose how your data is spread across the disks:

| Level | What it does |
| - | - |
| **RAID 1** | Everything is written twice, one copy on each disk: if a disk fails, nothing is lost |
| **RAID 5** | Parity spread across the disks: one of them can fail without losing data |
| **RAID 6** | Two parities: two disks can fail at the same time |
| **RAID 10** | Mirrored pairs, then striped: fast and resilient |
| **RAID 0** | Data spread across every disk: top speed and full capacity, for data easy to rebuild |
| **No RAID** | A single disk, used as it is |

The levels offered match the number of disks of your server, and one of them is marked **Recommended**.

**2. Disk layout**

* **Simple partitions**: the disk is cut into a few partitions of fixed size. Easy to understand and to troubleshoot, with native disk performance.
* **LVM**: a flexible layer that manages space as volumes, so you can grow or shrink them, take snapshots before a risky update and add volumes later. It is offered with the systems that support it.

**3. Your configuration**

The console shows the configuration matching your choices, with its **RAID type**, **Effective size** and **Disks used**. Click the eye to see the volumes and disks as they will be built, then click **Choose this configuration**.

### Custom layout

For several volumes, custom mount points or disks picked one by one, click **Custom configuration**. For each volume, set:

* a **Name** and a **Mount point** (one volume is mounted at `/`);
* a **RAID level**, and the **RAID engine**: **Automatic** or **Hardware (RAID controller)**;
* a **Partition layout**: **Simple partitions** or **LVM (resizable volumes)**;
* the **Disks in this volume**, clicked one by one in the list of the server's disks.

Click **Add a volume** to add another. The **What will be built** preview shows the usable size of each volume, and the console checks the layout before the reinstall. **Back to guided templates** returns to the guide.

> [!TIP]
>
> If your server has an NVMe drive, it is a volume of its own, without RAID, formatted whole and mounted on `/nvme`. In the custom layout, the switch of its card turns it on or off.

## 3. Choose the SSH keys

Under **SSH keys**, tick the keys to install for `root`, or click **Add key** to add one. The server keeps its hostname, which you change from the **Overview** tab.

Under **Management and monitoring**, you can also tick:

* **Install the monitoring agent**: CPU, memory, disk and network metrics then appear in the **Monitoring** tab.
* **OnetSolutions management key**: installs your project's SSH key so our support can step in if needed.

## Confirm

Check the **Summary** (system, storage, SSH keys, estimated duration), click **Reinstall the server**, then confirm. Follow each step live in the progress window or in the **Tasks** tab: you can close the window, the reinstall keeps running. Once it is done, [connect over SSH](https://help.onetsolutions.net/bare-metal/first-connection.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.