Unix Technical Forum

Newbie Question - Software RAID issues

This is a discussion on Newbie Question - Software RAID issues within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi, I have setup a software RAID array in Debian with a 2.4 kernel using mdadm with this command: ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 08:21 PM
Craig Stein
 
Posts: n/a
Default Newbie Question - Software RAID issues

Hi,
I have setup a software RAID array in Debian with a 2.4 kernel using mdadm
with this command:
mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/hdb3
/dev/hdd2
The two devs are identically sized partitions on two different channels and
two different HDs. This works and tells me that /dev/md0 is up and running.
I mount the device as my home directory with:
mount /dev/md0 /home
Pretty standard so far.
However soon as I reboot and run cat /proc/mdstat
it says I have no md devices. When I run the mdstat and mount commands
everything works fine again.

How do I make this so the raid is setup and mounted whenever the machine is
booted?

thanks in advance,
Craig


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 08:22 PM
Dako Oten
 
Posts: n/a
Default Re: Newbie Question - Software RAID issues

On Wed, 16 Jun 2004 16:17:42 -0600, Craig Stein wrote:

> Hi,
> I have setup a software RAID array in Debian with a 2.4 kernel using mdadm
> with this command:
> mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/hdb3
> /dev/hdd2
> The two devs are identically sized partitions on two different channels
> and two different HDs. This works and tells me that /dev/md0 is up and
> running. I mount the device as my home directory with: mount /dev/md0
> /home
> Pretty standard so far.
> However soon as I reboot and run cat /proc/mdstat it says I have no md
> devices. When I run the mdstat and mount commands everything works fine
> again.
>
> How do I make this so the raid is setup and mounted whenever the machine
> is booted?
>
> thanks in advance,
> Craig


hello,

I think you need to change the partition id of your
raid partitions. ID 'fd' as 'Linux raid auto'. So it
would be auto seen by your kernel on startup.


--
Pat S.Tongco
- stderr(Cagayan de Oro)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 08:48 PM
Craig Stein
 
Posts: n/a
Default Re: Newbie Question - Software RAID issues

the two partitions are definitely set to FD using cfdisk
any other ideas?

thanks

"Dako Oten" <Dako_Oten@filipines_islands.org> wrote in message
newsan.2004.06.17.20.19.25.197161@filipines_isla nds.org...
> On Wed, 16 Jun 2004 16:17:42 -0600, Craig Stein wrote:
>
> > Hi,
> > I have setup a software RAID array in Debian with a 2.4 kernel using

mdadm
> > with this command:
> > mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/hdb3
> > /dev/hdd2
> > The two devs are identically sized partitions on two different channels
> > and two different HDs. This works and tells me that /dev/md0 is up and
> > running. I mount the device as my home directory with: mount /dev/md0
> > /home
> > Pretty standard so far.
> > However soon as I reboot and run cat /proc/mdstat it says I have no md
> > devices. When I run the mdstat and mount commands everything works fine
> > again.
> >
> > How do I make this so the raid is setup and mounted whenever the machine
> > is booted?
> >
> > thanks in advance,
> > Craig

>
> hello,
>
> I think you need to change the partition id of your
> raid partitions. ID 'fd' as 'Linux raid auto'. So it
> would be auto seen by your kernel on startup.
>
>
> --
> Pat S.Tongco
> - stderr(Cagayan de Oro)



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 08:49 PM
David
 
Posts: n/a
Default Re: Newbie Question - Software RAID issues

Craig Stein wrote:
> the two partitions are definitely set to FD using cfdisk
> any other ideas?


What does "df -h" show after booting?
It should show something like this.

$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 3.8G 2.7G 1.2G 71% /
/dev/md1 2.3G 557M 1.7G 25% /home


--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.26 SMP i686 (GCC) 3.3.4
Uptime:7 days, 8:53, 1 user, load average: 1.04, 1.03, 1.00
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:42 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com