Re: Replacing first drive in failed array

From: Ed Wilts (ewilts_at_ewilts.org)
Date: 03/28/05

  • Next message: Marty Landman: "umount question"
    Date: Mon, 28 Mar 2005 10:34:42 -0600
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    
    

    On Mon, Mar 28, 2005 at 07:50:48AM -0800, Brian D. McGrew wrote:
    > I've got a software RAID array on my server, it's a RAID1 array with two
    > drives known as /dev/md0 made of up /dev/had and /dev/hdb. This is the
    > primary boot device as well.

    The first thing you need to really, really understand is that the
    software RAID is done by *partition*, not by drive. Therefore, you're
    not mirroring /dev/hda and /dev/hdb - you may be mirroring /dev/hda1
    with /dev/hdb1, etc. You are probably not mirroring your swap
    partition.

    > /dev/had has failed and I need to replace
    > it. However, since /dev/had is where the BIOS looks to boot, how do I
    > do this without blowing myself up?

    If you've mirrored *everything*, then you can drop the drive out,
    replace it, and then run grub-install to put the boot block back. If you
    forget and then try to reboot, you can boot into rescue mode and run
    grub-install from there.

    > Should I swap had and hdb so the good drive is first and replace the
    > second drive? Has anyone done this before?

    I believe this is documented in the software raid HOWTOs and there is
    a link in the Red Hat online documentation on what you need to do. I
    haven't read it lately though and I don't currently mirror my boot
    disks.

    -- 
    Ed Wilts, RHCE
    Mounds View, MN, USA
    mailto:ewilts@ewilts.org
    Member #1, Red Hat Community Ambassador Program
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Marty Landman: "umount question"

    Relevant Pages

    • RE: Help with ES v3 Raid1 (Mirror)
      ... The reason your software RAID is not starting automatically on boot is because you need to remake your initrd image. ... I guess that after building md0 with mdadm, ...
      (RedHat)
    • Re: [opensuse] SATA RAID recommendations?
      ... I presently boot from a software raid 1 here ... The 10.2 rescue system works ... Basically I don't mind software raid for non-boot drives, ...
      (SuSE)
    • Prblm: software RAID boot, FreeBSD panic.
      ... I'm trying to setup an old Dell Dimension computer as a simple file server ... The idea is to use the software RAID features of FreeBSD to have some ... At the boot, after changing fstab, the kernel panics and says: ... are several different techniques for this e.g. vinum, atacontrol, geom, ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Booting RHES4-U2 from mirrored disk
      ... The problem is that you are using software raid, so there is no raid device /dev/md0 until the OS boots, but you can't boot because there is ... We recently worked through a similar install on an HP xw9300. ... All that remains is to duplicate the boot partition. ... I booted from the install CD and entered the rescue mode to check the partitions and the grub.conf. ...
      (RedHat)
    • Re: mirrored root disk boot block
      ... >After mirroring a root disk, does it still need to install the boot ... that an installboot was previously run on the underlying FS ...
      (comp.unix.solaris)