> For the complete documentation index, see [llms.txt](https://dev.solid-run.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.solid-run.com/amd/v3000/sbc-platform/bedrock-v3000-technical-documentation/software-bedrock-v3000/linux-bedrock-v3000/enable-raid-0-on-bedrock-in-linux.md).

# Enable RAID 0 on Bedrock in Linux

Bedrock V3000 provides up to 3 NVME x4 slots which support RAID 0 configuration

This guide provides step-by-step instructions for setting up a RAID array with two ADATA 256 NVME gen 3.0 drives on Ubuntu Server 23.04.

## **Table of Contents**

* [Test setup](#raidtestsetup)
* [RAID configuration steps](#raidconfigurationsteps)
  * [Create RAID partitions](#createraidparts)
  * [Create RAID device](#createraiddev)
  * [Format RAID device](#formatraiddev)
  * [Retrieve UUID of RAID partition](#retrieveuuidofraid)
  * [Edit fstab](#editfstab)
  * [Testing the configuration](#testingraid)

## **Test setup**

* 2x A-data legend 710 NVMEs
* Ubuntu Server 23.04 ([Customer image](/other-articles/snippets/bedrock-images-info.md))

Performance Test Results

With RAID :

* Command: dd if=/dev/md0 of=/dev/null bs=4M status=progress; sync
* Result: 510 GB copied in 149 seconds at a rate of 3.4 GB/s.

Without RAID (Single Disk)

* Command: sudo dd if=/dev/nvme0n1 of=/dev/null bs=4M status=progress; sync
* Result: 255 GB copied in 111 seconds at a rate of 2.3 GB/s.

## **RAID Configuration Steps**

## Create RAID Partitions

For each disk you want to include in the RAID configuration:

* Run: `parted /dev/sdX mklabel gpt` to create a new GPT label
* Create a primary partition with: `parted /dev/sdX mkpart primary ext4 0% 100%`
* Set the RAID flag with: `parted /dev/sdX set 1 raid on`

### Create RAID Device

* Use mdadm to create the RAID array:
  * `mdadm --create --verbose /dev/md0 --raid-devices=<number of disks> --level=0 /dev/<partition of first disk> /dev/<partition of second disk> <more disks>`

{% hint style="info" %}

* Replace , , ,\
  with the appropriate values.
* The RAID device will be named /dev/md0
  {% endhint %}

### Format RAID Device

* Format RAID device with: `mkfs.ext4 /dev/md0`

{% hint style="info" %}
/dev/md0 is used because in the previous command we created it with the name /dev/md0
{% endhint %}

### Retrieve UUID of the RAID Partition

* Run `blkid` to ge the UUID of the /dev/md0 partition
  * Example: `UUID="2ff3d24d-c123c-43d5-41ed-627bcdf54154"`

### Edit fstab File

* Open /etc/fstab using `vi /etc/fstab`
* Add the Line `<Your UUID> /home ext4 defaults 0 1`
  * Replace <>Your UUID> with the actual UUID from the previous step
  * You can also change /home which is the destination point to mount the RAID disk

### Test the Configuration

* Run `mount -a` to mount all filesystems
* Verify with `df -h` to see if the filesystem got mounted

{% hint style="warning" %}
Always ensure you have a backup of your data before making changes to disk or configurations.\
RAID 0 offers improved performance but no redundancy, meaning if one disk fails, all data is lost.
{% endhint %}


---

# 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:

```
GET https://dev.solid-run.com/amd/v3000/sbc-platform/bedrock-v3000-technical-documentation/software-bedrock-v3000/linux-bedrock-v3000/enable-raid-0-on-bedrock-in-linux.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
