[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xen, raid and initramfs failure



On Tue, Jul 10, 2007 at 08:40:46AM +0200, martin f krafft wrote:
> also sprach martin f krafft <madduck@debian.org> [2007.07.10.0834 +0200]:
> > Can I please see your mdadm.conf file and the generated initramfs?
> > Please put them somewhere where I can download them instead of
> > attaching them to an email. If it turns out to be what I think it
> > is, it should be a trivial bug to fix.
> 
> Try the following patch agaist
> /usr/share/initramfs-tools/hooks/mdadm. It ensures that RAID levels
> include the word 'raid'. I think your mdadm.conf may say stuff like
> level=5, when it should say level=raid5 or not specify level= at
> all.

bingo! you are correct about my mdadm.conf. I haven't tried the patch
yet, but that must indeed be the problem as I have specified level=5
and similar instead of level=raid5. I will fix up my mdadm.conf. I'll
leave my two files up for a day or so incase you want to look at
them. 

and i'll try the patch before I fix up the mdadm.conf... report back
soon.

A

> 
> Index: hook
> ===================================================================
> --- hook        (revision 351)
> +++ hook        (working copy)
> @@ -198,7 +198,7 @@
>        [ -n "${dev:-}" ] || continue
>        echo -n "${dev}:"
>        if [ -n "${level:-}" ]; then
> -        echo -n "$level"
> +        echo -n "raid${level#raid}"
>        else
>          echo -n "$($MDADM --detail $dev | sed -rne 's,[[:space:]]+Raid Level : ,,p')"
>        fi
> 
> -- 
> Please do not send copies of list mail to me; I read the list!
>  
>  .''`.   martin f. krafft <madduck@debian.org>
> : :'  :  proud Debian developer, author, administrator, and user
> `. `'`   http://people.debian.org/~madduck - http://debiansystem.info
>   `-  Debian - when you have better things to do than fixing systems
>  
> ... and don't get caught in the .NET!


Attachment: signature.asc
Description: Digital signature


Reply to: