[WBEL-users] Grub and raid - Solved

Thrift Internet Service thrift@thriftinternet.com
Sat, 10 Apr 2004 08:59:06 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_016E_01C41EDA.148E7240
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Doesn't anyone know how to recover from a failed master using software =
RAID?




  ----- Original Message -----=20
  From: Thrift Internet Service=20
  To: Simone ; whitebox-users@beau.org=20
  Sent: Friday, April 09, 2004 12:49 PM
  Subject: Re: [WBEL-users] Grub and raid - Solved


  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_016E_01C41EDA.148E7240
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>Doesn't anyone know how to recover from =
a failed=20
master using software RAID?</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>
<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=3Dthrift@thriftinternet.com=20
  href=3D"mailto:thrift@thriftinternet.com">Thrift Internet Service</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dsimone72@email.it=20
  href=3D"mailto:simone72@email.it">Simone</A> ; <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> Friday, April 09, 2004 =
12:49=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>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=20
  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=20
  everything 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=20
    size=3D2>Frederick Denny</FONT><FONT face=3D"Times New Roman">=20
    </FONT></FONT><FONT size=3D2><FONT face=3DArial>document I figured =
it=20
    out</FONT>. </FONT></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>To anyone it could interest, this =
works:&nbsp;=20
    <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=20
    my 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>=20
      </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=20
      be 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></BLOCKQUOTE></BODY></HT=
ML>

------=_NextPart_000_016E_01C41EDA.148E7240--