LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-03-2011, 08:12 AM   #1
suhas!
Member
 
Registered: Mar 2007
Posts: 100

Rep: Reputation: 17
raid array metadata info (mdadm)


When we assemble a raid array, from where does it load configuration information for that array? I thought it refers to /etc/mdadm.conf file, but in my system, mdadm.conf file doesn't even contain all information. Still it is able to successfully assemble previously created device.

# cat /etc/mdadm.conf
DEVICE /dev/sd[bcdjkl]1
DEVICE /dev/loop[012345]
MAILADDR root
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=8be34453:45298936:fae1028b:65b2510c


Above, the information about devices that comprises device md0 is not present (e.g. /dev/sda1, /dev/sda2 etc). Its not revealed by mdadm scan either.

# mdadm --detail --scan
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=8be34453:45298936:fae1028b:65b2510c


Still it is able to assemble the device.

# mdadm --assemble /dev/md0
mdadm: /dev/md0 has been started with 2 drives.



How did it find the underlying devices of md0 while assembling it?

Regards,
 
Old 02-03-2011, 08:39 AM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
You might want to check out this wiki regarding RAID superblock storage and format.


Hope this helps.

Regards,

Fordeck
 
Old 02-18-2011, 05:26 AM   #3
suhas!
Member
 
Registered: Mar 2007
Posts: 100

Original Poster
Rep: Reputation: 17
Thanks for the reply.. that was helpful..

However, there is one more thing I am wondering... I know mdadm uses device mapper only at the backend.. so I decided to get all info about raid array I created with mdadm command through dmsetup command. However when I can still see array status in mdadm --scan command, I am not getting any info in dmsetup info or dmsetup table command. Why is it that, dmsetup should show information abuot mdadm created array right?

Regards,
 
  


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
[SOLVED] Bad Sectors on mdadm Raid 5 array The Jester Linux - General 4 08-21-2010 06:47 AM
I need help on repairing a mdadm raid 5 array compgeek50 Linux - Hardware 0 02-24-2008 09:06 AM
Recovering a Raid 5 array, mdadm mess-up somebox Linux - Server 4 10-17-2007 07:57 PM
mdadm: re-assembling raid array on new installation hamish Linux - Server 3 06-10-2007 03:23 PM
using mdadm to grow an existing RAID 1 array kevburger Linux - Hardware 1 08-18-2005 09:17 AM


All times are GMT -5. The time now is 12:17 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