All of lore.kernel.org
 help / color / mirror / Atom feed
* Ubuntu - RAID Array not "assembling" on boot.
@ 2006-11-21 20:06 John Reeves
  2006-11-21 20:13 ` Henrik Holst
  2006-11-21 20:25 ` dean gaudet
  0 siblings, 2 replies; 6+ messages in thread
From: John Reeves @ 2006-11-21 20:06 UTC (permalink / raw)
  To: linux-raid

Hey,

Having a great deal of difficulty getting my 3 disk RAID 5 array to
reappear on restart, Ubuntu 6.10.  Here's the contents of my
/etc/mdadm/mdadm.conf file:

ARRAY /dev/md0 level=raid5 num-devices=3
UUID=6a9a102a:101addd2:f95758f6:11ac6d3c 

Obviously /dev/md0 does not "appear" on restart, the only way I can get
the RAID Array to assemble is to issue the following:

mknod -m 0660 /dev/md0 b 9 0
mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1

I can add these lines to my /etc/init.d/bootmisc.sh which does work, but
seeing as I'm not 100% sure what the mknod command is doing, and the
fact that I'm pretty sure that this is not the way it's mean to be... 
(the mknod is required, or mdadm complains that /dev/md0 does not
exist).  

I'm nearly tearing my hair out over this one, so if someone could be of
assistance I would be greatly appreciative.

Regards
J. Reeves.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ubuntu - RAID Array not "assembling" on boot.
  2006-11-21 20:06 Ubuntu - RAID Array not "assembling" on boot John Reeves
@ 2006-11-21 20:13 ` Henrik Holst
  2006-11-21 22:26   ` John Reeves
  2006-11-21 20:25 ` dean gaudet
  1 sibling, 1 reply; 6+ messages in thread
From: Henrik Holst @ 2006-11-21 20:13 UTC (permalink / raw)
  To: John Reeves; +Cc: linux-raid

John Reeves wrote:
> Hey,
> 
> Having a great deal of difficulty getting my 3 disk RAID 5 array to
> reappear on restart, Ubuntu 6.10.  Here's the contents of my
> /etc/mdadm/mdadm.conf file:
> 
> ARRAY /dev/md0 level=raid5 num-devices=3
> UUID=6a9a102a:101addd2:f95758f6:11ac6d3c 
> 
> Obviously /dev/md0 does not "appear" on restart, the only way I can get
> the RAID Array to assemble is to issue the following:
> 
> mknod -m 0660 /dev/md0 b 9 0
> mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1
> 
> I can add these lines to my /etc/init.d/bootmisc.sh which does work, but
> seeing as I'm not 100% sure what the mknod command is doing, and the
> fact that I'm pretty sure that this is not the way it's mean to be... 
> (the mknod is required, or mdadm complains that /dev/md0 does not
> exist).  
> 
> I'm nearly tearing my hair out over this one, so if someone could be of
> assistance I would be greatly appreciative.

Try "dpkg-reconfigure mdadm" as root. Under Debian this will give you
the chance to configure the startup configuration for all software raids
in the system. Under any cirtumstances you should not have to use mknod.
Instead try adding the --auto=yes switch to mdadm. Then mdadm will
create the node itself.

/Henrik Holst


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ubuntu - RAID Array not "assembling" on boot.
  2006-11-21 20:06 Ubuntu - RAID Array not "assembling" on boot John Reeves
  2006-11-21 20:13 ` Henrik Holst
@ 2006-11-21 20:25 ` dean gaudet
  1 sibling, 0 replies; 6+ messages in thread
From: dean gaudet @ 2006-11-21 20:25 UTC (permalink / raw)
  To: John Reeves; +Cc: linux-raid



On Tue, 21 Nov 2006, John Reeves wrote:

> Hey,
> 
> Having a great deal of difficulty getting my 3 disk RAID 5 array to
> reappear on restart, Ubuntu 6.10.  Here's the contents of my
> /etc/mdadm/mdadm.conf file:
> 
> ARRAY /dev/md0 level=raid5 num-devices=3
> UUID=6a9a102a:101addd2:f95758f6:11ac6d3c 

just to be sure... that's one line in your config file and your mailer 
wrapped it?

also -- do you have a "DEVICE partitions" line in the config file?

-dean

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ubuntu - RAID Array not "assembling" on boot.
  2006-11-21 20:13 ` Henrik Holst
@ 2006-11-21 22:26   ` John Reeves
  2006-11-22  7:43     ` dean gaudet
  2006-11-22 15:41     ` Gabor Gombas
  0 siblings, 2 replies; 6+ messages in thread
From: John Reeves @ 2006-11-21 22:26 UTC (permalink / raw)
  To: Henrik Holst; +Cc: linux-raid


On Tue, 21 Nov 2006 21:13:00 +0100, "Henrik Holst"
<henrik.holst@idgmail.se> said:
> > Having a great deal of difficulty getting my 3 disk RAID 5 array to
> > reappear on restart, Ubuntu 6.10.  
... < snip > ...
> > the only way I can get
> > the RAID Array to assemble is to issue the following:
> > 
> > mknod -m 0660 /dev/md0 b 9 0
> > mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1

> Try "dpkg-reconfigure mdadm" as root. Under Debian this will give you
> the chance to configure the startup configuration for all software raids
> in the system. Under any cirtumstances you should not have to use mknod.
> Instead try adding the --auto=yes switch to mdadm. Then mdadm will
> create the node itself.

That's the one!  Blowing away my current mdadm.conf and issuing a
dpkg-reconfigure mdadm bought my raid online with the subsequent reboot
- I am very greatful!  Now I guess I would like to know where I go wrong
:)

I created the raid in the first place by issuing a:

# sudo mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 \
/dev/sda1 /dev/sdb1 /dev/sdc1

After this, no mdadm.conf file was created for me, so I made by own by
issuing:

# mdadm --detail --scan >> /etc/mdadm/mdadm.conf

And thats when the whole "assemble" on boot problem came from.  I
presume that the above command (--detail --scan)  is not the correct way
to make the mdadm.conf file - how should it be made?

Finally, on a side note, I have formatted this array (/dev/md0) with
ext3, I planned to exapand the array in the future by adding extra disks
- I presume I can do this with 'mdadm --grow' (and some extra research!
:)  Am I correct on this assumption?

Thanks again
John.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ubuntu - RAID Array not "assembling" on boot.
  2006-11-21 22:26   ` John Reeves
@ 2006-11-22  7:43     ` dean gaudet
  2006-11-22 15:41     ` Gabor Gombas
  1 sibling, 0 replies; 6+ messages in thread
From: dean gaudet @ 2006-11-22  7:43 UTC (permalink / raw)
  To: John Reeves; +Cc: Henrik Holst, linux-raid

On Tue, 21 Nov 2006, John Reeves wrote:

> On Tue, 21 Nov 2006 21:13:00 +0100, "Henrik Holst"
> <henrik.holst@idgmail.se> said:
> > > Having a great deal of difficulty getting my 3 disk RAID 5 array to
> > > reappear on restart, Ubuntu 6.10.  
> ... < snip > ...
> > > the only way I can get
> > > the RAID Array to assemble is to issue the following:
> > > 
> > > mknod -m 0660 /dev/md0 b 9 0
> > > mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1
> 
> > Try "dpkg-reconfigure mdadm" as root. Under Debian this will give you
> > the chance to configure the startup configuration for all software raids
> > in the system. Under any cirtumstances you should not have to use mknod.
> > Instead try adding the --auto=yes switch to mdadm. Then mdadm will
> > create the node itself.
> 
> That's the one!  Blowing away my current mdadm.conf and issuing a
> dpkg-reconfigure mdadm bought my raid online with the subsequent reboot
> - I am very greatful!  Now I guess I would like to know where I go wrong
> :)
> 
> I created the raid in the first place by issuing a:
> 
> # sudo mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 \
> /dev/sda1 /dev/sdb1 /dev/sdc1
> 
> After this, no mdadm.conf file was created for me, so I made by own by
> issuing:
> 
> # mdadm --detail --scan >> /etc/mdadm/mdadm.conf
> 
> And thats when the whole "assemble" on boot problem came from.  I
> presume that the above command (--detail --scan)  is not the correct way
> to make the mdadm.conf file - how should it be made?

that's fine, but you need a "DEVICE partitions" line as well... that's 
what i suspect your problem was.  dpkg-reconfigure probably created it for 
you.  you should look -- because if it put in a "DEVICE /dev/sda1 
/dev/sdb1 /dev/sdc1" line then you really want to change it to 
"partitions"... so that it can handle device renames properly.


> Finally, on a side note, I have formatted this array (/dev/md0) with
> ext3, I planned to exapand the array in the future by adding extra disks
> - I presume I can do this with 'mdadm --grow' (and some extra research!
> :)  Am I correct on this assumption?

yep.

-dean

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ubuntu - RAID Array not "assembling" on boot.
  2006-11-21 22:26   ` John Reeves
  2006-11-22  7:43     ` dean gaudet
@ 2006-11-22 15:41     ` Gabor Gombas
  1 sibling, 0 replies; 6+ messages in thread
From: Gabor Gombas @ 2006-11-22 15:41 UTC (permalink / raw)
  To: John Reeves; +Cc: Henrik Holst, linux-raid

On Tue, Nov 21, 2006 at 10:26:35PM +0000, John Reeves wrote:

> # mdadm --detail --scan >> /etc/mdadm/mdadm.conf
> 
> And thats when the whole "assemble" on boot problem came from.  I
> presume that the above command (--detail --scan)  is not the correct way
> to make the mdadm.conf file - how should it be made?

It's correct, but as was already said it is not enough. On Debian you
can use the /usr/share/mdadm/mkconf script that spits out a complete
mdadm.conf.

Gabor

-- 
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences
     ---------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-11-22 15:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-21 20:06 Ubuntu - RAID Array not "assembling" on boot John Reeves
2006-11-21 20:13 ` Henrik Holst
2006-11-21 22:26   ` John Reeves
2006-11-22  7:43     ` dean gaudet
2006-11-22 15:41     ` Gabor Gombas
2006-11-21 20:25 ` dean gaudet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.