Hi, I got a tiny Lenovo M720Q (i5-8400T / 8RAM / 128NVME / 1Tb 2,5" HDD) that I want to set as my home server with the ability to add 2 more drives (for RAID5 if possible) later using its two USB 3.1 Gen 2 (10gbps).

  • The OS (debian 12 + docker) will be exclusive to the nvme, I will mostly use 40/128GB of its capacity with no idea how to make use of the rest.

  • My data (medias, documents and ISO files) will resides on the HDD pool, while keeping a copy of my docs on my home pc.

I read a bit about BTRFS RAID I even experimented with it in a VM and it really got me interested in using it because of its flexibility of balancing between raid levels and the hot swapping of unequally sized drives in both stripped and mirrored arrays. However, most of what I read online predate kernel 6,2 (which improved BTRFS RAID56 reliability). So, Here I am asking if anyone here is using BTRFS RAID and if it is stable enough to use on a mostly idle server or should I stick with LVM instead. What good practices to do or bad ones to avoid?

Thank you.

  • poVoq@slrpnk.net
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    In my experience there are often issues with sata ssd over USB, but slower HDD seem to work fine. With btrfs I would set up a regular scrubbing job to find and fix possible data errors automatically.

    • Atemu@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      With btrfs I would set up a regular scrubbing job to find and fix possible data errors automatically.

      This only works for minor errors caused by tiny physical changes. A buggy USB drive dropping out and losing writes it claimed to have written can kill a btrfs (sometimes unfixably so) especially in a multi-device scenario.

      • poVoq@slrpnk.net
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        11 months ago

        How so if the second drive in the raid1 retains a working copy and the checksum is correct? I have had USB drives drop out on me before for longer periods and it was never a problem after reconnecting them and doing a scrub.

        But of course raid is not a backup, so that is only the first line of defense against data loss 😉

      • mhz@lemm.eeOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 months ago

        A buggy USB drive dropping out and losing writes it claimed to have written can kill a btrfs

        Mixing USB and SATA drives sounds like a very bad idea, I’m holding on using an array of drives connected using USB. hank you for your comment