LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-31-2009, 06:18 AM   #1
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Rep: Reputation: 17
Reassembling a raid device


Hi,

I have a question that has been puzzling me since last night. I had a raid device /dev/md0 configured with raid 1 ( two devices). I stopped the array (mdadm -S /dev/md0).. If you look at /proc/mdstat, the device is not active, nothing in there.

So, To assemble the array, I did:

Code:
mdadm -A /dev/md0 /dev/hda6 /dev/hda7
The raid device is now assembled and active.

The question is: how could linux have known about what the raid level is and other raid configuration given that I had no raid configuration file?

I was thinking that such data is stored on the disks somewhere! or something like that.

Could someone help figure this out?
 
Old 10-31-2009, 06:08 PM   #2
bertl
Member
 
Registered: May 2004
Location: Amsterdam, Holland
Distribution: Ubuntu, Redhat, Angstrom (others in the past)
Posts: 33

Rep: Reputation: 21
This information is kept in a small block of meta information at the start of members of a raid set. Read about it in the good old software raid howto:

http://tldp.org/HOWTO/Software-RAID-HOWTO-5.html#ss5.9
http://tldp.org/HOWTO/Software-RAID-HOWTO-7.html#ss7.2

.. and there's an entry here:
http://linux-raid.osdl.org/index.php/Superblock

-Bert
 
Old 11-01-2009, 04:21 AM   #3
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Original Poster
Rep: Reputation: 17
Thanks alot Bert. It all boils down to "persistent blocks" on raid members!
 
  


Reply

Tags
raid


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
raid device problem bharatlalgupta Red Hat 3 03-17-2009 04:22 AM
Should Raid come up as a Block Device? tantrix Programming 0 05-17-2005 01:41 PM
New RAID device wytyspy Linux - Software 1 08-28-2003 01:54 PM
raid device - please help jmarsh Linux - Networking 0 04-09-2003 10:22 AM
RAID Device Not Initialized meshcurrent Linux - General 5 10-20-2002 04:46 AM


All times are GMT -5. The time now is 01:45 PM.

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