Yeah thing is I am pretty much covered in all other areas then a NAS and a media server. As I read more about the Pi 4 it seems 4K @60 Hz is not possible. So that kind of sinks the value of Pi as a media server for me. It could be an ad hoc media server but not the main - that big 4K TV on the wall needs 4K content for optimal picture. Pi hole equivalent is already in the firewall, same for VPN. So I need to have something solid to put on the Pi 4, otherwise it ends up like a overkill project in charge of watering my very few plants. And for that task I could use the cheapest PiAndyroo wrote: ↑Mon Jul 01, 2019 12:26 amA lot will depend on your use case.
I’ve run a NAS on a Pi 3B+ happily to slow HDD and even run SAMBA on Pi Zero W boxes for development and small transfers but my main NAS is a beefy Synology due to the file sizes and number of them in an upload / move. My wife is worse than I as she can generate 3K files in a couple of days in worst case.
Given the cost of the Pi, try it and if it works great. If not turn it into a VPN, Media and Pi-Hole server
Thanks!fabouille wrote:Very neat!
fabouille wrote: ↑Mon Sep 23, 2019 5:51 amHi,
I finally made the jump and setup my home DIY Nas using the Pi 4 with 2 GB of RAM.
WD My Cloud 3TB (the software was so bad). One additional 1.5TB HDD connected to the USB connector.
Apple Time Capsule 2TB (from 2009).
Raspberry Pi 4 2GB with original USB-C power supply, Pi case.
Hotway HF2-SU3S2 Non RAID 4 bays 3.5 HDD SATA to USB3.0 enclosure (http://www.hotway.com.tw/portfolio/port ... hf2-su3s2/)
-> Installed 1 new 6TB WD Red. Moved the date from WD My Cloud to this drive (and it passed away after moving 80% of the data so it was time to change). Bay 1.
-> Installed 1 new 4TB WD Red. Moved the data from the 1.5TB HDD. Bay 3.
The 1.5TB HDD will go to rest in a storage room soon.
-> Took out the 2TB HDD from the time capsule and installed it to Bay 4.
-> Bay 2 remains available for a second 6 TB I will buy later.
-> One 16 GB SanDisk MicroSD for the operating system.
Services enabled: AFP (Netatalk) emulating an Xserve on the network, SSH, FTP, Plex, Transmission, Time Machine for macOS (this is a feature many NAS lack today but is very well implemented on OMV).
Memory usage: So far after 2 weeks, it never exceeded 20%.
CPU Temp: 71º (I am considering changing the case and use a larger heatsink with a fan).
Read/Write Speeds: 95.4 MB/s and 80.3 MB/s respectively (Blackmagic Speed Test)
Ability to update the software and replace the RPi board for a newer one when relevant or needed.
OpenMediaVault is a fantastic low power piece of OS that has everything you need to run a NAS.
Low power compared to an Intel ATX/ITX based DIY NAS.
Great software support and available community.
Cheaper than an equivalent NAS.
No RAID support on RPi via USB (because USB is not very stable).
If RAID is needed, the Hotway enclosure listed above has a RAID version.
Takes more time to setup and troubleshoot and UI is not as user friendly as lets say Synology DSM.
For 4K transcoding, a Pi 4 is not powerful enough (to my knowledge).
Pi+Power supply+Case+Heatsink: $85
Hotway enclosure: $115
WD Red 6TB: $178
WD Red 4TB: $112
--> A Synology DS418 which would be the closest in terms of specification (ARM based Quad-core chip with 2GB of RAM) cost on Amazon about $359. DIY cost $200. It's a $159 saving that can cover one of the drive's cost.
So far I am very pleased as the solution covers my needs. I prefer this over an off the shelf NAS because of the software support in the long term and the ability to simply replace the Pi to something newer or beefier I need to. The Pi 4 can be repurposed as a retro gaming machine or something else and will not be wasted.
An off the shelf NAS will have its life stopped the day the manufacturer doesn't support it anymore...
Hello,pboh wrote: ↑Thu Nov 14, 2019 3:52 pmThank you so much for the detail around your solution and the other examples throughout this thread as well!
I bought a 4B+ 2GB to use as a NAS as well, and after spending some time with OMV and other app-based/ish solutions settled on using native functionality in the OS (SAMBA, mdadm-driven RAID, NFS, etc.) and pushing the complexity to the client side. All this is working out quite nicely (and speedily); however, the aesthetics are terrible.
The only way I could find to get maximum speed out of the USB3.0 ports was to use 4 separate SATA-to-USB adapters, which means I have 4 loose SSDs velcro'd together running to a USB3.0 hub (where, obviously, the Pi is also connected). I know there are many other threads around which enclosures/adapters work well with UAS and which must be used with quirks to use 'usb-storage' instead, so I'll try to avoid the I-used-this-then-that list . The only price-reasonable 4-bay SATA to USB enclosure I could find was https://www.amazon.com/gp/product/B0711 ... UTF8&psc=1 (I hope it's ok to post links?). However, I couldn't ever get it enabled with UAS and its performance was far inferior to the four separate drivers/adapters as mentioned above.
In your post, you show a Hotway 4-bay enclosure. I was curious if you would mind confirming it's able to use UAS functionality and perhaps provide any benchmarking? If it's able to make full use of the USB3.0 ports, you've just got them another buyer . Also, you mention it's "non RAID". I checked the website and there are RAID versions; however, does this mean hardware RAID vs. software RAID? In other words, would I be able to use the same Hotway you're using and just create RAID with mdadm provided the OS sees JBOD?
Thanks again for this really helpful thread!
fabouille wrote: ↑Sun Jan 12, 2020 2:40 pmHello,
You are welcomed. I hope my experience will benefit other users too.
Are you using 10 Gbps lan?
My Hotway enclosure doesn't seem to be using the UAS driver. It is showing up in the terminal using the usb-storage driver.
- In terms of performance, I just tried to upload (over Wi-Fi) from my MacBook Pro to my server a 20GB file. I am getting about 115MB/s writing speed (using iStats Menu) and the file took 5 minutes to transfer. So performance seems to be consistent with what a single spin drive can deliver.
- When I will have some free time I will be unmounting the Hotway and see if I can force the UAS driver. It is supported by the Pi Board and most USB3.0 devices should have a UAS compatible controller according to what I've found online.
My version of the Hotway, if you look at my description, is the HF2-SU3S2. This enclosure doesn't have a raid controller (it cost $30 less than the HFR2-SU3S2 which comes with a RAID controller). It's kind of 4xUSB to SATA controllers connected to a hub that connects to the Pi.
There is no software RAID on the Raspberry Pi (because mass storage can only use USB on the Pi and USB is not reliable enough to be used to strip to drives in RAID).
Because I am only storing media data and backups, I didn't see any value using RAID as the current performance is sufficient for my use case.
If you need to maximise performance (although it's worth nothing that you won't do so unless you are using faster than gigabit lan), then the HFR2-SU3S2 is better for you. It comes with a hardware RAID controller that you have to setup using the onboard buttons on the enclosure. The user manual explains how to read the LED to select the RAID mode you want (0 jbod, 0,1,35,10). Once you are done, the RAID will mount as one volume on your Pi (or any computer) which you can then partition and format.
http://www.hotway.com.tw/portfolio/3-5r ... fr2-su3s2/
the image "seen" on pboh's post is actually "owned" by fabouille