Newb question: Auto assembling of RAID10 (imsm) on boot

From: Sandra Escandor <hidden>
Date: 2011-06-20 12:33:57

Hello,

I'm using mdadm 3.1.4 (built from source) and I have a
/etc/mdadm/mdadm.conf with the following:


HOMEHOST Volume0

ARRAY /dev/md/imsm_container metadata=imsm UUID=...

ARRAY /dev/md/Volume0 container=.... Member = 0 UUID=...

 

And I can assemble the array on command line like so: mdadm -As.
 
but, I am not too sure what I should do with the initramfs in order for
the system to recognize that it should actually assemble the RAID when
it boots. What I've done is the following: 
After I changed my /etc/mdadm/mdadm.conf, I did an update-initramfs -k
all -u.
I did a: zcat /boot/initrd.img-2.6.35-28-generic | cpio -idv into a
/tmp/initrd folder,
but I didn't see a etc/mdadm/mdadm.conf under the /tmp/initrd folder
that I created. I also restarted the server to see if I would be able to
see /dev/md* that should be there if the RAID has been auto-assembled,
but it didn't exist on startup. I had to assemble the array on the
command-line...What am I missing?
 
Thanks,
Sandra
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help