On Wed, Oct 28, 2015 at 12:56 PM, Dragan Milivojević <galileo@xxxxxxxxxxx> wrote: >> I tried to create a raid using: >> >> # mdadm --create device-123 --verbose --level=mirror --raid-devices=2 >> --name=device-123 /dev/sda /dev/sdb >> mdadm: Defaulting to version 1.2 metadata >> mdadm: array /dev/md/device-123 started. >> >> But what I got in the end is only /dev/md127. The directory of >> /dev/md/ doesn't exist. > > > try mdadm --create /dev/md/device-123, > > for example: > > truncate -s 512M disk0 > truncate -s 512M disk1 > > losetup /dev/loop0 disk0 > losetup /dev/loop1 disk1 > > mdadm --create /dev/md/device-123 --verbose --level=mirror > --raid-devices=2 /dev/loop0 /dev/loop1 > > [root@eos ~]# ll /dev/md/device-123 > lrwxrwxrwx 1 root root 8 Oct 28 20:53 /dev/md/device-123 -> ../md127 > > [root@eos ~]# mdadm --detail --scan > ARRAY /dev/md/device-123 metadata=1.2 name=device-123 > UUID=03ba5df7:7c5cc933:367e19ef:384665c5 Thank Dragan! It works! Seems it's mdadm itself create the link rather than do through kernel, which gave me a little trouble. :D --Sheng -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html