Path of md device wrong after reboot

Posted by flammi88 on Server Fault See other posts from Server Fault or by flammi88
Published on 2013-11-06T22:04:54Z Indexed on 2013/11/07 3:59 UTC
Read the original article Hit count: 530

Filed under:
|
|
|
|

I have to set up a software raid (level1) on a Ubuntu server 12.04. It should serve files in the network via Samba. The server has the following disks:

  • 250gb Sata hdd (Ubuntu is installed on that drive)
  • 2 TB Sata hdd (first disk in raid array, data disk)
  • 2 TB Sata hdd (second data disk)

I created one partition on every data disk with the type Linux raid autodetect. In the second step I created the raid1 with the following command:

mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1

After that, I added the array to the mdconf:

mdadm --examine --scan >> /etc/mdadm/mdadm.conf 

The problem is: After a reboot the array is not available on the path /dev/md0. Instead of that it gets reassembled as /dev/md/0 but it is not very reliable. Has anybody a solution for this issue?

© Server Fault or respective owner

Related posts about linux

Related posts about raid