Skip to content

Instantly share code, notes, and snippets.

@Max95Cohen
Last active September 2, 2024 16:06
Show Gist options
  • Save Max95Cohen/ea23756e5fc5a2b6bf0fdc1a169c18df to your computer and use it in GitHub Desktop.
Save Max95Cohen/ea23756e5fc5a2b6bf0fdc1a169c18df to your computer and use it in GitHub Desktop.
Create RAID from two disk
Create the RAID: Use the command
```bash
sudo mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb /dev/sdc
```
to create a RAID 1 with two disks. This combines two disks (/dev/sdb and /dev/sdc)
into a virtual device named "/dev/md0".
```
sudo mdadm --remove /dev/md0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment