Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-29-2008, 09:29 AM   #1
LQ Newbie
Registered: Feb 2008
Posts: 5

Rep: Reputation: 0
How to create md device permanently


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.

Old 07-30-2008, 12:10 AM   #2
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 572

Rep: Reputation: 56

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?

Old 07-30-2008, 02:15 PM   #3
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Q: How do I permanently mount a SATA RAID device? csantrim Linux - Hardware 1 09-09-2007 02:38 AM
change file permission of a mouse device file permanently alexandre_fs Linux - General 5 01-09-2007 07:30 AM
usbserial doesn't create a device spuzzzzzzz Linux - Hardware 2 11-23-2004 04:48 PM
how do I create the wlan0 device? veritas Linux - Wireless Networking 6 08-09-2004 05:09 PM
How can we create file device? l_9_l Linux - General 1 01-11-2002 11:50 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration