Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Raid 5 Setup and recover

  1. #11

    Default Re: Raid 5 Setup and recover

    Ok i have been testing your suggestion and i still have a problem. This what i did:

    Disk setup:

    sda1 /boot
    sda2 swap pri=3
    sda3 /
    sda4 /data

    sdb1 /boot not mounted
    sdb2 swap pri=2
    sdb3 /
    sdb4 /data

    sdc1 /boot not mounted
    sdc2 swap pri=1
    sdc3 /
    sdc4 /data

    md0 raid 5 using the 3 partitions for /
    md1 raid 5 using the 3 partitions for /data

    All set to device label so a new disk won't cause problems.

    Installs and boots fine. Copied /boot from sda1 to both sdb1 and sdc1 with the commands:

    dd if=/dev/sda1 of=/dev/sdb1
    dd if=/dev/sda1 of=/dev/sdc1

    Rebooted and pulled disk one. The system doesn't boot, which i expected because sdb1 /boot isn't set to be mounted.

    So i installed new disk and booted from the Live cd, recreated the 4 partitions on the disk and copied the /boot back from sdb1 to sda1 using the command:

    dd if=/dev/sdb1 of=/dev/sda1

    I didn't reconstruct the raids on sda but as this is a raid 5 the /boot partition should mount into the raid md0 and the system should boot. Or im i asking to much here?

    Now rebooted and expected the system to boot from sda1 however it doesn't, so im stuck again.

    Please help.

  2. #12
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,840
    Blog Entries
    15

    Default Re: Raid 5 Setup and recover

    Quote Originally Posted by 106666
    Ok i have been testing your suggestion and i still have a problem. This
    what i did:

    Disk setup:

    sda1 /boot
    sda2 swap pri=3
    sda3 /
    sda4 /data

    sdb1 /boot not mounted
    sdb2 swap pri=2
    sdb3 /
    sdb4 /data

    sdc1 /boot not mounted
    sdc2 swap pri=1
    sdc3 /
    sdc4 /data

    md0 raid 5 using the 3 partitions for /
    md1 raid 5 using the 3 partitions for /data

    All set to device label so a new disk won't cause problems.

    Installs and boots fine. Copied /boot from sda1 to both sdb1 and sdc1
    with the commands:

    dd if=/dev/sda1 of=/dev/sdb1
    dd if=/dev/sda1 of=/dev/sdc1

    Rebooted and pulled disk one. The system doesn't boot, which i
    expected because sdb1 /boot isn't set to be mounted.

    So i installed new disk and booted from the Live cd, recreated the 4
    partitions on the disk and copied the /boot back from sdb1 to sda1 using
    the command:

    dd if=/dev/sdb1 of=/dev/sda1

    I didn't reconstruct the raids on sda but as this is a raid 5 the /boot
    partition should mount into the raid md0 and the system should boot. Or
    im i asking to much here?

    Now rebooted and expected the system to boot from sda1 however it
    doesn't, so im stuck again.

    Please help.
    Hi
    You need to dd in the mbr.bin file I eluded too in an earlier post

    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.2 Milestone 5 (i586) Kernel 2.6.31-rc5-git3-2-desktop
    up 2 days 7:43, 2 users, load average: 0.14, 0.11, 0.04
    ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME


  3. #13

    Default Re: Raid 5 Setup and recover

    Ok will give that a go when i get the chance and let you know thanks.

  4. #14

    Default Re: Raid 5 Setup and recover

    Sorry i haven't replied sooner.

    I have tested what you have suggested i dd the mbr and installed syslinux after i had installed the system by booting from a live cd. Then removed the 1st disk and replaced with another. Booted from a the live cd rebuild the partitions and the raid. dd the /boot partition back over and then booted from the hard disk and it won't boot. Rebooted from the live cd and had a look at the /boot folder and it has no /grub folder so it has nowhere to boot from. Tried to reinstall /grub on the command line but this returns errors????

    Have i missed something out or done something in the wrong order?

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •