Find the answer to your Linux question:
Results 1 to 2 of 2
Hello Not so long ago I've changed my home Server/NAS machine to a new one. I have also decided to change the OS from Windows to Linux. I've chosen Ubuntu ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Posts
    9

    Question Exchanging SATA controller when using software RAID0


    Hello

    Not so long ago I've changed my home Server/NAS machine to a new one. I have also decided to change the OS from Windows to Linux. I've chosen Ubuntu Server 11.04 (headless config). So you can say I'm a n00b.

    First I've bought 2 very cheap PCI SATA controllers. And my disk config now is:

    6x 500GB Seagate on motherboard integrated controller
    4x 2TB WD on those cheap PCI controllers

    My software RAID setup looks like this:
    cat /proc/mdstat
    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
    md0 : active raid0 sde1[4] sdc1[2] sdd1[3] sdb1[1] sdf1[5] sda1[0]
    2894518272 blocks super 1.2 512k chunks

    md1 : active raid0 sdc5[2] sdf5[5] sdb5[1] sdd5[3] sde5[4] sda5[0]
    35770368 blocks super 1.2 512k chunks

    md2 : active raid0 sdj1[3] sdg1[0] sdh1[1] sdi1[2]
    7814049792 blocks super 1.2 4k chunks

    md0 and md1 are located on disks connected to the integrated controller. md2 was created under webmin. I'm using ext4 (don't know if that is related to my questions).
    My questions are about md2 (4 WD HDDs). I've bought a new controller (Adaptec AAR-1430SA) and I'm planning on exchanging those 2 cheap PCI controller to the new one.

    1) Will I need to install something after adding the controller to my config ? (if so then what and how ?)
    2) What to do to rebuild the RAID0 array after connecting those disks to the new controller ? (I don't want to loose any data - I know that I can't use the hardware solution provided by the controller)

    Reagrds
    Szafran

  2. #2
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    Firstly, if you dont want to lose data, DO NOT USE RAID-0

    if any one of the 6 drives in your raid-0 dies, you will likely lose all data on the raid! To avoid data loss, you'll likely want something like RAID-5 on the drives.

    As for "rebuilding" the raid if your controller were to die for instance, all you'd need to do is replace the controller, and mdadm should pick them up automatically.

    With software raid, the raid data itself, and metadata used to create the raid is stored on the drive itself. This means that you dont even need to worry about the order they get reconnected in. E.g. your sdb could be changed to sdc after, and tthe raid software (mdadm) will know this, and change accordingly.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

Posting Permissions

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