Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mdadm and /dev/md119 /dev/md120 etc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
galahad7
n00b
n00b


Joined: 18 Mar 2003
Posts: 50

PostPosted: Tue Jun 07, 2011 12:01 am    Post subject: mdadm and /dev/md119 /dev/md120 etc Reply with quote

Hi everyone,

I expect this has been asked before, but I haven't been able to find an answer on google or in the forums.

I've been using Gentoo for many years, and know how to set up a kernel and software RAID. However, systems I've setup using the latest live CDs in the last year or so, show mdadm RAIDed drives as /dev/md119, /dev/md120, /dev/md121 etc. Previously, the numbers I set when I created the mdadm nodes, were what the livecd and the kernel used, e.g. /dev/md1, /dev/md2 etc.

Could someone please enlighten me on why the liveCD and new kernels are doing this.

So after setting up with the live cd, one has to try and get the new system booting which is quite a challenge now. For instance, how does one know what grub is seeing (/dev/md? for the root= line), and also what the new kernel will see. I've managed to get these systems going, however I'm not comfortable not knowing what is going on under the covers, and how to fix it if a system breaks in the future.

The software RAID howto could do with an update as well, it doesn't talk about the new /dev/md119, /dev/md120.. etc numbering that I'm seeing. http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml

What would be most helpful is a way to know how GRUB is going to interpret my /dev/mdxxx arrays, and then, how the new kernel is going to interpret the arrays. Ideally, one would somehow uniquely define a partition and use that ID in GRUB and in /etc/fstab.

Thanks for your help
This one has me scratching my head.

Cheers
Back to top
View user's profile Send private message
[n00b@localhost]
Apprentice
Apprentice


Joined: 30 Aug 2004
Posts: 266
Location: London, UK

PostPosted: Tue Jun 07, 2011 11:58 am    Post subject: Reply with quote

When newer versions of mdadm assemble their arrays they create a node /dev/mdX with X starting at 127 and decreasing for each array found. Each array in newer versions of mdadm also has a name and a symlink is created in /dev/md/ with the name of the array pointing to the actual device. This is the device that grub sees although if your root partition is raid then you will need to assemble it in an initramfs prior to booting. A good guide to this can be found at https://raid.wiki.kernel.org/index.php/RAID_Boot.
Back to top
View user's profile Send private message
Fog_Watch
Apprentice
Apprentice


Joined: 24 Jul 2006
Posts: 268
Location: Utility Muffin Research Kitchen

PostPosted: Wed Jun 08, 2011 2:27 am    Post subject: Re: mdadm and /dev/md119 /dev/md120 etc Reply with quote

galahad7 wrote:
Hi everyone,
I've been using Gentoo for many years, and know how to set up a kernel and software RAID. However, systems I've setup using the latest live CDs in the last year or so, show mdadm RAIDed drives as /dev/md119, /dev/md120, /dev/md121 etc. Previously, the numbers I set when I created the mdadm nodes, were what the livecd and the kernel used, e.g. /dev/md1, /dev/md2 etc.
Cheers

Consider having a line in /etc/mdadm.conf like:
Code:
ARRAY /dev/md0 UUID=699e19a6:92c6a2f9:c25cf589:b000c111
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum