LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

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

Rep: Reputation: 0
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
 
Old 07-29-2008, 11:10 PM   #2
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 4&5, Fedora 10, CentOS 5.4, IPCop
Posts: 569

Rep: Reputation: 54
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
 
Old 07-30-2008, 01:15 PM   #3
kenoshi
Member
 
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.
 
  


Reply


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 01:38 AM
change file permission of a mouse device file permanently alexandre_fs Linux - General 5 01-09-2007 06:30 AM
usbserial doesn't create a device spuzzzzzzz Linux - Hardware 2 11-23-2004 03:48 PM
how do I create the wlan0 device? veritas Linux - Wireless Networking 6 08-09-2004 04:09 PM
How can we create file device? l_9_l Linux - General 1 01-11-2002 10:50 AM


All times are GMT -5. The time now is 07:04 AM.

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