[CentOS] permanently add md device

Theo Band theo.band at greenpeak.com
Fri May 28 14:39:20 UTC 2010


Wessel | Postoffice wrote:
> Hi All
>
> Currently i'm setting up a 5.4 server and try to create a 3rd raid device, when i run:
> $mdadm  --create /dev/md2 -v  --raid-devices=15 --chunk=32 --level=raid6 /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi /dev/sdj /dev/sdk /dev/sdl /dev/sdm /dev/sdn /dev/sdo /dev/sdp /dev/sdq
>
> the device file "md2" is created and the raid is being configured. but somehow /dev/md2 is flushed when i reboot the system , same story if i create the file by mknod or MAKEDEV.
> does anyone know a way to solve this issue and permanently add md2 to devices?
>
>   
I think it helps if you set the disk flag to raid auto detect (fd =
Linux raid auto). Can be done with parted or fdisk (option t).

Theo



More information about the CentOS mailing list