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: ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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) |
| |||
| the two partitions are definitely set to FD using cfdisk any other ideas? thanks "Dako Oten" <Dako_Oten@filipines_islands.org> wrote in message news > 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) |
| ||||
| 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 |
| Thread Tools | |
| Display Modes | |
|
|