LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   mdadm RAID1 won't mount on boot (http://www.linuxquestions.org/questions/linux-hardware-18/mdadm-raid1-wont-mount-on-boot-759833/)

traigo 10-05-2009 11:05 AM

mdadm RAID1 won't mount on boot
 
I followed the instructions here to setup a RAID1 array of 2 1Tb drives. It mounted without error and I edited fstab and added:
Code:

/dev/md0      /rsync    ext3    defaults    1 2
df -h showed /dev/md0 mounted to /rsync with a size of 971g.
I rebooted to be sure it would mount on boot and received this error:

Code:

fsck.ext3: No such file or directory while trying to open /dev/md0
The superblock could not be read or does not describe a correct ext2 filesystem.  If the device is valid and it really contains an ext2 filesystem (and not swap or dfs or something else) then the superblock is corrupt and you might try running e2fsck with an alternate superblock
fsck died with exit status 8

I tried running the command it gave me but it gave the same error.

Doculus 10-05-2009 11:35 AM

Is your partition type 'fd'?
Is raid1 module loaded, or compiled into kernel?
What distro do you have?

Maybe you should add your drive into /etc/mdadm.conf, depending on distro, and it's initrd/initscripts.

traigo 10-05-2009 11:42 AM

Quote:

Originally Posted by Doculus (Post 3708486)
Is your partition type 'fd'?
Is raid1 module loaded, or compiled into kernel?
What distro do you have?

Maybe you should add your drive into /etc/mdadm.conf, depending on distro, and it's initrd/initscripts.

The partition type 'fd' was not set. I must have missed that step.
The mdadm was installed in Ubuntu 9.04 server. I did add it to mdadm.conf.

Thanks, I'll retry that.

Traigo

traigo 10-05-2009 02:58 PM

Ok, that fixed it. Thanks


All times are GMT -5. The time now is 04:04 PM.