[WBEL-users] Grub and raid - Solved

Thrift Internet Service thrift@thriftinternet.com
Fri, 9 Apr 2004 12:49:11 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_01BD_01C41E31.0E0B9F50
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I tried Fredrick Denny's recipe. I was able to recover from a failed =
slave drive and duplicate a new slave without a problem, but I can't =
seem to get the slave to be bootable after a failed master.

I moved the cable so the slave drive is now the master (/hde). I boot =
with the install CD and go into 'linux rescue'. At the command prompt I =
confirm that the drive is there with 'fdisk -l' and everything looks =
fine. Then I try to mount:

mount /dev/hde1 /mnt/fred

mount: Mounting /dev/hde1 on /mnt/fred failed: No such file or =
directory.

Of course there is no point in going any further. What happened when you =
simulated a master failure?=20



  ----- Original Message -----=20
  From: Simone=20
  To: whitebox-users@beau.org=20
  Sent: Wednesday, April 07, 2004 12:54 PM
  Subject: Re: [WBEL-users] Grub and raid - Solved


  Hi list,
  Thanks to  Frederick Denny document I figured it out.=20
  To anyone it could interest, this works:  =
http://www.freddenny.com/UNIX/linuxRAID.html

  Thanks anyway to anyone who paid attention to my message.
  Simone


    ----- Original Message -----=20
    From: Simone=20
    To: whitebox-users@beau.org=20
    Sent: Wednesday, April 07, 2004 9:04 PM
    Subject: [WBEL-users] Grub and raid


    Hi, as usual, having a question....
    Say I have a raid 1, disks A and B in mirroring, Say A dies, and I =
replace it with C. How can I make grub write the MBR to C so that in =
case B also dies I can still boot from C?
    Know it's a simple question, but I tried grub-install /dev/hdc or =
/dev/md0 (where the boot partition is) and I just get errors. I am now =
trying to move to lilo, but I am scared to write the MBR of the last =
good disk I have.=20

    Help really appreciated, it looks like I'll be working all night  =
:-(

    Thanks,=20
    Simone


    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.651 / Virus Database: 417 - Release Date: 05/04/2004
------=_NextPart_000_01BD_01C41E31.0E0B9F50
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I tried Fredrick Denny's recipe. I was =
able to=20
recover from a failed&nbsp;slave drive and duplicate a new slave without =
a=20
problem, but I can't seem to get the slave to be bootable after a failed =

master.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I moved the cable so the slave drive is =
now the=20
master (/hde). I boot with the install CD and go into 'linux rescue'. At =
the=20
command prompt I confirm that the drive is there with 'fdisk -l' and =
everything=20
looks fine. Then I try to mount:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>mount /dev/hde1 /mnt/fred</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>mount: Mounting /dev/hde1 on /mnt/fred =
failed: No=20
such file or directory.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Of course there is no point in going =
any further.=20
What happened when you simulated a master failure? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dsimone72@email.it =
href=3D"mailto:simone72@email.it">Simone</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dwhitebox-users@beau.org=20
  href=3D"mailto:whitebox-users@beau.org">whitebox-users@beau.org</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, April 07, 2004 =
12:54=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [WBEL-users] Grub =
and raid -=20
  Solved</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi list,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks to&nbsp;<!--StartFragment =
--><FONT=20
  size=3D3><FONT face=3D"Times New Roman"> </FONT><FONT face=3DArial =
size=3D2>Frederick=20
  Denny</FONT><FONT face=3D"Times New Roman"> </FONT></FONT><FONT =
size=3D2><FONT=20
  face=3DArial>document I figured it out</FONT>. </FONT></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>To anyone it could interest, this =
works:&nbsp; <A=20
  =
href=3D"http://www.freddenny.com/UNIX/linuxRAID.html">http://www.freddenn=
y.com/UNIX/linuxRAID.html</A></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks anyway to anyone who paid =
attention to my=20
  message.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Simone</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV=20
    style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
    <A title=3Dsimone72@email.it =
href=3D"mailto:simone72@email.it">Simone</A> </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dwhitebox-users@beau.org=20
    href=3D"mailto:whitebox-users@beau.org">whitebox-users@beau.org</A> =
</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, April 07, =
2004 9:04=20
    PM</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [WBEL-users] Grub =
and=20
    raid</DIV>
    <DIV><BR></DIV>
    <DIV><FONT face=3DArial size=3D2>Hi, as usual, having a=20
question....</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>Say I have a raid 1, disks A and B =
in=20
    mirroring, Say A dies, and I replace it with C. How can I make grub =
write=20
    the MBR to C so that in case B also dies I can still boot from=20
    C?</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>Know it's a simple question, but I =
tried=20
    grub-install /dev/hdc or /dev/md0 (where the boot partition is) and =
I just=20
    get errors. I am now trying to move to lilo, but I am scared to =
write the=20
    MBR of the last good disk I have. </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Help really appreciated, it looks =
like I'll be=20
    working all night&nbsp; :-(</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Thanks, </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>Simone</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2><BR>---<BR>Outgoing mail is =
certified Virus=20
    Free.<BR>Checked by AVG anti-virus system (<A=20
    =
href=3D"http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: =

    6.0.651 / Virus Database: 417 - Release Date:=20
  05/04/2004</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_01BD_01C41E31.0E0B9F50--