Answer the question
In order to leave comments, you need to log in
How to make mdadm raid1 on ubuntu 18 work after system reboot?
I build raid1 from two disks as described in the article:
https://www.digitalocean.com/community/tutorials/h...
I run the following commands:
$ sudo mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sdb
дожидаюсь пока raid соберется
$ sudo mkfs.ext4 -F /dev/md0
$ sudo mkdir -p /mnt/md0
$ sudo mount /dev/md0 /mnt/md0
$ sudo mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.conf
$ sudo update-initramfs -u
$ echo '/dev/md0 /mnt/md0 ext4 defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab
$ sudo mount /dev/md0 /mnt/md0
mount: /mnt/md0: can't read superblock on /dev/md0.
$ lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT
sda 3,7T linux_raid_member disk
sdb 3,7T disk
$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : inactive sda[0](S)
3906887512 blocks super 1.2
unused devices: <none>
Answer the question
In order to leave comments, you need to log in
Here according to this instruction, everything is assembled without problems. xgu.ru/wiki/mdadm
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question