Turn DAS into NAS with a Raspberry Pi 5 and OpenMediaVault

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
now direct attach storage has many many advantages for example speed now by direct attach storage I mean a storage device hard drive SSD whatever connected directly to a PC normally over USB now the later versions of USB offer significant speed and therefore you can get access to highspeed uh storage directly attached to your PC now there are times though when you want to have that storage available on the network because maybe in another room you want access to that storage maybe because you want to share it amongst multiple computers and then it's no longer direct attached storage but it's network attached storage cuz it's attached to the network now I recently reviewed a direct attached storage unit the terramaster hybrid d8 here on this channel and it allows you to add up to eight drives into a single unit meaning you get raid capabilities you can connect ssds you can connect NVM drives you connect traditional hard drives it's just brilliant you connect all kinds of things into it but sometimes you might want to take all that power of that storage just literally terabytes of stories that you can put in there and make it available on the network now how would you do that well there are different ways of doing it in this video I want to show you how you can turn a direct attached storage unit into a network attached storage unit by connecting it to a Raspberry Pi 5 we're going go into all the details about the differen in direct attach storage Network attach storage what software we're going to use to do we're going to go through the whole thing so that you can take some storage and put it on your network using a Raspberry Pi so if you want to find out more please let me explain now the biggest difference between direct attach storage and network attach storage is going to be speed you've probably got gigabit Ethernet in your home in your home office or at your place of work now you may have 2.5 gbit you may have five you may even have 10 but if you're that kind of Advanced that you've got that advanced kind of networking then you've probably already got some fairly sophisticated solutions for your storage if you're just a normal person like me then you've got plain old gigabit Ethernet that means you're going to see a speed reduction of transfers because units like the teram master can offer greater than gigabit uh transfer speed much much higher especially when you're using the new USB standard USB 3.2 uh and so on and I cover all of that in the room review that I've done of the terror Master device but the advantages of going to network attached storage is that it's available anywhere on the network doesn't have to be directly connected to a particular laptop or a particular PC now assuming you're okay with the lower level of performance then what we're going to do is we're going to connect the direct attach storage device to a Raspberry Pi using the USB connector now the USB transfer speeds at the Raspberry Pi can achieve are higher than the gigabit Ethernet that it can provide so now the bottleneck becomes the gigabit Ethernet and not the USB connection to the direct attached storage device now when I talk about direct attach storage I am talking about this uh terramaster device that I have here but really it can be any kind of storage that you're connecting via USB just a normal external hard drive just one hard drive uh connected to it you could be a USB drive could be an SSD drive it could be whatever it is you want to connect to the device you connect it directly to the Ry 5 Via the USB and then you're going to need to run some software that allows that to be shared on the network now we could do it by hand we could install uh Linux and then go through all of the setup installing the Right Packages and the right things and edit the configuration files and in fact I do have videos here on this channel exactly about how to do that but in this case we're going to use open media vault which is basically a distribution or a set of packages as you'll see that you can install pre-install onto your machine and you get a nice web interface that allows you to uh manage and share the storage directly on the network okay so for this video you're going to need a Raspberry Pi 5 you could also do it with a Raspberry Pi 4 uh probably not worth doing it with a Raspberry Pi 3 you're not going to get the transfer speeds uh particularly over the USB or over the uh gigabit Ethernet so raspber P for or up need a Micro SD card of course and you're going some kind of external storage connected to it now one thing to note in all of these cases better if the external storage has its own power supply in this case the Terra Master does other popular uh kind of external hard drives have their own power it is possible to do it with a 2 and 1/2 in drive that takes the power from the USB however do be careful to make sure your power supply to the rasby pi is sufficient to be able to power both the Rasberry Pi and that hard drive okay so the first step is to prepare the micro SD card okay so you need to go into Raspberry Pi Imager the first thing to do is to pick your device I'm using a Raspberry Pi 5 then we need to choose our operating system now I'm not going to put on a full desktop operating system said I'm going to go to Raspberry Pi OS other and then I'm going to pick Raspberry Pi OS light 64-bit it's a very short download only 0.4 gbes 400 megabytes pick the storage in this case I've got 132 GB SD card micro SD card in my card reader do I want to apply any settings uh no I don't want to at the moment so I just go with as it is everything will be erased yes no problem and it's going to go ahead now and write that onto that SD card once the SD card has been written you pop it into your Raspberry Pi and give it a boot up there is initial setup screen you need to go through setting the keyboard picking a username choosing a password for that user and then finally you'll be able to log in to the Raspberry Pi using a connected uh keyboard and a monitor and then you will have access to the command line now at this point you need to run a command to fetch the install script for open media Vault and run it now because you're running on a command line here using an attached keyboard you probably can't cut and paste there is a way that you could maybe configure uh secure shell and then log in and cut and paste but it's quite easy it's w get minus O big O space minus space and then it's https do it in in sections github.com open media Vault hyphen plug-in I developers slash install script SL raw SL Master SL install bit of a Malou for but it's quite easy to type out then you pipe that into sudu and then bash and that will go ahead and start to run that script does take several minutes to download and do all the things it needs to do but once it's done that you can then it will automatically reboot and then you will be given some information that shows you the IP address of your device it also handly tells you the username and password for the open media Vault default login so what you need to do is point your web browser to that IP address and then use that username and password to log in and once you've logged in you can optionally go to network and then to interfaces and change it from being DHCP to having a static IP address this is optional I always like to set things like Nas units and things to having a picked IP address in this case 1 192168 1.12 you also need to type in the default gateway which is probably 1.1 on your network and the net Mark which is probably 255 255 255.8641357 host name from the default to something that you prefer in my case I'm using omv pi just to show this is open media Vault running on a Raspberry Pi okay now that we've changed the host name and configured the networking we can now go on to configuring our storage first of all let's just set up the dashboard here uh you can pick whatever you like here you can experiment with it I'm going to go with uh memory with file systems and CPU utilization you can play around with that as I said okay so the first to do is enable uh SMB or KS so we go over to here go to settings this will allow Windows machines basically to access your uh new Nas that we are building so we just enable that leave it in work group and then click save and then also we want to make sure that we have a user setup as we need to so let's go to users let's go to now I've got Gary cuz that's the user I created on there want to make sure we set a password so we go in here and type a password so that when we try to access a share we will have a password in there for that click save uh and at this point would be a good idea just to uh apply the pending settings okay now before you can actually create a a share you have to look at the actual discs that you've got and then the file system so if we click here we get a list of all the diss now the ones here SDA sdb and SDC are the ones from from the terror Master direct attached storage these two here are anything I've got connected to the Raspberry Pi uh interally for example I have a an SSD connected to the Raspberry Pi here using an SSD hat and I've got a video about that here on this channel but what we're going to do is we're going to configure this 4 tbte drive here which is in fact two drives in a raid configuration that the terror Master handles all by itself now what we're going to do is I've already got something on this so I want to erase it so we go over here to wipe do we really want to wipe that yes I do okay and let's do that quick uh and that will get rid of what's uh on there okay so then we go to file systems and we want to add a new file system I'm going to pick ext4 you can pick your favorite file system there select a device here is that 4 terabyte drive that we've just wiped and now we're going to create a file system on it and once the file system has been created do we now need to mount it we can see it now here on our list ext4 and we just save that like that now that we have a file system mounted we go over to Shared folders we click on ADD we want to pick a name so I'm just going to call this 4tb select a file system that one there now notice here sometimes it adds in this relative path for if you want it just to be in the root folder with not a sub folder then you need to change that to to just uh the root folder so that's what I'm doing there and there we now have a shared uh folder uh already and on the system apply the changes and now once you have a file system created and a shared folder created you can then go to Services we can now go over to uh SMB and KS we can add go to shares now and we can add a new share select yep we're adding the 4tb and there are different things you can click here this all depends on how you want to configure SMB KS most of it's okay uh for just leave it like that you can change it for example do you want a recycling bin on there you can tick that if that's what you want okay if I now navigate over to omv Pi I can type in my username and the password that I set remember earlier on if you remember and that will now give me access to that 4 terab share which we've got there and there it is it's available and we can start copying files to it we can can read from it uh job done now of course you can repeat that because if we go back over to uh storage here diss we can repeat that with whatever uh hard drivve you've got inside of that teror Master in my case for example you know it can hold up to eight drives so that's a lot that go in here I've got three in there at the moment in fact four cuz one of them is already in that raid configuration for more details how that particular Terror Master works then as I've mentioned do see my review but whatever hard whatever hard drive you've connected whatever external uh device you've connected to this via the USB there you have it so when it comes to transfer rates it certainly is the gigabit Ethernet that is the bottleneck the Raspberry Pi 5 can handle it the terram master can certainly handle it I cover all the performance of that over in my review video so I was able to share some drives from the terramaster and I was able to saturate my gigabit Ethernet uh right up to over 110 megabytes per second which is approaching uh a gigabit uh bits per second uh about 9914 I think I was getting so that's absolutely fine so you are getting the full power that you can get over your gigabit Ethernet using the raspberry pi 5 now it is worth noting course that does depend on the storage that you're using and mechanical hard drive is going to be slower than an SSD which is going to be slower than an nvme you know M2 drive but assuming you've got fast enough storage then you're going to uh fill up the capacity of your gigabit Ethernet okay that's it my name is Gary Sims this is Gary S I really hope you enjoyed this video how to convert a dash to a Nash using a rasm pi 5 and open media VA if you like the video please do give it a thumbs up if you like these kind of videos why not stick around by subscribing to the channel okay that's it I'll see you in the next one [Music] [Applause] [Music] [Applause] [Music]
Info
Channel: Gary Explains
Views: 8,033
Rating: undefined out of 5
Keywords: Gary Explains, Tech, Explanation, Tutorial, DAS, NAS, Raspberry Pi, Raspberry Pi 5, Network Attached Storage, Direct Attached Storage, OpenMediaVault, OMV, Linux, Raspberry Pi OS, Raspberry Pi OS Lite, SMB, CIFS, RAID, USB
Id: wS-PseiaPIU
Channel Id: undefined
Length: 14min 13sec (853 seconds)
Published: Wed Jun 26 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.