Learning Library

← Back to Library

Building a Low‑Cost Raspberry Pi 5 NAS

Key Points

  • The creator recounts past Raspberry Pi NAS builds that struggled with speed and reliability, especially on Pi 4 and Compute Module 4, prompting a search for a better solution.
  • With the newly released Pi 5’s faster CPU, PCIe support, and broader availability, they aim to assemble a sub‑$150, 4‑bay NAS using a $45 “penta‑SATA” HAT, a 12 V power supply, a fan, and a micro‑SD card.
  • They note potential bottlenecks—Pi 5 still caps at 1 GbE while some commercial NAS units offer 2.5 GbE and hot‑swap drive bays—yet expect fewer compromises than their earlier DIY attempts.
  • Power delivery is addressed by feeding 12 V directly into the HAT’s barrel jack (or an ATX‑style supply), which then supplies the Pi 5’s 5 V rail, and the board uses an FFC connector to link the Pi’s PCIe lane to the SATA controller.

Full Transcript

# Building a Low‑Cost Raspberry Pi 5 NAS **Source:** [https://www.youtube.com/watch?v=l30sADfDiM8](https://www.youtube.com/watch?v=l30sADfDiM8) **Duration:** 00:32:15 ## Summary - The creator recounts past Raspberry Pi NAS builds that struggled with speed and reliability, especially on Pi 4 and Compute Module 4, prompting a search for a better solution. - With the newly released Pi 5’s faster CPU, PCIe support, and broader availability, they aim to assemble a sub‑$150, 4‑bay NAS using a $45 “penta‑SATA” HAT, a 12 V power supply, a fan, and a micro‑SD card. - They note potential bottlenecks—Pi 5 still caps at 1 GbE while some commercial NAS units offer 2.5 GbE and hot‑swap drive bays—yet expect fewer compromises than their earlier DIY attempts. - Power delivery is addressed by feeding 12 V directly into the HAT’s barrel jack (or an ATX‑style supply), which then supplies the Pi 5’s 5 V rail, and the board uses an FFC connector to link the Pi’s PCIe lane to the SATA controller. ## Sections - [00:00:00](https://www.youtube.com/watch?v=l30sADfDiM8&t=0s) **Low‑Cost Pi 5 NAS Build** - The presenter assembles a sub‑$150 Raspberry Pi 5‑based NAS with a SATA HAT, power supply, fan, and SD card to evaluate if the newer Pi’s PCIe and faster CPU can overcome the Pi 4’s network bottlenecks and deliver respectable performance. - [00:10:56](https://www.youtube.com/watch?v=l30sADfDiM8&t=656s) **Enabling PCIe Gen3 on Pi5** - The speaker walks through enabling PCI Express Gen 3 for a JMicron SATA controller on a Pi 5, verifies link speeds with lspci, and plans performance benchmarks. - [00:16:08](https://www.youtube.com/watch?v=l30sADfDiM8&t=968s) **High-Speed File Transfer & OpenSauce Invite** - The presenter shows a 100‑GB copy at 110 MB/s, notes the need for chip cooling, and plugs the June 15‑16 OpenSauce maker event in San Francisco, urging viewers to attend or exhibit. - [00:24:22](https://www.youtube.com/watch?v=l30sADfDiM8&t=1462s) **Setting Up ZFS RAID‑Z1 in OMV** - User navigates OpenMediaVault’s storage interface, discovers the lack of traditional RAID tools, and instead creates a RAID‑Z1 ZFS pool across three 8‑TB drives, applying the pending configuration. - [00:27:29](https://www.youtube.com/watch?v=l30sADfDiM8&t=1649s) **Power‑Efficient NAS Performance Review** - The speaker evaluates a custom ZFS NAS, highlighting respectable read speeds, slower write speeds limited by a 2.5 Gb network, and a notably low 15‑16 W power draw compared to typical pre‑built NAS devices. ## Full Transcript
0:00I've built a bunch of Raspberry Pi nases 0:02from a little tiny all SSD Nas to the 0:05biggest one on earth the petabyte Pi 0:07Project but the pi4 and compute module 4 0:10were just barely adequate I could never 0:12get even 100 megabytes per second over 0:14the network even with ssds the two most 0:17promising projects the wire truste SATA 0:19board and radas taco were both dead in 0:22the water they launched right before the 0:24great P shortages when you couldn't get 0:26a Raspberry Pi For Love or Money but the 0:28Raspberry Pi 5 is here now it's faster 0:31it has PCI Express and best of all you 0:33can actually get one yeah it's a little 0:36more expensive than the pi4 but with 0:38off-the-shelf 4bay nases costing 300 0:40bucks and up could we actually build a 0:43pine nass for less and would it be any 0:46good well today I'm going to see and to 0:48do it I'll use this tiny SATA hat that 0:51RADS Us in this costs 45 bucks and it's 0:54already shipping add a 12volt power 0:56supply a Raspberry Pi 5 a fan and micro 0:58SD card and we have a tiny Nas for less 1:01than 150 bucks but will bottlenecks kill 1:04this thing like they did with the pi 4 I 1:06mean the pi five only gets a gigabit 1:08those other nasas can do 2.5 and they 1:11have hot swap drive base and vendor 1:13support so yeah comparing just on price 1:16alone is silly there's always going to 1:17be tradeoffs when you go DIY but this 1:20thing should have a lot fewer 1:22compromises than the jankier builds I 1:23did in the past at least I hope and 2.5 1:27gig networking I might have a fix for 1:29that I'm going to put this thing 1:31together and see if it could be the 1:32Ultimate Raspberry Pi 5 Nas I do not 1:36know exactly what tools will be required 1:38and I don't know what's in the box 1:40hopefully it includes everything I need 1:42uh but uh rans usually does a pretty 1:44good job including all the little bits 1:46and Bobs you need for this looks like it 1:48includes this extra cable this is after 1:51all the penta SATA hat so five SATA 1:54connections I have four drives here uh 1:57but you can add on another one using 1:58this strange external I guess this might 2:01be eeta or something uh but it has SATA 2:04and power from this port something 2:07important to uh think about is how 2:09you're going to supply power to it uh I 2:12know some people in comments have 2:13mentioned oh you need to supply power to 2:15the pi and this board but no uh I 2:17believe that you can just power this 2:19board through the 12volt barrel Jack or 2:22through an ATX MX power supply here so 2:25if you have have it in a PC case or 2:27something you could do it that way and 2:29this will power to the pi5 through the 2:31GPI opens uh this should be able to 2:33provide adequate power as long as the 2:36power circuitry on here is good enough 2:38to take that 12volt signal and give a 2:41clean um you know 3 to 5 amps on the 2:44Pi's 5vt rail now this doesn't have the 2:47normal PCI Express 2:50connector that you see on the 2:52pi5 so the pi5 has this little this 2:56little guy here uh this has a much 2:59larger 3:00connector with more pins that could be 3:02an interesting thing uh I believe that 3:04they have an adapter for it though so 3:07yeah here it is so this is called an FFC 3:10or flat flat flexible circuit board and 3:14it looks like they've included two which 3:17is nice because these uh these these 3:21little connectors are a little bit 3:22delicate you can see how thin they are 3:24they're kind of you know they're kind of 3:25like paper thin uh but these are flat 3:28flexible circuit boards or ffc's and 3:31they connect from the Pi's PCI Express 3:34connector here over to this guy here and 3:38the GPO pins over here are going to 3:40provide power to the pi at least that's 3:42my hope there is a getting started guide 3:46on here but uh I you know I'm going to 3:50YOLO this thing and see what happens one 3:52important thing whenever you're doing 3:53these is make sure you get the connector 3:55seated all the way and it should go in 3:57pretty easy if you're pushing hard then 3:59you're going to break the cable so don't 4:00do that if you're pushing hard you might 4:02need to pull this little connection up 4:04and always do it on both sides so that 4:06it doesn't come off because if it comes 4:08off it might break and then you would 4:10not have a way to hold the cable down 4:12you push down on this 4:14little top part and uh this cable is now 4:18a fixed to the pi very well and then I'm 4:21going to plug it into here so it looks 4:24like it goes like this the funny thing 4:26is these these kind of connectors are 4:28often used inside of of you know cameras 4:31and and other things that are put 4:32together at factories and uh they 4:34they're very careful they have their 4:36methodologies they even have tools to 4:37help with it uh when you give these 4:39things to people in in the general 4:41public like you and me we tend to break 4:44our first one so I guess it is a really 4:46good idea that they included a second 4:48one here uh they probably have some 4:50screws too let's check yeah there's 4:53little Kit full of screws here there's 4:56uh some standoffs and 4:58things 5:02and then now I'm going to put this in 5:04I'm going to carefully put this 5:07over and plug in the GPO pins that 5:11provide Power uh but that fits nicely 5:14together uh there is a connector here 5:16for an OLED and fan control board that 5:20sits on top of the hard drives at the 5:22top they don't have that available yet I 5:25I think they used to make it I don't 5:26know um if they needed to revise it for 5:28this or what but uh I asked about it and 5:31it's not yet available so it' be nice to 5:33have that especially these are not that 5:34hot of drives but if you use hard drives 5:37if you use 2.5 in hard drives and those 5:39can get pretty toasty and it's nice to 5:42have a fan blowing air over them um I 5:44just realized I don't have any fan on 5:46the pie itself and I probably should do 5:48that because it could get pretty hot and 5:50toasty inside here let's get our little 5:53active cooler here I hope this will fit 5:56I I don't know if there was a warning 5:57against using this but uh the pie does 5:59need some sort of cooling whether it's a 6:01heat sink or a fan and there's uh 6:04there's no fan built into this it' be 6:05cool if there was a little fan under 6:07here or an option for one but it doesn't 6:10seem like that's the case okay please 6:12still 6:14fit looks like it will fit oh no you 6:16know 6:18what the uh the barrel plug is 6:22just just 6:24touching on the top of the top of the 6:27heat sink there's there's literally 6:30uh it's just three three of the fins on 6:32the heat sink you know what I might do 6:35might see if I can bend those off take 6:37this back off 6:40again I'm going to pull this connection 6:44off this is a terrible idea I would not 6:47recommend doing it just bending this 6:50back and forth there's 6:53one shouldn't affect the performance 6:55that 6:56badly I removed the middle portion from 7:00from the Middle Point up of these three 7:02little fins on the heat 7:05sink and uh there's a side view of it 7:08you can kind of make it out it's kind of 7:10hard to make out sorry about that but 7:12let's get this all back together now and 7:14see if it fits okay this 7:17time if I go down it can go down all the 7:19way and look at that 7:21that's just enough clearance as long as 7:24it works in the end it's all 7:27good I use this huge huge guy just give 7:31these a little 7:32snug generally I'd use a nut driver for 7:34this but this works in a pinch literally 7:39my topown recorder decided to corrupt 7:41the rest of the video so I lost all that 7:43footage but in that footage I mentioned 7:45the board uses the jmbb 585 pcie gen 3x2 7:49controller which means even if we upate 7:52the pi 5's bus to gen3 from its normal 7:54Gen 2 will miss out on a little 7:56bandwidth and also the kit comes with 7:58two side supports that hold all the 2.5 8:00in Drives together though there may be a 8:03case available at some point in the 8:04future they actually had one in the past 8:06when it was sold for the rock four or 8:08the pi4 I think but I'm guessing that 8:10they'll have to make another batch if 8:12they get enough interest in this new 8:13version of the pent SATA hat okay so 8:15everything is put together now it's all 8:17looking nice and I I think there will be 8:19enough air flow uh there's holes in the 8:22sides holes in the middle so enough air 8:24will conve through for these drives at 8:26least and I have a 5 amp 12 volt power 8:30supply this should be adequate for these 8:32drives and the Raspberry Pi 5 I'd budget 8:35maybe 3 to 5 watts per drive or if you 8:37have 3.5 in drives maybe a little more 8:39and you might want to get an 8 Amp or 8:42maybe even 10 or 12 amp power supply uh 8:45but definitely don't use like a 2 amp 8:46power supply and expect this to work 8:48it's going to have all kinds of issues I 8:50also have raspberry pios uh 64-bit light 8:53version and I might try open media Vault 8:55I'm going to take the micro SD card and 8:57put it into the slot and then I'll grab 9:01this power adapter now one another 9:04reason why I'm over at the desk is I 9:06have my little this is a zigg third 9:08reality zigg outlet that has power 9:11measurement built in which is very handy 9:14for testing I'll go ahead and bring that 9:16up on here if I go to home assistant and 9:20then go to Power you can see that right 9:22now there's zero Watts because there's 9:24nothing plugged into it power is going 9:26to come in looks like they they wanted 9:28to align the power with the USBC Port 9:31not that that matters uh first I'm going 9:34to plug in network and I'll plug in 9:36power and we'll see what happens 9:37hopefully no 9:40sparks all right I have a green light on 9:44the board and the pi is booting up power 9:47usage is up to 14.2 Watts at 9:51boot and now the pi is doing its reboot 9:54so it's going to reboot a couple times 9:55this first time that I I turn it on uh 9:57because it expands the file system to 9:59fill up the S the micro SD card all that 10:02kind of stuff so we'll fast forward a 10:04bit until it's all booted up and then we 10:06can log into it on the network and see 10:08if it's actually working I don't see any 10:10lights there's just one green LED on the 10:13board over here but I don't see any 10:14other lights so I don't know if there's 10:16lights per hard drive so I'm going to 10:18log into it and we'll see what we can 10:20see sshp at pi- 10:25n.l there it is and if I say lsblk hope 10:29hopefully we see those hard drives no 10:31we're not seeing them let's try 10:35lspci and I'm not seeing the device at 10:39all I don't see any errors in here let's 10:42go to uh the the URL on this box and see 10:46if there's any other tips that we're 10:48missing rock. 10:50sh Penta hat pent 10:56hat so we did that we did that 11:00oh so maybe I should actually do that 11:03let's try 11:06that go in 11:08here you'd think it would do it 11:10automatically but it does 11:13not so we're going to enable PCI Express 11:16save and reboot so save that and reboot 11:20so let's check 11:23again there we go we have 1 2 3 four 11:27hard drives and if I Say LSP 11:30I can see the J Micron SATA controller 11:33now uh right now it should be PCI 11:35Express Gen 2 we can check that with uh 11:37pseudo 11:39lspci - vvvv this is going to give us 11:42all the information about PCI Express 11:44devices and if I go up to here this is 11:47ahci that's the kernel module for the uh 11:50SATA controller and we can go up to the 11:53top section see it's j Micron jmbb 585 11:56and if I go down 11:58to link capabilities it says Speed 8 gig 12:02transfers per second width by two that's 12:04pcie gen 3x two but the status says it's 12:085 Giga transfers by one so definitely 12:11less bandwidth than the chip is capable 12:13of so I'm going to try PCI gen 3 and I 12:17can do that following my own guide if I 12:20go down here turn that on like 12:24this and reboot and we'll see if it 12:27gives us gen 3 speeds instead of and two 12:29speeds which would give us the maximum 12:31performance that we can get on the pi5 I 12:35have four drives that have nothing on 12:36them uh I'm going to try we should 12:38probably just Benchmark the drives first 12:40in like RAID 10 just to see what the 12:42maximum speed is or maybe even raid zero 12:45so let's let's do that that'll take a 12:47couple minutes and uh we have blinking 12:50so you can see that the the LEDs 12:52actually do work I didn't see those when 12:54I was looking earlier but it has some 12:56LEDs and you can see them blinking when 12:58the dri or access so nice job uh I 13:01should check it does feel a little bit 13:04hot uh in infray I found them at uh CES 13:08and they actually sent me home with a 13:10couple goodies uh this is the P2 and 13:12it's uh the reason why I wanted them to 13:14send me home with one to test was uh it 13:17has this Snap-on macro lens that you can 13:20see individual resistors or things on 13:23your PCB very closeup which is kind of 13:25cool uh but their software is a little 13:28bit little bit bit iffy um not the best 13:31software that I've used for IR cameras 13:34uh but the camera itself is really good 13:36quality and works better than my old 13:38seek thermal but let's check the 13:41temperatures on here and it looks like 13:43the drives themselves well they're a 13:45little bit reflective so we might not be 13:47seeing the actual Drive value but the 13:51board the board is up to 13:5450° or so the uh sta controller is down 13:58there it looks like it's the hot part of 13:59this thing and it is getting up there to 14:0260° C so it might be good to have at 14:06least an active fan blowing down on top 14:08there's the cold soda can 16° C and 14:12there's the hot SATA chip so I'm going 14:14to put this cover on and see up nice and 14:18close if I get in 14:20there yeah we can see that the chip 14:22itself is 60° 14:25C so it's pretty toasty in there 14:29yeah I would definitely do a fan or heat 14:31sink on this if you're going to deploy 14:32this long term another fun thing with 14:35the thermal imaging is you can see all 14:37kinds of fun details like you can see 14:39that this is where my my hand was 14:41resting and if I just put my hand on the 14:43table and take it off there's a 14:46handprint and apparently this little 14:49this little screen on here also 14:51generates a teeny tiny bit of heat and 14:53now it has my fingerprint on it which is 14:54also warm looks like the formatting is 14:57finished and what's our next step Here 15:00Mount the 15:01array okay Mount raid zero so now let's 15:04do a disc Benchmark on it and we'll run 15:07the dis benchmarks and see how fast this 15:09array can go okay here goes fio hey 15:12that's not bad at all 87 850 to 60 15:16megabytes per second and that's 15:18megabytes so let's see how fast it was 15:22in 15:23megabytes uh almost 900 megabytes per 15:26second across all four drives in rate 15:28zero of course uh but uh random reads of 15:31687 megabytes per second and random 15:34rights of 15:36758 and then we have 4K block size uh 44 15:40Megs read and 152 Megs write at 4K which 15:44is not bad at all um I'm interested in 15:48seeing I think what I'll do is I'll just 15:50put an a samb share on this and we'll 15:52see if we can saturate a 1 gig 15:53connection continuously restart 15:57Samba and create a password now I should 16:00be able to connect on my Mac py. 16:04local uh we'll do the shared directory 16:08here it is so I'm going to copy over a 16:11folder with all of the footage of the 16:14build that's 100 16:18gigs and let's check this out let's see 16:20how fast it 16:23is that is line Speed 110 megabytes per 16:26second is pretty typical let's see if it 16:28can keep keep up that data rate I can 16:30smell that like slight off gassing here 16:33so I I do think that I would put some 16:36sort of cooling on here just for that 16:37jmbb 585 chip on my other NASA over 1 GB 16:41you can just hammer it and it'll stay 16:43110 15 megabytes the entire time this is 16:47a lot faster than the pi4 nasas I've set 16:49up before though and we'll just let the 16:51screen recorder keep going at 18 minutes 16:53and we'll just keep moving while that's 16:56copying I want to take a brief 16:57opportunity to tell you about Open sauce 16:59Open sauce is going to be June 15 to 16 17:02in San Francisco and I'll be there I'll 17:04be there along with a ton of other 17:06creators in the maker areas Electronics 17:09hacking all kinds of fun things if you 17:12want to go there's a way that you can 17:14get in for free and you can come to the 17:16party that's beforehand where all the 17:18other YouTubers and everyone will be 17:20present uh if you want to do that you 17:22can apply to be an exhibitor they have 17:24tons of space for exhibits this year 17:27it'd be really cool to see your project 17:28so if you want to do that go to opens 17:30sauce.com and apply to be an exhibitor 17:33otherwise you can also come as just a 17:35normal person who's not exhibiting 17:37things too so hopefully I'll see you 17:39there June 15 to 16 if not I will 17:41definitely be posting some things on 17:42Twitter and maybe something on YouTube I 17:44don't know so make sure you're 17:48subscribed it copied everything over to 17:51the pi now let's check the read speed 17:53I'm going to copy it back into a 17:55different folder on my local 17:57computer and we'll we'll see if it can 17:59give me 110 megabytes per second oh look 18:01at that it's giv me 18:03122 which is a little faster than the 18:06right speed and you can see that the 18:07drives are reading uh pretty much flat 18:10out right now I don't know if that'll 18:12fill up the cache but you can see that 18:14the the data is Flowing a lot more 18:16smoothly coming off the P than riding to 18:19it so there are some bottlenecks I don't 18:22think it's Samba and I don't think it's 18:24the drives themselves I think there's a 18:26bottleneck somewhere in the Pi's kernel 18:28or something when it's riding through 18:30because I had that problem on the pi4 18:32but on the pi4 it wouldn't even hit like 18:33120 megabytes per second all the time uh 18:36but reading that's not an issue at all 18:38here we're we're cranking at 120 18:41megabytes per 18:43second I deleted everything off of there 18:46and uh it looks like obviously read 18:48speeds are much more consistent than 18:50right speeds uh but I'm going to try 18:53something else that uh I mentioned at 18:54the beginning of this video what about 18:552.5 gig networking now Pineberry Pi it 18:59makes the hatn net 19:012.5g this is a 2.5 GB hat for the 19:04Raspberry Pi 5 uh but you'll probably 19:07already notice there's a problem it has 19:09one PCI Express input there's only one 19:12PCI Express connector on the Raspberry 19:14Pi 5 how do we solve this problem 19:16because this needs that and I want to 19:17put it on here too to see if I can get 19:192.5 gig networking well I can try the 19:23Hat brick Commander from Pineberry pi 19:25and yes they sent me these things I 19:27would be buying them myself anyway but 19:30I'm going to disclose that radza sent me 19:32this and Pineberry piie sent me this I'm 19:34testing these things out to see if they 19:36can work together and do some crazy 19:38things uh but Pineberry also sent me all 19:41of these extra cables of varying lengths 19:44one thing that can be a problem with 19:46when you start connecting multiple 19:48things together is the PCI Express 19:50signaling so I'm going to try to use the 19:52shortest cables I can for these 19:54experiments but I'm going to basically 19:57put this which is a PCX Express Gen 2 20:00switch off of the Pi's bus and then 20:03connect one connector to the SATA drives 20:05and the other connector to the the Hat 20:07net 2.5g the downside is this is going 20:10to make everything be PCI Express Gen 2 20:13speed inste instead of three so I 20:14wouldn't be able to get 800 megabytes 20:16per second on these hard drives but uh 20:19on the flip side this is 2.5 gig 20:21networking and if we say let's say 2 20:24gigs for networking and 2 gbits for the 20:26hard drives we might be able to do that 20:28to almost saturate 2.5 gig network if 20:31the pi5 can support that I don't know if 20:33it can or not I don't think it will be 20:35able to but we'll see uh if any of this 20:38even works it might also not have enough 20:40power I don't know uh but I'm going to 20:43unplug 20:45this okay we got that connector out of 20:51here there is some risk here if we are 20:55mixing these cables from different 20:57vendors and connections 20:59there's a little risk that Uh 21:00something's going to go wrong but 21:02hopefully that doesn't 21:03happen it's it's definitely not my 21:06finest 21:09work there's an LED on 21:12here and I see a light on the switch and 21:15there's a power LED on the hat brick 21:17commander and there's lights on here 21:19let's see if this is actually going to 21:22work 21:24lspci hey look at that so we have the 21:27switch here we have the SATA controller 21:30here and we have the 2.5 gig controller 21:34here let's do uh 21:37IPA and we have an IP address on that so 21:41let's do a I perf test now we're getting 21:432 GBS it's not 2.5 gbits but it's not 21:48nothing so coming back only 1.6 gbits 21:51that's not horrible it's still more than 21:52a gab this is probably going to get 2.5 21:55GB if you connect it straight to the pi 21:57I think that some of the overhead comes 21:58out of that packet switching uh that is 22:01running to the drives as well so if I 22:03say lsblk we still have the drives and 22:06they're mounted so we'll see if we get 22:09any faster right 22:11speeds it's doing 110 117 that's about 22:15the same as what we were seeing before 22:17so we're not getting faster than a 22:19gigabit over the 2.5 gig connection at 22:23least for rights I do see a few Peaks up 22:25to about 125 megabytes per second so 22:28better than a gigabit and it it's 22:30interesting the uh the overall rate 22:33seems a little steadier with the 2.5 gig 22:36I maybe the Pi's internal controller is 22:38a little funky but I don't know um but 22:41it is giving it's giving us a little bit 22:43more on the right speeds I'm really 22:44interested to see the read speeds though 22:47hopefully we can get more than one gabit 22:49let's check there we go 217 megabytes 22:53250 megabytes per second that's more 22:55what I'm uh what I'm expecting out of a 22:58a 2.5 gig connection so this can put 23:01through that data it's it's interesting 23:03I think it's pulling from Ram because I 23:04don't see the drives blinking at all 23:06here uh it's probably copying all this 23:08data from RAM and now it's hitting the 23:10drives and you can see it dips a tiny 23:12bit there so down to 230 megabytes per 23:15second so Linux usually caches files in 23:17the ram as it's copying them back and 23:19forth so that if you have a file that 23:21you're accessing a lot it's a lot faster 23:23uh but now that it's hitting the drives 23:25it only dipped down 10 megabytes per 23:27second so that's not bad at all so for a 23:30read heavy nass this this isn't looking 23:33like that bad of a setup now that I know 23:36that uh everything is going to work on 23:37here Hardware wise I think it's time to 23:40put omv on here and see how that runs I 23:42haven't used omv 7 yet so this will be 23:44new for me I don't think it's that much 23:47different than omv 5 and six but uh let 23:49me grab this script and go over here and 23:54this hopefully will just work I'm going 23:56SSH into the pi and just paste in their 24:00script the installer and here it goes 24:03let's check power consumption so during 24:05the install it was using between 8 to 10 24:07watts and it looks like the Baseline for 24:10this build is 8 watts with the 2.5 gig 24:13network adapter and everything else uh 24:15but let's go to past. 24:19local and does this 24:22work maybe I have to use the IP address 24:24let's try 24:27that 24:30well there it is I guess it was still 24:32booting up okay so that was not the 24:36problem there so admin and open media 24:38Vault are the 24:41password logging in there it is there's 24:45no dashboard that's okay storage is 24:48where we should see our diss they should 24:49show up yep 1 2 3 4 all of them are 8 24:54terabytes and uh I want to create an 24:57array 24:59file systems is this where we create 25:01create and mount a file system 25:06ext4 but I want to create a raid array 25:08how do I create a raate 25:10array am I totally missing 25:13something I thought there was a thing 25:15over here for creating raid but I don't 25:18see it 25:19anymore uh what does this 25:24say See this has raid management but I'm 25:28not seeing raid management anywhere do 25:30you see raid management anywhere we 25:33could try ZFS instead of raid but that's 25:35instead of like MD admin raid so we can 25:38try it out on open Medi Vault I've never 25:40tried it on on omv before uh but we'll 25:43see how it works 25:44here I like this little uh end of line 25:47here I guess a nod back to Tron the 1974 25:51version and we'll do raid Z1 since we 25:54have three drives uh a raid Z1 will use 25:56one drive the equivalent of that for 25:58parody data that way I could lose one of 26:01these four drives and all the data would 26:03be intact but here we go it says pending 26:07changes 21 terabytes available let's 26:11apply this so now the tank should exist 26:15compression is on I don't know if I 26:16would need compression 26:18on but I'm not going to mess with any of 26:21that right now uh if we go to pools is 26:24there anything else I can do tools what 26:26do we got so you can scrub it I don't 26:28know if it automatically scrubs in here 26:30but it gives us the uh pool 26:32information that's nice so this is a 26:36it's a good interface it's it's not the 26:38maybe not the best thing ever and it I 26:40don't know if it comes with schedules 26:42and Things by default but it'd be nice 26:43to have a scheduled snapshot and uh pool 26:47scrubbing scheduled that might be 26:49something that you can figure under 26:51scheduled 26:53tasks yeah so you'd have to you'd have 26:56to do some of these things you'd have to 26:57add your own scheduled tab tasks it' be 26:59cool if that added some things by 27:00default but I I can see why they don't 27:03as well uh but now let's add a file 27:06system so we have one tank ZFS I'll add 27:10uh 27:11shared under tank 27:15shared and we'll just set everyone read 27:19right right now save turn on 27:22SBA 27:25enabled 10. 27:270.221 27:29okay so it wants me to use the 27:31IP and there's our shared volume so 27:34let's uh I'm going to copy some stuff 27:36over to it I have uh this this folder 27:39has 100 gigabytes so I'll do that and 27:44here it goes so it seems similar to the 27:47uh the copies that we were getting with 27:49raid zero uh it is it it's interesting 27:53it it it goes a little bit faster 27:55sometimes than those copies were so I'm 27:57wondering if ZF is caching is actually 27:59helping here so far I'm pretty impressed 28:02um I think read speeds are where this 28:04wins uh right speeds are where this 28:07loses a little bit because you're not 28:09going to be able to get full 2.5 gigb 28:11networking on that but uh but it's 28:14better than I was expecting and the big 28:15win for me besides the fact that this 28:17can be made smaller if we kind of 28:20reconfigure these boards uh the big win 28:22is the power efficiency because right 28:25now uh we're using 15 or 16 Watts 28:28typically the other nasas that I've 28:30built uh using you know pre-built nasas 28:33they use they use 10 to 20 watts idle 28:36and they use 25 to 30 Watts when they're 28:39doing a lot of stuff so this little guy 28:42is only using 16 Watts doing the same 28:44amount of work uh which is probably 28:47about half of what most uh pre-built 28:49nases would use on the flip side if you 28:52build a Nas with the RK 3588 chip you 28:55could probably get even more efficient 28:57and more speed so there's a couple 28:58boards out there that are interesting uh 29:00that I might take a look at at some 29:02point but uh the nice thing is all of 29:04this this is all really well supported 29:06like the software just clicks some 29:08buttons and you have everything working 29:10I haven't always had that same uh kind 29:13of experience when I'm using the rock 29:14chip boards uh some of them are getting 29:17pretty good though I'm going to go ahead 29:18and let this right finish and then I'm 29:19going to do a full read of that 100 gigs 29:21of data and uh we'll see where we end 29:27up at the end of the uh copy it looks 29:29like the the system used 22 Watts for a 29:33little while while it was doing some 29:34sort of processing I don't know what ZFS 29:36was doing there maybe maybe that was 29:38part of the compression I don't know 29:40it's a lot of power to use at the end 29:41there uh the actual performance was 29:44interesting after that initial part uh 29:46where it was faster than raid zero it 29:48actually slowed down to a tiny bit 29:50slower than raid zero over that long 29:51rest of the copy and that's why it's 29:53good to use a large large file to test 29:56the actual performance of your system 29:57because especially with CFS it's going 29:59to cash a lot in the beginning in Ram 30:01and that throws off how fast your actual 30:03disc array is uh but the CPU usage was 30:07not too bad uh power consumption was 30:09down around you know 8 to 16 Watts 30:12throughout the whole copy uh but in the 30:14end the file copy uh was 74 megabytes 30:19per second with CFS in raid Z1 and it 30:22was almost 100 megabytes per second in 30:25raid zero now that's for the writing uh 30:27which is is going to be a little bit 30:28slower with a setup like this uh read 30:30speeds for both are practically the same 30:33it's just basically line speed it's it's 30:35not hard at all to do the reads so this 30:38is a little embarrassing all those 30:40conclusions I have are based on the fact 30:42I was benchmarking this all on a Mac and 30:45uh I switched to my Windows PC and I was 30:47able to get almost line speed for 1 gbit 30:50uh file copies writing to the pi and 150 30:53megabytes per second writing over the 30:552.5 gig Network so that's uh that 30:58changes my perspective a little bit on 30:59it and I think the biggest takeaway is 31:01don't use a Mac for benchmarking Network 31:03file copies even if it has 10 GB 31:05networking and everything else on it 31:07seems to be fine uh Mac OS for some 31:10reason is not great with file copies and 31:11I have a whole blog post and I have more 31:13details in the GitHub issue linked below 31:15but let's get back to the video it's not 31:17inconceivable to build a system like 31:20this Allin this one is still under 200 31:23bucks total including all these extra 31:25boards and things so uh but but it 31:29always goes back to DIY means you're 31:31responsible for the software you're 31:33responsible for maintenance and updates 31:36and all that kind of stuff anyway uh 31:39that was a fun experiment and I plan on 31:42doing some other fun experiments now 31:44that I have this little this little 31:46board here that lets me uh split up PCI 31:48Express Lanes and uh we'll see how we 31:51can bend the pi 5's PCI Express Bus it 31:53would be really cool to see a compute 31:55module 5 expose even more but we'll see 31:57what happens whenever that comes out um 32:00I know that that was a big change from 32:02the pi4 to the compute module for it 32:03gave us PCI Express now we have it on 32:05the pi5 but I think we might be able to 32:07do more in a compute module form factor 32:10but we'll see until next time I'm Jeff 32:12Garling