[CentOS] create raid /dev/md2

S.Tindall tindalls.gr9x at osccc.com
Fri Apr 18 16:10:33 UTC 2008


> David Hlácik" wrote on Friday, April 18, 2008 11:40 AM:
>> Hi , currently i have 2 raid devices /dev/md0 and /dev/md1 , i have added 
>> 2
>> new disks, fdisked , created 2 primary partitions with type fd (linux 
>> raid autodetect)
>> Now i want to create raid from them
>>
>> root at vmhost1 ~]# mdadm --create --verbose /dev/md2 --level=1 /dev/sdc1
>> /dev/sdd1
>> mdadm: error opening /dev/md2: No such file or directory
>>
>> will return that error, what shouldi do?
>
> Not familiar with that error, but try specifying the number of devices:
>
> # mdadm -C /dev/md2 -l1 -n2 /dev/sd[cd]1
>
> Steve Tindall

Forgot to ask, does /dev/md2 exists in /dev?

If not, you can still use makedev to generate it:

# cd /dev
# MAKEDEV md

Undocumented, but it still works.

Steve Tindall 




More information about the CentOS mailing list