<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Well to be completely honest, I use Gentoo, not Knoppmyth, I followed the RAID howto here:<DIV><BR class="khtml-block-placeholder"></DIV><DIV><A href="http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID">http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I skipped the stuff to install on RAID and just got the RAID working.  They go through the mdadm.conf, but essentially, the short answer is once your RAID is setup and you can see that it is all synched up (no filesystems yet hopefully), do this:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;">mdadm --detail --scan &gt;&gt; /etc/mdadm.conf</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;">The mdadm init script stuff is automatically added in upon install.  There is a start-raid script which I have pasted below:</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV># cat /lib/rcscripts/addons/raid-start.sh </DIV><DIV># /lib/rcscripts/addons/raid-start.sh:  Setup raid volumes at boot</DIV><DIV># Copyright 1999-2005 Gentoo Foundation</DIV><DIV># Distributed under the terms of the GNU General Public License v2</DIV><DIV># $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/files/raid-start.sh,v 1.4 2005/06/10 02:09:28 vapier Exp $</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[[ -f /proc/mdstat ]] || exit 0</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV># We could make this dynamic, but eh</DIV><DIV>#[[ -z ${MAJOR} ]] &amp;&amp; export MAJOR=$(awk '$2 == "md" { print $1 }' /proc/devices)</DIV><DIV>MAJOR=9</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV># Try to make sure the devices exist before we use them</DIV><DIV>create_devs() {</DIV><DIV>        local node dir minor</DIV><DIV>        for node in $@ ; do</DIV><DIV>                [[ ${node} != /dev/* ]] &amp;&amp; node=/dev/${node}</DIV><DIV>                [[ -e ${node} ]] &amp;&amp; continue</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>                dir=${node%/*}</DIV><DIV>                [[ ! -d ${dir} ]] &amp;&amp; mkdir -p "${dir}"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>                minor=${node##*/}</DIV><DIV>                mknod "${node}" b ${MAJOR} ${minor##*md} &amp;&gt; /dev/null</DIV><DIV>        done</DIV><DIV>}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV># Start software raid with raidtools (old school)</DIV><DIV>if [[ -x /sbin/raidstart &amp;&amp; -f /etc/raidtab ]] ; then</DIV><DIV>        devs=$(awk '/^[[:space:]]*raiddev/ { print $2 }' /etc/raidtab)</DIV><DIV>        if [[ -n ${devs} ]] ; then</DIV><DIV>                create_devs ${devs}</DIV><DIV>                ebegin "Starting up RAID devices (raidtools)"</DIV><DIV>                output=$(raidstart -aq 2&gt;&amp;1)</DIV><DIV>                ret=$?</DIV><DIV>                [[ ${ret} -ne 0 ]] &amp;&amp; echo "${output}"</DIV><DIV>                eend ${ret}</DIV><DIV>        fi</DIV><DIV>fi</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV># Start software raid with mdadm (new school)</DIV><DIV>if [[ -x /sbin/mdadm &amp;&amp; -f /etc/mdadm.conf ]] ; then</DIV><DIV>        devs=$(awk '/^[[:space:]]*ARRAY/ { print $2 }' /etc/mdadm.conf)</DIV><DIV>        if [[ -n ${devs} ]] ; then</DIV><DIV>                create_devs ${devs}</DIV><DIV>                ebegin "Starting up RAID devices (mdadm)"</DIV><DIV>                output=$(mdadm -As 2&gt;&amp;1)</DIV><DIV>                ret=$?</DIV><DIV>                [[ ${ret} -ne 0 ]] &amp;&amp; echo "${output}"</DIV><DIV>                eend ${ret}</DIV><DIV>        fi</DIV><DIV>fi</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV># vim:ts=4</DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;">I did a quick search for Knoppix mdadm, didn't find much....  But to help, I was wondering if you could do the following:</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;">1.  resetup your RAID array.</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;">2.  send the output of /proc/mdstat</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;">3.  Create the mdadm.conf as specified above</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;">4.  reboot</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;">5.  send the output of dmesg</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;">6.  send the output of /proc/mdstat</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 10.3px;">7.  run mdadm -As (if we are unlucky enough to not have a running RAID array at this point)</SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><DIV><DIV>On Jul 28, 2006, at 11:59 AM, Jon Larson wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> <DIV dir="ltr" align="left"><SPAN class="146163717-28072006"><FONT face="Arial" color="#0000ff" size="2">I know I created the FD "autodetect RAID" type on the partitions, but I didn't create the mdadm.conf or do anything to any init scripts. </FONT></SPAN></DIV> <DIV dir="ltr" align="left"><SPAN class="146163717-28072006"><FONT face="Arial" color="#0000ff" size="2"></FONT></SPAN> </DIV> <DIV dir="ltr" align="left"><SPAN class="146163717-28072006"><FONT face="Arial" color="#0000ff" size="2">Can you tell me what you needed to do to add the "mdadm stuff in my init scripts"? What do you mean by that?</FONT></SPAN></DIV> <DIV dir="ltr" align="left"><SPAN class="146163717-28072006"><FONT face="Arial" color="#0000ff" size="2"></FONT></SPAN> </DIV><BR> <DIV class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left"> <HR tabindex="-1"> <FONT face="Tahoma" size="2"><B>From:</B> mythtv-users-bounces@mythtv.org [<A href="mailto:mythtv-users-bounces@mythtv.org">mailto:mythtv-users-bounces@mythtv.org</A>] <B>On Behalf Of </B>David Snider<BR><B>Sent:</B> Friday, July 28, 2006 8:35 AM<BR><B>To:</B> Discussion about mythtv<BR><B>Subject:</B> Re: [mythtv-users] Software RAID disappearing on reboot...<BR></FONT><BR></DIV> <DIV></DIV>I had a similar problem, here are the things I did wrong: <DIV><BR class="khtml-block-placeholder"></DIV> <DIV>a) I didn't create a partition on the drives of the correct "Autodetect RAID type", was setting up the RAID on the raw disks instead</DIV> <DIV>b) I didn't create the /etc/mdadm.conf</DIV> <DIV>c) I didn't have the mdadm stuff in my init scripts....</DIV> <DIV><BR class="khtml-block-placeholder"></DIV> <DIV>My suggestions, setup the raid, check out the contents of /proc/mdstat after everything is all synched up, reboot... If the raid volume is there, you should be golden to proceed with LVM. Otherwise, try starting it manually with mdadm... If that doesn't work, post the output of your /proc/mdstat to the list and any applicable dmesg stuff...</DIV> <DIV><BR class="khtml-block-placeholder"></DIV> <DIV><BR class="khtml-block-placeholder"></DIV> <DIV><BR> <DIV> <DIV>On Jul 28, 2006, at 9:11 AM, Jon Larson wrote:</DIV><BR class="Apple-interchange-newline"> <BLOCKQUOTE type="cite">  <DIV><SPAN class="829420415-28072006"><FONT face="Arial" size="2">I'm using mdadm to   create a raid1 array on knoppmyth R5C7. I thought that I had overcome all the   problems since the raid array seemed to work fine--I even configured LVM on   top of it. But when I rebooted the whole thing just disappeared, as if mdadm   forgot that it ever existed. Please note, I'm not trying to boot of the raid   array (not yet), just get it up and running so that I can transfer my   knoppmyth distrobution over to it... Can anyone suggest what I might be doing   wrong?</FONT></SPAN></DIV>  <DIV style="MARGIN: 0px">_______________________________________________</DIV>  <DIV style="MARGIN: 0px">mythtv-users mailing list</DIV>  <DIV style="MARGIN: 0px"><A href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</A></DIV>  <DIV style="MARGIN: 0px"><A href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</A></DIV></BLOCKQUOTE></DIV><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">mythtv-users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>