I made a new backplane for my consumer NAS
codedbearder.com
codedbearder.com
This is positively an insane methodology for soldering. Fun, but insane.
I actually can imagine that it works, strangely enough. But I don't think you'd get much consistent reliability with this. More like it'd work often enough that its good for one-off projects.
Thankfully the bottom pad on DFN packages reach the edge on 2 sides and I would think this technique wouldn't work with QFN.
https://www.ti.com/document-viewer/lit/html/SSZTBN6
Here's to hoping for more manual soldering techniques to work into the future! We all know that these parts are getting extremely small and harder to work with, but its still clearly possible to make devices.
But yeah, QFNs, if this wettable-flank trend continues, could be quite reliably soldered and inspected from the sides soon. The needs of the high-reliability automotive industry to create an inspection methodology outside of X-Rays is driving this change.
------------
Glad to hear that your technique worked in any case. I wouldn't have tried that, but maybe I'll try it once next time I have a hot-air gun out and a DFN part to try it on.
EDIT: Note that Microchip apparently has some DFNs that also have wettable-flanks: https://www.microchip.com/en-us/about/media-center/blog/2022...
Why is that a particular requirement? Or is it just nobody wants/rather avoid x-ray, and automotive has greater need for inspection at all?
When you use parts with leads, you can easily perform all of your QA checks using machine vision (all all the components in the right place, are they correctly aligned, are the connections properly soldered, etc), but if you use parts with no leads and the solder connections are hidden, you need a separate X-ray check which takes additional time, assembly-line space, and money. Depending on the components in question, it may also be tricky to get enough contrast in the X-ray image to identify defects.
DFN -> Dual-flat no-leads package
QFN -> Quad-flat no-leads package
1. Longer leads of older packaging have higher parasitic inductance, parasitic capacitance, and parasitic resistance. Which hurts many electronic designs.
2. The thermal pad on DFN / QFNs allows for direct-heat transfer off of the chip-package (while DIP, SOIC, and other older designs do NOT allow for this direct-heat transfer off). This improves thermals of hot parts, as you can use the whole PCB as a heatsink now, instead of having to add a heatsink elsewhere.
3. DFN and QFN are physically much smaller than traditional DIP, SOIC or TQFP packages. So people who use these smaller chip packages can make even smaller circuit boards, or alternatively, a more complex design fit in smaller spaces.
-------
QFN and DFN are very popular parts for modern professional level electronics. But do note that their small size and tiny leads make them harder to deal with at the hobbyist level. But its possible with enough flux, solder paste, and hot-air rework to work with these parts.
I would recommend that beginner electronics who are just getting into custom PCB design work with larger parts (like SOIC packages) instead. Bigger is often easier. Move to these tiny DFN or QFN parts only after you've gained confidence in your surface-mount skills.
My understanding is that BGA solder-balls come pre-attached to your chips in most cases. As long as you reflow-solder it on correctly on the 1st try, you're good.
If you need to "fix" BGA, that's where things become very difficult for hobbyists. To do this, you need to unsolder the BGA with hot-air, lift it off, then "Reball" the BGA, which is equipment that likely hobbyists don't have.
------------
With regards to QFN or DFN vs BGA, I would expect BGA to be easier, as long as you've precisely made your soldermask to accept the correct sized solder-balls (which should be part of your chip's documentation).
That is: BGA's hardest part is getting the board design just right. Especially because most BGAs require 4 or more layers before you can route all of the lines to them. In fact, the massive BGAs are physically impossible on anything less than 8 layer boards.
-------------
Hobbyists won't have XRay equipment to see if the BGAs successfully worked either. So rework and quality-control are basically impossible. Your only hope is to "do it blind" and hope for the best.
Which... is fine? Even BGA parts are relatively cheap. So build 3+ of your design at once. Have appropriate test-probes to take measurements during the "smoke test", and bam, you're good. One of those three tries is probably going to be successful.
EDIT: I found this quite interesting video: https://www.youtube.com/watch?v=0KbINAq0hcU
This method saves blasting the IC with hot air while heating up the whole lot.
Instead of using a solder-stencil to deposit a carefully calibrated amount of solder onto any location, you can buy a solder-paste syringe and squeeze the solder-paste into place.
This almost *always* results in too much solder, because its a hand application process, and its often better to have more-solder + cleanup than too little solder in my experience.
-----------
https://www.amazon.com/Solder-Bi57-6-No-Clean-Lead-Free-Temp...
Obviously if you had perfect hand-control (ex: a solder paste robot... or a solder stencil, or other methodology), that's preferred.
But if you're doing these cheap designs you'll need to plan for the "too much solder" situation. In fact, "too much solder" is the default choice and quite fine, albeit with a simple cleanup step. (Ex: swish around a small piece of solder wick in my experience while the solder is still hot, or while the solder-wick is touching a soldering iron, etc. etc. Plenty of cleanup methods available).
Do it dirty then clean-up is just the default mode of operation in hobby-level manufacturing / solder paste / soldering. Its surprisingly effective.
Its super easy to grab a toothpick and pull out excess solder paste on a per-pad basis. Just do it before you heat the board up (solder paste is applied cold, so there's plenty of time to "correct" things if they look bad).
The "problem" is that this whole exercise is an unnecessary waste of time in my experience. Just live with the excess solder and solder-wick it up at a later point. Swishing around a solder-wick is way easier than tooth-picking the solder-paste on each pad to the right size.
Squishing the chip down is fine, you just have to be careful to align it with the pads properly. I don't think I've ever seen a solder bridge on a QFN other than a big ball on the outside edge. Modern solder alloys and solder masks are really good at preventing bridges. The solder really doesn't want to stay between the package body and the solder mask, it will try very hard to only stick to metal.
A lot of parts (ex: Crystals) are extremely heat-sensitive. So even just a few dozen seconds extra of soldering could damage your crystals (ex: internal solder will reflow and break the vacuum seal).
So *ANY* action which requires you to "carefully squeeze down" the solder paste out means you're going in there with tweezers, and possibly leaving the board in 200C+ soldering temperatures a bit longer than usual.
-----------
IE: Its not that this technique "won't work" in isolation, its that you won't get "consistent and reliable results", especially when we consider the nearby parts (ex: a possible XTAL) that could be damaged while you're messing around with the hot-air gun.
The standard technique of reflow soldering is to use a solder-paste stencil to deposit the "right" amount of solder paste onto your board, then use a reflow oven to carefully heat the board (and hold the heat) at the right temperatures, so that nothing gets damaged.
Once we start relying upon "Well, keep the board heated a bit longer so that my tweezers can do the work" is when you start overheating chips and otherwise creating failed parts.
> Modern solder alloys and solder masks are really good at preventing bridges. The solder really doesn't want to stay between the package body and the solder mask, it will try very hard to only stick to metal.
This also matches my experience. The surface tension of solder (be it lead based, or lead-free, or low-temperature solder paste) is far greater than most people expect.
You can strongly rely upon "surface tension" to magically do the right thing on your boards, as long as you've got good quality soldermasks.
In fact, a big problem with reflow soldering is "tombstoning" (ex: surface tension of lead is so strong, it pulls your components OUT of position). There's a LOT of surface tension at play here. Its great in most cases, but keep an eye out for those tombstones!
Everything that could go wrong in my experience is fixed with rework hot-air + generation applications of flux + solder wick + soldering iron + tweezers. And rather easily mind you, I know that didn't sound very easy but... the right tools make any situation fixable. Its just knowing how to use all those tools in the right cases.
I hate that after 5 or 10 years, NASes can't really be upgraded. A lot of 1 Gbps NASes could be upgraded to 2.5 Gbps or even 10 Gbps if you could swap out the motherboard, keeping the chassis out of the landfill or extending its useful life.
I think I read somewhere that Framework doesn't have any plans to get into vertical integration, which saddens me. I'd love to have a Framework backed OS and have things working perfectly out of the box like sleep and touchpad feel.
You answered, implicitly, it byyourself
Or maybe I'm just too chicken with modifying actual physical objects.
Are there any good options today? I keep thinking of picking up a NAS, but I really do not want to use a proprietary vendor OS that might feel entitled to scan my data for useless/hostile cloud integrations. Or might have left some hardcoded password backdoors.
https://nas.ugreen.com/pages/ugreen-nas-storage-preheat
Their hardware is dramatically better at the price points then the alternatives - even if they do have some comprimises.
The only thing I really miss here is ECC ram, but that's entirely due to Intel's market segmentation and not something they can change, save by completely changing their platform vendor.
[0] https://aoostar.com/products/aoostar-r1-2bay-nas-intel-n100-...
A regular PC will work fine if this is what you want to do. A lot of consumer motherboards these days have at least 2 x NVMe and 6 x SATA ports or more. There are rack-mount cases that allow you to front-mount the SATA hard drives to make it easy to swap them.
Or if you want something small, you can get a compact Mini-ITX case with 5.25" drive bays and put hotswap trays in them.
Like maybe this case https://www.bhphotovideo.com/c/product/1193826-REG/istarusa_...
And put one of these for 4 x 2.5" SSDs: https://www.amazon.com/gp/product/B00V5JHOXQ/
And one of these for USB/SD card reader galore: https://www.amazon.com/EZDIY-FAB-Internal-Reader-Support-Com...
The reason I often do NOT want a vanilla OS is that I don't want to have to maintain it or risk corruption of the OS partition, and don't want to ever have to wire up a keyboard, mouse, and monitor because some upgrade and reboot caused it to get stuck on some interactive prompt. Most commercial NAS (e.g. Synology) have web-based administration and read-only partitions for the OS fully figured out.
2tb nvme cache + 20TB a drive + parity is 140 useable TB, and unraid makes the NAS stuff really easy, just installed a bunch of "apps" which are basically docker containers + settings, and things are a breeze.
I'm moving towards used, ancient, large desktop cases. You can find them at computer recyleries if you have them in your area or local marketplaces. I got one with a hotswap backplane and trays and everything in the 5.25" bays. Of course, the backplane didn't work for me, so I had to pull out the backplane and just wire the drives like normal, but trays are still nice.
I've got lots of space, so I just leave a keyboard and monitor next to my servers, in case I break something. It's not elegant, but it's cost effective. A used $10 monitor and a keyboard I don't like will last forever, but buying boards with IPMI adds $100-$200 everytime I upgrade.
When you move you can also just move it all in one piece if you have a liftgate van.
And you have an easier upgrade path. If you buy one pair of ~40 TB drives in a couple of years, you can replace one of the mirrors just by swapping out the old disks one by one and waiting for resilver. Then ZFS can autoexpand your storage to 18 + 40 TB total. And you can repeat further down the line, going 40 + 80 TB or whatever is available, true Ship of Theseus style.
Yes, you lose a little resilience compared to RAIDZ2, but RAID is just a HA solution, not a backup solution, no matter how fancy you make it. And a RAIDZ2 gradual-upgrade by replacing disk after disk is just horrible.
Then another 2x18TB for backup.
What I do for my personal setup is RAID + nightly backup (3 drives total) in one machine, and then a 4th hard drive that normally lives airgapped in a rental storage unit that I bring home and sync every 6 months or so.
The nightly backup serves to always fetch yesterday's version of any file, and deals with 99% of scenarios that I'd need a real backup.
The 1% (hackers + fires/disasters) is taken care of by the storage unit but I lose the last 6 months of changes.
Personally, I like 6x SATA for a couple reasons. One is my case has sleds for 6 drives :P. The other is I run two servers with 2x mirrors as the main storage (they backup each other and are in different buildings although on the same site, which gives me a little redundancy, but not much); I've done an upgrade once from 4 tb to 10 tb, so my case with 6 sleds now has the main 10tb mirror array, and a playspace for less important stuff that I can figure out how to use over time; currently I've got it split up between 50% of each disk used individually for tv recordings, and the other 50% as a raidz2 to hold dvd's i've ripped and fanedits.
When I upgrade/replace the main mirrors, I may update the other server to have more slots, and then it can have a 4x 10tb playspace.
> Yes, you lose a little resilience compared to RAIDZ2, but RAID is just a HA solution, not a backup solution, no matter how fancy you make it. And a RAIDZ2 gradual-upgrade by replacing disk after disk is just horrible.
I haven't done it, so I'm not disagreeing... I'm assuming the main objection is it takes a long time, and the secondary objection is the system has a lot of disk contention while it's in progress. I'd probably address the takes a long time by just planning to do one disk every other week. That means it's a two month process, but it also means that the drives in the system have a two month offset on usage time; a lot of drive array failures are due to correlated failures, and offsetting the power on time can help. If all of your disks are likely to fail when their power on counter rolls over, it's nice if you have two weeks between failures --- that should hopefully be plenty of time to replace disks before you lose the data.
Ordering disks over a two month period may also help avoid getting all disks from the same batch; but sometimes it's better to order all at once for pricing, so that's mixed.
If you do have extra SATA ports, you might be able to do a replace while both the old and new disk are available... I'm not sure if that helps the process or not; it won't reduce the amount of writes to the new drive, but maybe it helps with disk contention during the process?
0: https://www.ebay.com/itm/256268302567
(no relation with the seller, just found searching "6xsata m.2" and removing those with lower feedback ratings). There are also 5xsata similar cards.
0: https://www.reichelt.de/de/en/mobile-rack-3x-5-25-for-5x-3-5...
My current NAS is a mini PC connected to a external 8-bay USB3 enclosure with disks arranged as 4 ZFS mirror pools. It worked like charm with XigmaNAS (FreeBSD based) until the day I needed to add some files and the best solution was of course to connect another external USB disk to go faster than network transfer. As I connected the drive, suddenly all disks in the pools were shifted, with the external disk becoming part of the 1st pool, and all others mixed, with potentially devastating consequences. Of course I panicked and after a series of wrong moves destroyed the 1st pool which luckily I already had a very recent backup of. On BSD forums they explained that the embedded XigmaNAS edition does not make use of UUIDs so it's dependent on the order disks are being detected, which frankly shocked me: I wouldn't expect that from FreeBSD. Now, the detection order in case of the disk enclosure is always the same, but should I connect some other external drive, the disk order would go bonkers again, therefore I also feared what could happen if a disk suddenly becomes undetectable. However, it's only the web interface that goes out of sync wrt disk detection, and I later learned it can be fixed with the synchronize command. They say the full install is immune from that, and I plan to migrate everything, but I'd like to be sure I can do that transparently before embarking in that task.
[0] https://www.friendlyelec.com/index.php?route=product/product...
It’s an amazing project. I’m floored that it all works and that the author figured it out.
But still, I’ve never fully understood the appeal of using some of these custom design NAS products when a standard ATX computer is so much more customizable, modular, expandable, repairable, etc.
And many of these NAS systems are such a ripoff on pricing.
I don’t think desktop power consumption is all that bad if you’re careful about component selection.
Another alternative is to have one more performant system that runs a bunch of different things in virtual machines so that the NAS functionality is only a small part of the power consumption.
It for me was just a mater of how much time/effort did I want to sink into it. I just wanted a large storage system. A off the shelf NAS I can be up and running in 2-3 hours. For DIY there is the research time for parts (including the drives), cases, and which software to run (there are 3-4 decent choices). Then gluing it all together. Probably 2-3 days for me fiddling around with it and research time.
Take the one I went with synology. The one I picked was in the 600 dollar range for the case. By the time your done picking a decently powered board, case and memory and cpu. You are in the same ballpark of cost for similar perf. The package was all done. I did not have to do much (notice a theme?). My most expensive part of the build? The drives themselves.
The downside is now I want something like 2.5g (or better) and the particular one I picked has zero way to upgrade (other than ripping the thing apart and hoping the right drivers are in there). It is about trade offs. Did I really want the possibility of upgrade or up and running quickly. Remember this is not something I do all the time. It is something I do every 3-4 years so I have to refamiliarize myself with all the different possible parts. Plus getting the OS in there 'just right'. Not impossible or even hard. I just chose a different trade off.
You could buy an old HP Proliant server (gen8?) and plug in 4 x 16TB HDDs and boot from the 5th drive.
They're just bog standard x86 boxes with a lot of drive slots, a backplane, and a lot of sad or sata ports and controller capacity. There's a pretty healthy used market in these things also. But they are targeting people who want to put 10 or more drives in a single enclosure, which is why I say they might not be consumer.
Honestly, best thing you can do now is just live with a tower server or buy off-lease from eBay. We've passed the hump where the off-lease eBay specials had the energy footprint of a small factory and used turbine jet engines to power the fans and cool things down.
I did buy once buy a no-name (ATX?) 2U case/rails only from eBay, but the manufacturing, accessibility, ergonomics, design, and everything else were terrible enough that I would not do it again.
You can get a truenas but its a little under powered for what it is especially if you want to use it not as a nas. This is the tradeoff for buying a turnkey product in a niche market.
That being said you can just build your own nas. There are nas boards with multiple sata already built in for you as well as cases designed for these sorts of boards and multiple hdds. jonesbo cases are popular for this. at a certain point though it stops making sense to build one of these and starts making sense to rack mount your storage array, of which the options are far more numerous.
Intel Alder Lake N100, $189, https://aoostar.com/products/aoostar-r1-2bay-nas-intel-n100-...
Ryzen 5700, $299, https://aoostar.com/products/aoostar-r7-2-bay-nas-amd-ryzen-...
Hardware wise it's:
- Asrock Rack C246 WSI Mini ITX motherboard - 32GB ECC RAM (2x 16GB UDIMMS) - benefit of using the C246 chipset - Intel i3-9100T - 6 IronWolf 4TB NAS drives - 2U Short Depth rackmount chassis (so it fits in my network rack) - 1TB Samsung 850 Evo boot drive
Idles at 23W which is low enough for my tastes, ramps up to 65W under load (I spin the disks down after 10 minutes of inactivity, even doing that I'm only seeing about 10k load/unload cycles a year (drive is rated for 600k).
Who do I have to kill to get one :)
Not questioning a great project, but just curiosity about this small aside: why is USB 2.0 not suitable for the OS?
On a NAS, is it doing anything other than boot-time reading, and maybe occasionally writing a little data?
I'm not gonna pretend that the real reason for making this wasn't because I have fun tinkering though.
This looks a lot more professional and I'm kind of jealous.
I have the 5-bay variant of the same NAS. I decided to put TrueNAS Scale on it using a Samsung USB stick using the internal USB. I chose one that’s widely used for Tesla dashcam, so I know it is at least somewhat durable.
I’m happy with it so far. I still find the CPU performance very lacking so I’m planning on upgrading to something beefier.
I wonder if it will cause airflow issues? The original(and updated) pcb has a large hole in the center, I presume for airflow across the drives. which the nvme drive obscures. My guess is there will be enough leakage around the edge of the nvme to provide enough cooling to the normal drives and you get the worlds best cooled nvme drive for free. However, it does look very tight.
Thanks for your comment!
I like your videos btw! :)
I did try to put ZFS on it, just on a single USB drive, and when copying files to it, my system became unresponsive. Mouse, keyboard, dr aa gg ge d. I/O drops down to about a 1/5th to 1/4 of what it should be. Just crushes my machine (last generation Intel iMac). Top/Activity monitor doesn't show anything truly untoward. Spikes of 400% CPU (supposed to be an 8 core machine).
Just trying to prevent bit rot, but not in the cards for this machine for some reason.
I'm not gonna pretend that the real reason for making this wasn't because I have fun tinkering though.
The random I/O isn't that great either. The max you'll be able to get is ~200 IOPs for sequential reads/writes. Even flash storage takes a bit of a hit when doing random I/O vs sequential.
Also, flash storage is often slower at writing than reading, that degrades performance even further.
USB 2.0 will work okay for many NAS boot disk scenarios, but it will be an absolute slog when performing reboots, configuration changes, accessing logs, performing updates, installing new packages, so on and so forth.
If you can avoid it, don't use USB 2.0 for your boot device :)
As for the rPi3, you won't notice the difference, usually, between an external USB flash drive and the built-in MicroSD slot because they both go over the same USB controller. When you do notice differences it'll have to do with the quality and speed of the particular microsd cards and usb flash devices you use.
The limitation of IOPs has to do with how the communication works and the limits to frame sizes and amount of frames that can be transmitted at the same time. The bus fills up quickly when lots of traffic is occurring.
The USB 2.0 spec was released over twenty years ago. At that time the performance was incredible, but only in comparison to USB 1.x.
If all you have available to you is USB 2.0 for your OS/boot storage, then by all means use it, however if you don't need to, if you can avoid it, don't use it. Leave those ports open for your keyboard and mouse. ;)
I'm asking coz the OP mentioned the need for a PCIe-to-SATA bridge chip to have more than a couple of SATA ports. I'd assume that if HDD were also NVMe devices, it will be simpler to just wire each PCIe lane to a drive, without requiring any bridges. A PCIe 2.0 x1 lane is 500MB/s, on par with SATA III 6Gbps.
The ServeTheHome Youtube channel had a good overview video about those drives around 2 years ago: https://www.youtube.com/watch?v=29Nh3p6779E
Doubt. SATA and SAS is more than enough, cheap (not for the customer) and has 20+ years of experience. What we would see is a clear distinction between 3.5 HDD and whatver SSD storage boxes.
Consumers? 2.5 and M.2 for SSD, 3.5 for HDD. For years.
That's why mine has such a low number of components.
Thanks!
Why not? I would not expect the OS drive to be I/O heavy on a NAS.
Edit: I want to add though that the main reason behind this is "for fun" :D
Ah, fair enough - I suppose NAS/server is a bit of a continuum anyways.
> I want to add though that the main reason behind this is "for fun" :D
Yeah, that seemed more likely up front:D
I started using hd-idle to spin down the drives when idle for 30 minutes even.
I do however run my system with root on tmpfs and have various data persisted on the SSD.
Also page faults are going to be slooooow.
OP did say they added a stick of RAM, so w/ ZRAM on there it might not be too bad.
Raspberry Pi forced an entire generation of software hacks to deal with slow os/boot disk speeds (esp. the earlier models but also just the affordability aspect even with the new models).
I always pick this option when I use Clonezilla because usually I'm booting it from a USB stick and everything would be slow the whole time if I didn't put it into RAM.