V
V
Vano01rus2021-05-11 19:27:20
linux
Vano01rus, 2021-05-11 19:27:20

CentOS7 How to setup RAID?

Here are the commands I wrote, where is the error?

yum install mdadm
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb /dev/sdc
lsblk
mdadm --detail /dev/md0
mdadm --verbose --detail --scan > etc/mdadm.conf
mkfs.ext4 /dev/md0
mount /dev/md0 /mnt/raid1
df -H /dev/md0
mkdir /mnt/mdadm-raid1
mount /dev/md0 /mnt/mdadm-raid1
cd /mnt/mdadm-raid1/lost+found/
cd /mnt/mdadm-raid1
ls
nano /etc/fstab
/dev/md0/mnt/raid0 ext4 defaults 1 2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-05-11
@Vano01rus

Well, at least the last line is missing a space between /dev/md0 and /mnt/raid0
and yes, is there such a directory? otherwise you tested mount to another directory a couple of lines above

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question