LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-09-2006, 01:26 AM   #1
dreams
Member
 
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39

Rep: Reputation: 15
how to start a md device?


hello everyone
my md0 is a raid1 device, and i stop it ,
Code:
mdadm --stop /dev/md0
but i want to start it now , how can i do that?
Code:
mdadm --run /dev/md0 
mdadm : failed to run array /dev/md0: Invalid argument
thank u so much
 
Old 02-09-2006, 08:39 AM   #2
dreams
Member
 
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39

Original Poster
Rep: Reputation: 15
anyone can help me ?
i am so appreciated.
 
Old 02-11-2006, 08:23 AM   #3
dreams
Member
 
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39

Original Poster
Rep: Reputation: 15
anyone ...
 
Old 02-11-2006, 08:51 AM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
`man mdadm` says:

Quote:
mdadm --assemble --scan
This will assemble and start all arrays listed in the standard confile file. This command will typi-
cally go in a system startup file.
 
Old 02-13-2006, 04:27 AM   #5
dreams
Member
 
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39

Original Poster
Rep: Reputation: 15
thank uselpa,
but i haven't any mdadm config file,
/etc/mdadm/mdadm.conf? I haven't it
how can i create it ?

i am a non-englishspeaker, so my english is so poor, can't understand whole things of mdadm's manpage
 
Old 02-13-2006, 09:31 PM   #6
dreams
Member
 
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39

Original Poster
Rep: Reputation: 15
thanks uselpa
i issue this:
Code:
mdadm --assemble /dev/md0 /dev/hda2 /dev/hdb2
start md0 again, thanks, but i issue this, it prompt me:
Code:
mdadm --assemble --scan
mdadm: No array found in config file
btw, how can i create or generate this file?
Code:
/etc/mdadm/mdadm.conf.
thank u so much everyone

Last edited by dreams; 02-13-2006 at 09:39 PM.
 
Old 02-14-2006, 01:15 AM   #7
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Please have a look at http://www.linuxdevcenter.com/pub/a/...2/05/RAID.html, maybe that can help.
 
Old 02-14-2006, 02:56 AM   #8
dreams
Member
 
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39

Original Poster
Rep: Reputation: 15
thank u so much , uselpa
im so appreciated
 
Old 02-14-2006, 03:18 AM   #9
Clemente
Member
 
Registered: Aug 2003
Distribution: Debian, Ubuntu
Posts: 188

Rep: Reputation: 30
Just an addendum:
If you compile all the md related eatures into your kernel (ide drivers, sata drivers if needed, md support etc), the kernel can do autodetection for any raid devices at boot time.
So you don't have to care for raidtools or mdadm any more.
I think, that the initrd should help in case you prefer modules - but no experience here.
Clemente
 
Old 02-14-2006, 07:03 AM   #10
guysoft
Member
 
Registered: Jun 2004
Location: israel
Distribution: mandrake, MEPIS and menny live-cds
Posts: 71

Rep: Reputation: 16
Quote:
Originally Posted by Clemente
Just an addendum:
If you compile all the md related eatures into your kernel (ide drivers, sata drivers if needed, md support etc), the kernel can do auto-detection for any raid devices at boot time.
So you don't have to care for raid tools or mdadm any more.
I think, that the initrd should help in case you prefer modules - but no experience here.
Clemente
i think life is easier with inird (when it has the right modules).

i have RAID-1 on my PC at home, it boots like this,

the grub configurations is as so (located at /boot/grub/menu.lst):
Code:
title MEPIS at hda2 RAID, kernel 2.6.14-686
root (hd2,0)
kernel /boot/vmlinuz-2.6.14-2-686 root=/dev/md0 md=0,/dev/hda2,/dev/hdc1 nomce quiet splash=verbose vga=791
initrd /boot/initrd.img-2.6.14-2-686
savedefault
while the initrd image is created with mkinitramfs and not mkinitrd (otherwise you don't have the right modules). this should work with any kernel later than 2.6.12

Last edited by guysoft; 02-14-2006 at 07:04 AM.
 
Old 02-14-2006, 07:24 PM   #11
dreams
Member
 
Registered: Oct 2005
Location: Beijing, China
Distribution: ubuntu 7.04, Mandriva 2007.0
Posts: 39

Original Poster
Rep: Reputation: 15
thanks all
 
  


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
How do I start my USB device? Andriy Slackware 8 01-21-2006 11:23 PM
How can I start a programm when a USB device is hotplugged?? Imyourdaddy Linux - General 3 11-24-2005 03:27 PM
Ext3-fs error (device hda1) in start-transaction kt8993 Linux - General 0 02-05-2005 11:09 AM
stopping a device on start... derfaust Linux - Software 13 07-04-2004 04:40 AM
Start wlan0 device at startup in mandrake 10 N1mrod Linux - Newbie 1 04-26-2004 08:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:29 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration