LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 10-31-2009, 06:18 AM   #1
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 33
Thanked: 3
Reassembling a raid device


[Log in to get rid of this advertisement]
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?
windows_vista geek.ksa is offline  
Tag This Post ,
Reply With Quote
Old 10-31-2009, 06:08 PM   #2
bertl
LQ Newbie
 
Registered: May 2004
Location: Amsterdam, Holland
Distribution: Ubuntu, Redhat (others in the past)
Posts: 28
Thanked: 10
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
linuxubuntu bertl is offline     Reply With Quote
Thanked by:
Old 11-01-2009, 04:21 AM   #3
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 33
Thanked: 3

Original Poster
Thanks alot Bert. It all boils down to "persistent blocks" on raid members!
windows_vista geek.ksa is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 07:27 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration