Auto allocating RAID sets on reboot w/mdadm

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Auto allocating RAID sets on reboot w/mdadm

Jesse, Rich
Hey all,

I've got two RAID-0 sets (I know, I know, but they really are expendable
and it's my test box) but when I reboot, the RAID sets are not
reallocated.  I've looked in /etc/init.d/mdadm and
/lib/rcscripts/raid_start.sh, but "mdadm --assemble" isn't called and
consequently the RAIDs  aren't mounted.  Here's the pertinent lines from
/etc/mdadm.conf:

#DEVICE /dev/sd*
#ARRAY /dev/md0 devices=/dev/sda,/dev/sdb,/dev/sdc,/dev/sdd
#ARRAY /dev/md1 devices=/dev/sde,/dev/sdf
ARRAY /dev/md0 level=raid0 num-devices=4
UUID=bb968c49:5ca8ea1b:383ac76f:8950b88a
ARRAY /dev/md1 level=raid0 num-devices=2
UUID=96ba9471:e161224f:6bac7812:23c3f914

I've tried the commented out lines first, but no autostart so I went
with the bottom ones, which are the output of "mdadm --examine --scan".
And still no autostart.  Not that I really thought so, since there's no
"mdadm --assemble" found in the startup, but I'm still kinda green on
mdadm so I thought I'd try.

And Google hasn't really helped.  The Gentoo Wiki's great for
installation and setup, but I wasn't able to find anything about this.

Thoughts?  This must be really simple...

TIA,
Rich

--
[hidden email] mailing list

Reply | Threaded
Open this post in threaded view
|

Re: Auto allocating RAID sets on reboot w/mdadm

Patrick Lauer
On Wed, 2005-11-23 at 09:21 -0600, Jesse, Rich wrote:

> Hey all,
>
> I've got two RAID-0 sets (I know, I know, but they really are expendable
> and it's my test box) but when I reboot, the RAID sets are not
> reallocated.  I've looked in /etc/init.d/mdadm and
> /lib/rcscripts/raid_start.sh, but "mdadm --assemble" isn't called and
> consequently the RAIDs  aren't mounted.  Here's the pertinent lines from
> /etc/mdadm.conf:
>
> #DEVICE /dev/sd*
> #ARRAY /dev/md0 devices=/dev/sda,/dev/sdb,/dev/sdc,/dev/sdd
> #ARRAY /dev/md1 devices=/dev/sde,/dev/sdf
> ARRAY /dev/md0 level=raid0 num-devices=4
> UUID=bb968c49:5ca8ea1b:383ac76f:8950b88a
> ARRAY /dev/md1 level=raid0 num-devices=2
> UUID=96ba9471:e161224f:6bac7812:23c3f914
add a DEVICE line ...
mdadm will only use disks that are listed there, e.g.
DEVICE /dev/sd[abcd]1

[snip]
> And Google hasn't really helped.  The Gentoo Wiki's great for
> installation and setup, but I wasn't able to find anything about this.
man mdadm / mdadm --help
> Thoughts?  This must be really simple...
It usually is :-)

wkr,
Patrick
--
Stand still, and let the rest of the universe move

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Auto allocating RAID sets on reboot w/mdadm

Ewald Wasscher
In reply to this post by Jesse, Rich
Jesse, Rich wrote:

> Hey all,
>
> I've got two RAID-0 sets (I know, I know, but they really are expendable
> and it's my test box) but when I reboot, the RAID sets are not
> reallocated.  I've looked in /etc/init.d/mdadm and
> /lib/rcscripts/raid_start.sh, but "mdadm --assemble" isn't called and
> consequently the RAIDs  aren't mounted.  Here's the pertinent lines from
> /etc/mdadm.conf:
>
> #DEVICE /dev/sd*
> #ARRAY /dev/md0 devices=/dev/sda,/dev/sdb,/dev/sdc,/dev/sdd
> #ARRAY /dev/md1 devices=/dev/sde,/dev/sdf
> ARRAY /dev/md0 level=raid0 num-devices=4
> UUID=bb968c49:5ca8ea1b:383ac76f:8950b88a
> ARRAY /dev/md1 level=raid0 num-devices=2
> UUID=96ba9471:e161224f:6bac7812:23c3f914
>
> I've tried the commented out lines first, but no autostart so I went
> with the bottom ones, which are the output of "mdadm --examine --scan".
> And still no autostart.  Not that I really thought so, since there's no
> "mdadm --assemble" found in the startup, but I'm still kinda green on
> mdadm so I thought I'd try.
>
> And Google hasn't really helped.  The Gentoo Wiki's great for
> installation and setup, but I wasn't able to find anything about this.
>
> Thoughts?  This must be really simple...
>
>  
You do have raid0 compiled in your kernel or loaded as a kernel module,
do you? I forgot that once.

