Child pages
  • Multiple devices (md, software RAID)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

UUID=3968404e-6571-4671-a157-9113a9f2fcba /home ext3 defaults 0 2  

 

Add new Hard drive

Connect the new hard disk and boot a system.

This will create on the new drive a partition table identical to the one of the existing working drive (this will also copy GRUB).

(Assuming that /dev/sda is the existing working drive and /dev/sdb is the newly added drive)

{code}

dd if=/dev/sda of=mbr.bin bs=512 count=1

dd if=mbr.bin of=/dev/sdb bs=512 count=1

{code}

Now, check the status of the RAID devices to see the device numbers

{code}

cat /proc/mdstat

{code}

Now, add the appropriate partition of the new drive to the RAID devices, repeat for each RAID device.

{code}

mdadm --manage --add /dev/md0 /dev/sdb1

{code}