I have an 11th gen Framework mainboard which I would like to repurpose as a server. Unfortunately, (unless I do some super janky stuff) I can only connect 1 drive to it over M.2 and any additional ones must be over USB.

I am thinking of just using some portable hard drives and plugging them in over USB. I plan to RAID1 them and use them as boot drives and data storage, and use the M.2 slot for something unrelated.

In your experiences, is USB reliable enough nowadays to run a RAID array for a server like this? If it is, does it depend on the specific drive used?

  • TCB13@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    edit-2
    4 months ago

    Well, nothing is reliable over USB type A. If you don’t want to DIY you can get a USB JBOD with type-c like this one or that one or this cheaper one. They’ll get the job done for a price. :)

    However, there are easy ways to get reliable SATA ports from m2 slots that your framework has. NVME to 6 SATA ports: https://www.aliexpress.com/item/1005004263885851.html

    To power the disks you can use ANY standard ATX power supply (get something brand-gold second hand for 20$). To make sure the PSU stays ON, just plug a wire between the green and any black wire.

    Another option for power is to get a cheap 12V power supply and a step down DC/DC to provide 5V. If you don’t have it a SATA cable like this is helpful. Simply cut the white plug and attach the red cable (5v) to the output of the DC/DC and the yellow one (12V) directly to the power supply.

    There’s also these dual output power supplies that you can regulate to 12v+5v but frankly I would just go for the option above as it will be safer.

    Make sure you check every voltage and polarity before plugging anything into your power supply!!

  • 0000@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    4 months ago

    I do not recommend it. I ran two USB hard drives for over a year in BTRFS RAID1, and I had millions of errors repaired every month when I scrubbed it.

  • infeeeee@lemm.ee
    link
    fedilink
    English
    arrow-up
    9
    ·
    4 months ago

    There should be an m.2 port for the wifi chip,you can buy sata expansion cards there, sthg like this:

    Search for “m.2 key e sata”. Use wired net on a usb dongle, if it doesn’t have an ethernet port

  • lemmyvore@feddit.nl
    link
    fedilink
    English
    arrow-up
    5
    ·
    4 months ago

    The big factor is the chip make in the USB enclosure/adapter. Realtek is most reliable, followed by Asmedia. JMicron is garbage (will get hot and drop connection).

    What’s your goal by using RAID1? Do you really need redundancy — keep the system alive if the main drive good down?

    If you only need backup then you don’t need RAID, and that should fare much better — just take an incremental snapshot to the USB drive periodically and let it sleep the rest of the time.

  • hperrin@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    4 months ago

    You should probably only do this if you’re using an enclosure that connects all the disks over a single cable. That way if it gets unplugged or otherwise disconnected, all the disks get disconnected, and they remain in sync. Otherwise, get very familiar with resyncing drives.

  • Ferawyn@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    4
    ·
    4 months ago

    No. USB is not designed to be reliable. It’s designed to be plug and play. Don’t plug and play with your data.

    • catloaf@lemm.ee
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 months ago

      Plug and play means you don’t have to fiddle with drivers or IRQs or whatever.

  • NaibofTabr@infosec.pub
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    3
    ·
    edit-2
    4 months ago

    I plan to RAID1 them and use them as boot drives

    This will not work unless the mainboard is handling the RAID control in firmware. If you are doing software RAID then the OS must boot before the array can be accessed.

    If you just want to set up a NAS, you can get a used PowerEdge tower for very little money, and it will work a lot better than what you have planned.

    • anon2963@infosec.pubOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 months ago

      In the past I have used Proxmox with ZFS raid on a basic mini PC. With ZFS raid it syncs everything except /boot. Proxmox has a tool called “proxmox-boot-tool-refresh” which will syncs /boot between drives. ZFS kernel module can be loaded in the initramfs so it will boot fine, even if missing a drive.

      For this project I do not plan to use ZFS, but AFAIK software raid is now standard. Here is a popular video from Level1Techs talking about the flaws of hardware RAID: https://youtu.be/l55GfAwa8RI

  • Theoriginalthon@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 months ago

    I did see a m.2 based expansion card based on ASM1166 chipset, or failing that a sata port multiplier, but those depend on the data port supporting it

  • conrad82@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    4 months ago

    I am using a terramaster d6-320 connected with usb-c.

    It has been running zfs disks for proxmox via a geekom a5 mini pc since February. It has lost contact with the drives twice so far, more than a month between each time so I don’t know the cause. I am mostly happy with the setup, but of course it is annoying when it fails

  • dhhyfddehhfyy4673@fedia.io
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    4 months ago

    You are quite likely to regret going down this route. Should do what you have to to get the drives properly connected.

  • Paragone@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    3
    ·
    4 months ago

    USB-storage isn’t reliable.

    Period.

    ANY fscking thing that bumps any connection, can break the dam link.

    Then your kernel can re-label the device when it re-connects,

    and you’ve got to reassemble your RAID.

    just my experience.

    use ANY other method you can, other than USB.

    stick a SATA adaptor on there somewhere, if you can.

    Get a different motherboard.

    ANYthing, but not USB.

    • exscape@kbin.social
      link
      fedilink
      arrow-up
      5
      ·
      4 months ago

      Always use /dev/disk/* (I use by-id) for RAID, as those links will stay constant even if a disk is renamed (for example, from sdb to sdd).

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    4 months ago

    I have minipc that only has one drive slot. I use an external thunderbolt enclosure with a eNVM drive in it

    It works ok for me but don’t expect great performance and reliability.