How to create md device permanently
HI,
i have created some mirrored devices using the mdadm command. # cat /proc/mdstat Personalities : [raid1] md3 : active raid1 sdr[1] sdn[0] 8388544 blocks [2/2] [UU] unused devices: <none> But after reboot the server md devices are not accessable. root@B******L385 ~]# cat /proc/mdstat Personalities : unused devices: <none> [root@*****L385 hp_fibreutils]# cat /etc/mdadm.conf DEVICE /dev/sd[klmn] /dev/sd[opqr] ARRAY /dev/md3 level=raid1 num-devices=2 UUID=845d1ee4:22823587:5dc1816f:54b474de ARRAY /dev/md2 level=raid1 num-devices=2 UUID=19dfbd17:86e4038c:c82a9596:69212b25 ARRAY /dev/md1 level=raid1 num-devices=2 UUID=2175df74:6fc78b59:c6a3cba2:1ef3b12d ARRAY /dev/md0 level=raid1 num-devices=2 UUID=c056e428:137fad3c:8d0f7800:8784e2f8 could you please let me know how what i have to do for solving this issue. regards josin |
Hi,
Which distro are you using? It sounds like your system initialization script isn't building the array for you. On RHEL, the /etc/rc.d/rc.sysinit script should build your array(s) from the /etc/mdadm.conf file. Does your script look for the mdadm.conf file and process it if it exists? Ian |
Are these SAN luns? If so you might want to add some udev rules to manually bind them first so your device name doesn't change after boot...then md.
|
All times are GMT -5. The time now is 01:36 PM. |