Ewald Wasscher


signature.asc (216 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Auto allocating RAID sets on reboot w/mdadm

Jesse, Rich
In reply to this post by Jesse, Rich
Well yes, I had previously tried the lines that were commented out,
including the DEVICE statement as listed.  And I had followed one of the
conventions given in mdadm.conf(5) -- using the "*" to wildcard the
devices.  I had seen other examples on the net where an SA had used
multiple DEVICE statement to separate out the devices with their
respective ARRAYs, but there's no mention of that being needed in the
man pages of mdadm/mdadm.conf that I could find.

And I may be a little dense here, but I still don't see an "mdadm
--assemble" in the startup anywhere, so I'm a little confused as to how
this is supposed to happen.  Rough being a raidtools kinda guy for all
those years...  ;)

Thanks!
Rich

-----Original Message-----
From: Patrick Lauer [mailto:[hidden email]]
Sent: Wednesday, November 23, 2005 9:38 AM
To: [hidden email]
Subject: Re: [gentoo-server] Auto allocating RAID sets on reboot w/mdadm


On Wed, 2005-11-23 at 09:21 -0600, Jesse, Rich wrote:
> Hey all,
>
> I've got two RAID-0 sets (I know, I know, but they really are
expendable
> and it's my test box) but when I reboot, the RAID sets are not
> reallocated.  I've looked in /etc/init.d/mdadm and
> /lib/rcscripts/raid_start.sh, but "mdadm --assemble" isn't called and
> consequently the RAIDs  aren't mounted.  Here's the pertinent lines
from
> /etc/mdadm.conf:
>
> #DEVICE /dev/sd*
> #ARRAY /dev/md0 devices=/dev/sda,/dev/sdb,/dev/sdc,/dev/sdd
> #ARRAY /dev/md1 devices=/dev/sde,/dev/sdf
> ARRAY /dev/md0 level=raid0 num-devices=4
> UUID=bb968c49:5ca8ea1b:383ac76f:8950b88a
> ARRAY /dev/md1 level=raid0 num-devices=2
> UUID=96ba9471:e161224f:6bac7812:23c3f914
add a DEVICE line ...
mdadm will only use disks that are listed there, e.g.
DEVICE /dev/sd[abcd]1

[snip]
> And Google hasn't really helped.  The Gentoo Wiki's great for
> installation and setup, but I wasn't able to find anything about this.
man mdadm / mdadm --help
> Thoughts?  This must be really simple...
It usually is :-)

wkr,
Patrick
--
Stand still, and let the rest of the universe move

--
[hidden email] mailing list

Reply | Threaded
Open this post in threaded view
|

RE: Auto allocating RAID sets on reboot w/mdadm

Jesse, Rich
In reply to this post by Jesse, Rich
Yep!  I've been using the RAID sets for awhile, but I rebooted to get
sound (*that* I forgot in the kernel) and saw that they didn't come
back.

Thanks!
Rich

-----Original Message-----
From: Ewald Wasscher [mailto:[hidden email]]
Sent: Wednesday, November 23, 2005 9:40 AM
To: [hidden email]
Subject: Re: [gentoo-server] Auto allocating RAID sets on reboot w/mdadm


Jesse, Rich wrote:
> Hey all,
>
> I've got two RAID-0 sets (I know, I know, but they really are
expendable
> and it's my test box) but when I reboot, the RAID sets are not
> reallocated.  I've looked in /etc/init.d/mdadm and
> /lib/rcscripts/raid_start.sh, but "mdadm --assemble" isn't called and
> consequently the RAIDs  aren't mounted.  Here's the pertinent lines
from

> /etc/mdadm.conf:
>
> #DEVICE /dev/sd*
> #ARRAY /dev/md0 devices=/dev/sda,/dev/sdb,/dev/sdc,/dev/sdd
> #ARRAY /dev/md1 devices=/dev/sde,/dev/sdf
> ARRAY /dev/md0 level=raid0 num-devices=4
> UUID=bb968c49:5ca8ea1b:383ac76f:8950b88a
> ARRAY /dev/md1 level=raid0 num-devices=2
> UUID=96ba9471:e161224f:6bac7812:23c3f914
>
> I've tried the commented out lines first, but no autostart so I went
> with the bottom ones, which are the output of "mdadm --examine
--scan".
> And still no autostart.  Not that I really thought so, since there's
no
> "mdadm --assemble" found in the startup, but I'm still kinda green on
> mdadm so I thought I'd try.
>
> And Google hasn't really helped.  The Gentoo Wiki's great for
> installation and setup, but I wasn't able to find anything about this.
>
> Thoughts?  This must be really simple...
>
>  
You do have raid0 compiled in your kernel or loaded as a kernel module,
do you? I forgot that once.

Ewald Wasscher

--
[hidden email] mailing list