this post was submitted on 27 Jan 2024
47 points (91.2% liked)

Selfhosted

40296 readers
239 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Edit: thanks everyone for the suggestions. In the end I decided to buy a icy box usb3.1 4xhdd enclosure for around 100€. In the description it says it only works with mac and windows, but my Linux laptop works well with it, I guess the pi will to as well. I will print an enclosure for the power brick and the pi to screw to the drive case.

Here is why I choose this option: The pi is rather cheap compared to its power and also power consumption. I already had 4x4tb HDDs which I wanted to use, so at least 4 slots needed. The pi has 2x usb 3.0 connections which can be used simultaneously. One will be used for the 4bay, the other is free for now. I have the option to connect a second Nas case if I need more storage. Usb 3.0 is pretty fast, even if I don't get all the 5gbit/s. It's still faster than 1gbit/s ethernet.

I also thought about getting 2x 2xhdd enclosures to use the two usb3.0 at the same time. But decided against it because it would be a little more sketchy and I wanted to keep a free usb port for a second drive enclosure.

There are some enclosures that offer raid (hardware raid?) But I could not figure out if that would mean that all 4 drives will be raided, so I decided for the cheaper variant and would do the raid myself.

I plan on running 2 drives as raid1 and the other as raid 0 for secure storage and the other for movies and stuff I can download again.

Thanks again for all the comments!


It seems weirdly difficult to find a good solution to attach HDDs to my pi. Best case would be for me a enclosure with small power supply, space for my pi, and at least 2 bays for HDDs, rather 4. All that for under 100€ of cause :D

I could not really find cheap hhd enclosures that connect via usb. Any recommendations? I don't really want to use HDD toasters, they feel not permanent enough for a Nas. I could also not find sata to usb hats for the pi that are available right now

you are viewing a single comment's thread
view the rest of the comments
[–] possiblylinux127@lemmy.zip 9 points 9 months ago (2 children)

Your raspberry pi doesn't have sata or pcie support. Depending on your use case you may want something other than USB as USB is slow

[–] BearOfaTime@lemm.ee 6 points 9 months ago (2 children)

And likes to drop the connection.

[–] ShortN0te@lemmy.ml 1 points 9 months ago

Wendell claims that it actually has gotten usable and stable in recent years.

https://piped.kavin.rocks/watch?v=NYGBm-m-h0s

[–] maiskanzler@feddit.de 0 points 9 months ago (1 children)

And you typically don't get SMART-Data from USB-adapters.

[–] possiblylinux127@lemmy.zip 1 points 9 months ago (1 children)

Yes you do. You just may need to turn it on.

[–] maiskanzler@feddit.de 1 points 9 months ago (1 children)

From what I read online that can lead to instabilities and was therefore disabled on Linux.

[–] possiblylinux127@lemmy.zip 1 points 9 months ago (1 children)

I've used it in the past but none of my USB drives failed.

[–] maiskanzler@feddit.de 1 points 9 months ago

I did too, but shortly after decommissioning that server the drive became unresponsive. I really dodged a bullet without even realizing at the time. SMART data did not work and may have alerted me in that case.

Also, unrelated to SMART data, the server failed to do reboots because the USB-SATA adapter did not properly reset without a full power cycle (which did not happen with that mainboard's USB on reboots). It always git stuck searching for the drive. Restarting the server therefore meant shutting it down and calling someone to push the button for me - or use Wake-On-LAN which thankfully worked but was still a dodgy workaround.

[–] WbrJr@lemmy.ml 2 points 9 months ago (1 children)

I have 2 HDDs with a speed of 180mb/s with a burst of 6gb/s according to the Seagate website. Usb3.0 has a data transfer rate of 5gbit/s

So the usb connection will be the bottle neck, but 1. My network speed is not that fast and 2. 5gbit/s is still plenty I think?

[–] possiblylinux127@lemmy.zip 1 points 9 months ago (1 children)

First of all, you will never achieve usb3 full theoretical speed. Its just not going to happen. Even if you could though you wouldn't be able to get full speeds because your bandwidth is split between devices. You will be sharing the bus between plugged in devices along with on board hardware devices.

[–] ShortN0te@lemmy.ml 1 points 9 months ago (1 children)

A USB 3.2 gen 1 connection (5 Gb/s) is still plenty for multiple HDDs AND when you have no need for compute on the NAS the network Link is the relevant bottleneck which is half of the USB connection.

Then USB 3.2 gen 2 (10 Gb/s) interfaces on HDD enclosures get more common every day which gives even more headroom with little more expenses.

[–] possiblylinux127@lemmy.zip 1 points 9 months ago

Can I see some benchmarks then? I just always went for sata drives.