Re: need some help very strange behavior mdadm writes data to non raid disk?

From
Jelle de Jong <hidden>
Date
2008-06-15 15:46:38
NeilBrown wrote:
On Sun, June 15, 2008 7:27 pm, Jelle de Jong wrote:
quoted
This message contains the following attachment(s):
debug-mdadm.txt
setup-mdadm.txt

Dear Neil,

Thank you for creating mdadm. I am creating my first raid1 array and got
some very confusing issues.

My raid1 md0 array should consist out of disks:
/dev/sda1
/dev/sdb1

These are 749GB ext3 partitions in mirroring mode.

However when I reboot my system, mdadm tells me everything is fine and
is correctly using sda1 and sdb1.

But it is not using a 749GB partition, it is using the same partition
size as my /dev/sdc1? and when I write a test file to the root dir and
then mount /dev/sdc1 the file is there also. So md0 is directly
connected with /dev/sdc1. It does not make any sens to me.

Can you please look at my debug en setup file that i created and maybe
see something that is going wrong?

It is fairly clear that you are still booting off /dev/sdc1 and that is
being mounted as the root filesystem.
You probably need to run "mkinitramfs" or something like that to create
a new ramfs which mounts /dev/md0 instead of /dev/sdc.

If you don't know how to do that, trying asking on
   linux-raid@vger.kernel.org

NeilBrown
Thank you for your eye opener :-D

I totally overlooked the grub menu file. I know have a working system, I removed the /dev/sdc1 and now running on raid array only :-D

Thank for your support.

PS. I attached my complete configuration routine as attachment, if you see something wrong/dangerous/advice please notify me.

Kind regards,

Jelle de Jong

Attachments

Thread (1 message) 1 message, 1 author, last reply 2008-06-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help