---
title: "Configuring MegaRAID for RAID Level 0"
description: "Find out how to configure RAID 0 in order to use your server's entire disk space"
url: https://docs.ovhcloud.com/en/guides/bare-metal-cloud/dedicated-servers/megaraid-config
lang: en
lastUpdated: 2025-04-29
---
# Configuring MegaRAID for RAID Level 0

## Objective

Redundant Array of Independent Disks (RAID) is a utility that mitigates data loss on a server by replicating data across two or more disks.

The default RAID level for OVHcloud server installations is RAID 1, which doubles the space taken up by your data, effectively halving the usable disk space.

**This guide explains how to configure your server’s disks with RAID 0, which will allow you to use all your disks' usable space.**

:::warning
Please note: RAID 0 provides **NO FAULT TOLERANCE** and **NO DATA REDUNDANCY**, making data loss in the event of disk failure highly likely.

:::

## Requirements

- A [dedicated server](https://www.ovhcloud.com/en-gb/bare-metal/) with hardware RAID
- Administrative (sudo) access to the server via SSH


***

### OVHcloud Control Panel Access

- **Direct link:** <ManagerLink to="/#/dedicated-servers/server">Dedicated Servers</ManagerLink>
- **Navigation path:** <code className="action">Bare Metal Cloud</code> > <code className="action">Dedicated servers</code> > Select your server

***


## Instructions

### Using the OVHcloud Control Panel

From the `General information
` tab, click on `...
` next to the operating system and then click `Install
`.
Select the operating system you want to install and then click `Next
`.
Tick the boxes for **Customise the hardware RAID configuration**
 and **Customise the partition configuration**
, then click `Next
`.
![megaraid](/images/bare-metal-cloud/dedicated-servers/megaraid-config/server_installation_raid0_2.png)
Select `raid0`
 from the RAID drop-down list and click `Next
`.
![megaraid](/images/bare-metal-cloud/dedicated-servers/megaraid-config/server_installation_raid0_3.png)
Configure the partitions as you see fit and then click `Next
`.
![megaraid](/images/bare-metal-cloud/dedicated-servers/megaraid-config/server_installation_raid0_4.png)
Finally, click `Confirm
`.
![megaraid](/images/bare-metal-cloud/dedicated-servers/megaraid-config/server_installation_raid0_5.png)
After your server has been installed, check the partition sizes by logging on to the server via SSH and running the following command:

```sh
df -h
```

### Using rescue mode

In the **General Information**
 tab, look for `Boot`
 and click on `...
`. Then click the `Edit
` button to change the boot system.
![megaraid](/images/bare-metal-cloud/dedicated-servers/megaraid-config/rescue_mode_raid0_1.png)
Next, select `Boot in rescue mode
` then select `rescue-customer
` from the drop-down list.
In the field "Send new login details to the following email address:", specify an alternative email address if you do not want the login credentials sent to your customer account’s primary address.

![megaraid](/images/bare-metal-cloud/dedicated-servers/megaraid-config/rescue_mode_raid0_2.png)
Click `Next
` and then Confirm` in the **Summary**
.
![megaraid](/images/bare-metal-cloud/dedicated-servers/megaraid-config/rescue_mode_raid0_3.png)
Once the change is completed, click on `...
` next to “Status” in the box labelled **Service status**
. Select `Restart
` and the server will restart into rescue mode.
![megaraid](/images/bare-metal-cloud/dedicated-servers/megaraid-config/server_installation_raid0_6.png)
When your server reboots, log in to it via SSH using the rescue mode credentials that were emailed to you.

From the command line, type the following commands to delete the existing RAID settings. All data in the RAID will be deleted:

```sh
MegaCli -CfgLdDel -L0 -a0
MegaCli -CfgLdDel -Lall -aAll
```

Type the following command to retrieve the slot device IDs of your disks:

```sh
MegaCli -PdList -aALL | egrep "Slot|Device ID"
```

Type the following commands to configure RAID level 0:

```sh
MegaCli -CfgLDAdd -R0[252:0,252:1] -a0
```

In this example, 252 is the ID of the drive enclosure.

After setting the new RAID level you can check the settings with the following command:

```sh
MegaCli -LDInfo -Lall -a0 | grep -i size
```

## Go further

[Hot Swap – Hardware RAID](/en/guides/bare-metal-cloud/dedicated-servers/hotswap-raid-hard.md)

[Hot Swap – Software RAID](/en/guides/bare-metal-cloud/dedicated-servers/hotswap-raid-soft.md)

[Hardware RAID](/en/guides/bare-metal-cloud/dedicated-servers/raid-hard.md)

Join our [community of users](https://community.ovhcloud.com/).
