I'm attempting to create a RAID 0
RAID array on Ubuntu server 21.10, but I keep getting the following error:
mdadm: An option must be given to set the mode before a second device
Here is the syntax I used:
~$ sudo mdadm –create –verbose /dev/md0 –level=0 –raid-devices=2 /dev/sdb1 /dev/sdc1
mdadm: An option must be given to set the mode before a second device
(–verbose) is listed
I've seen some websites that list the syntax as:
sudo mdadm -–create -–verbose /dev/md0 -–level=0 -–raid-devices=2 /dev/sdb1 /dev/sdc1
To which I get:
mdadm: invalid option -- '?'
Usage: mdadm --help
for help
I've tried removing the partitions and attempting the command without partitions, still no joy. I've tried the -c
vs the --create
option, still no fun.
Do I need to install any additional packages in order to create an array?