Results 1 to 7 of 7

Thread: How to quickly get started using RAID?

  1. #1
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts

    How to quickly get started using RAID?

    Hey all,

    I learned about RAID many years ago, but I never actually used it. How would you get started?

    Simply buy a Hardware RAID controller and two same-size/type SSD's e.g.?
    timescale 0.01

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    I would recommend using a hardware RAID controller for duplicating your OS with RAID 1.
    With a hardware controller you have these benefits:
    - OS doesn't know about the underlying disks including boot partition.
    - You can remove one disk and still boot up (in theory you could do this with MD raid in Linux, but not Windows).
    - Independent from motherboard (fakeRAID e.g. Intel Rapid Storage Technology)
    - Less problems after BIOS reset e.g. from (fake)RAID mode back to AHCI.

    Cons:
    - Checking the disk health with SMART could be different per (controller) vendor.
    - More expensive than fakeRAID (motherboard).
    - You need a SAS SFF to SATA cable.

    For data storage software raid is the easier, cheaper and you have a lot of options under Linux e.g. MD, BTRFS or OpenZFS.

    And yes, you need the same size disks (i think it uses the smallest size).
    (For HDDs: don't buy SMR (Shingled) hard disks.)

  3. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (16th July 2023)

  4. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Thank you Mitch!

    I watched a simple tutorial so far: https://youtu.be/_QjHUi6VXV8?t=124

    1) Basically every hardware RAID card comes with another kind of interface?
    2) Is there any card/interface you would recommend?
    3) And do I need to reinstall Linux, or could I just say to the RAID card "Hey, I want RAID 1, start with that disc and mirror it for a while like rsync"?

    Sorry for noob questions, but it seems like every hardware RAID card would require a somewhat different setup with a different procedure, which feels confusing.
    timescale 0.01

  5. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    1) Basically every hardware RAID card comes with another kind of interface?
    I guess, yes. It is same as BIOS/UEFI motherboard setups.
    I think the steps are the same.

    https://www.thomas-krenn.com/en/wiki..._RAID_via_BIOS
    https://www.thomas-krenn.com/en/wiki...AID_Controller

    2) Is there any card/interface you would recommend?
    I'm using a Adaptec controller with arcconf for managing and (manual) monitoring after boot.
    For LSI/Broadcom you have storcli.
    It has been a while since i used the menu for both. Either would do the job and i don't know any other brands except server vendors as HPE, Dell etc.
    It might be possible to read smart data via the smartctl. I need to try again if i can get it working for my Adaptec card.

    https://www.thomas-krenn.com/en/wiki...f_CLI_Commands
    https://www.thomas-krenn.com/en/wiki/StorCLI_commands
    https://unix.stackexchange.com/quest...aid-controller
    https://docs.hetzner.com/robot/dedic...id-controller/

    3) And do I need to reinstall Linux, or could I just say to the RAID card "Hey, I want RAID 1, start with that disc and mirror it for a while like rsync"?

    I think it is basically like formatting a new disk.
    You can clone from your original disk to your new virtual disk.
    The raid card will keep both disks (under the virtual disk) in sync.
    Last edited by Mitch; 16th July 2023 at 20:24.

  6. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (17th July 2023)

  7. #5
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Please use software raid. For linux, try ZFS. For windows, try storage spaces.

    HW raid cards are so proprietary that if they fail, you gotto find the same card again to save your data. With software raid, just get the same software again.

    For interfaces, get a hba adapter, or flash some old hw raid card to a hba firmware (i got a spare card if you want one)
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  8. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (17th July 2023)

  9. #6
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Quote Originally Posted by Mitch View Post

    I think it is basically like formatting a new disk.
    You can clone from your original disk to your new virtual disk.
    The raid card will keep both disks (under the virtual disk) in sync.

    Thank you a lot, Mitch! Your descriptions help me to understand RAID hardware a bit better.

    Quote Originally Posted by IzNoGoD View Post
    Please use software raid. For linux, try ZFS. For windows, try storage spaces.
    Nice, I already use ZFS, so I guess I just need to figure out how to put it in RAID1 mode...

    https://pve.proxmox.com/wiki/ZFS_on_Linux

    They also talk about need for: https://en.wikipedia.org/wiki/ECC_memory

    And a lot of that RAM, because it helps the caching etc...

    Do you use RAID1 with two disks always? Contemplating RAID10 with 4 disks... speed + safety... speed isn't even that important to me, things shall just work... and speed critical applications can go in RAMFS/TMPFS anyway.

    Quote Originally Posted by IzNoGoD View Post
    HW raid cards are so proprietary that if they fail, you gotto find the same card again to save your data. With software raid, just get the same software again.
    Right, I developed that impression aswell, they will format the disk as they please and I will be stuck on proprietary hardware and file formats etc.


    Quote Originally Posted by IzNoGoD View Post
    For interfaces, get a hba adapter, or flash some old hw raid card to a hba firmware (i got a spare card if you want one)
    Do I need a HBA adapter for additional storage or what is it good for?
    timescale 0.01

  10. #7
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    If you're doing spinning rust (hdd, not ssd) with 4 disks, use zfs raid Z2 feature, gives you 2 parity disks, so any 2 disks can fail, contrary to raid10 with 4 disks, where 2 disks of the same raid1 array will kill your data entirely.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  11. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (25th July 2023)

Posting Permissions

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