Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Adding swapped out drive to existing Software Raid 0?

    Linux newbie here. Software Raid 0 Centos 5.4 box. One of the 4 drives on the box had faults, so it needed to be swapped out. I need to use mdadm to rebuild the new disk but i'm not sure exactly how to alter the steps i've seen in a few tutorials to exactly mimic my environment.

    Any help/tips on how to add the new drive into the array?

    On boot, the server will get to the point during boot where it "Checking Filesystems" and then it will fail with:

    "/dev/md2 clean
    /dev/md3 the superblock could not be read or does not describe a correct ext2 filesystem
    an error occurred during the file system check. Dropping you to a shell; the system will reboot when you leave the shell
    Give root password for maintenance"

    cat /proc/mdstat gives the following output:

    md0: active raid1 sda1[0]
    104320 blocks [2/1] [U_]

    md1: active raid1 sda2[0]
    8385856 blocks [2/1] [U_]

    md3: inactive sda5[0] sdd2[3] sdc2[2]
    282113400 blocks

    md2: active raid10 sdd1[3] sdc1[2] sda3[0]
    67103232 blocks 256k chunks 2 near-copies [4/3] [U_UU]

    unused devices: none

    Thanks for any assistance on how to proceed.
    Last edited by tgaler1; 09-04-2012 at 04:16 PM.

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Virginia, USA
    Typically speaking, when you drop a disk in RAID 0, the data is toast.

    But, since you were keeping good backups of critical data, you just need to reinstall.

    How to proceed: Replace failed disk with new disk. Re-install from backups.

Posting Permissions

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