Hey, folks, and welcome to NASCAR device for NFS or Samba configuration.
We all know a storage can be carved on a Linux server and it can be shared with other Linux machines
through NFS service, or it could be shared to other Windows machine through samba services.
And that's what we covered in the last two lectures when we went through the Samba and NFS configuration,
right?
So to visualize it, we had a Linux server and we created or reattached a storage to our virtualization
software.
And then we created a shared file system out of it.
And in order to have that shared file system to be shared to other Linux client, we used NFS a service
and to do the same thing for Windows, we used a samba service.
But do you know the NFS Samba or any NAS service can also be set up through a dedicated and NAS device?
Yes.
So for that, let's visualize it again.
You have one NAS drive, which most likely looks like a box or looks like just like a mountable rack
mountable computer inside of the NAS device, you have multiple disks.
Now on that NAS device, there's always a small operating system which runs and controls that NAS device.
So from that operating system, we actually manage and create a shared file system.
And then we shared that file system with other clients, regardless whether their client is Linux or
Windows.
So in this video, we will learn the physical layout of a NASCAR device.
I have a small NAS device, which I have recently purchased, which I'll show you how it works, and
then we will go through the setup, configuration and management of that NAS device real quick.
We will also create a shared file system like NFS and Samba.
And the last thing we will mount that shared file system from the NAS device to Linux and Windows machine.
Now, for those of you who do not have a NAS device, then I would highly recommend that you please
stick around and watch this entire video because in this video, you will learn how easy it is to set
up a shared folder in your environment using NAS device.
Hey, guys.
So this is the NAS device that I'm using for this video now.
It's a very simple, small NAS device works perfectly.
It has a four disk drive slots, and it's a lot easier to swap those disk drives in case a disk goes
bad.
You could just simply lift the tab, pull it out and then push it back in and lock on the tab from the
bottom.
Another good thing that you should notice about these NAS devices is that it would have these ports.
These are the network ports.
It could be either on the side, in the back and the front.
Again, it all depends on the manufacturer of these NAS devices.
On this device, you will see these network ports right here.
You would need these ports to connect Cat five or six cable so this NAS device can be on the network.
And whatever the file system that you are sharing from, this device can be mounted on other computers.
The NAS device is already connected to the network and is powered on, and I'm able to access its portal
through the web browser.
It has been given and a DHCP IP address, and it's very easy to setup.
You just have to follow the instruction that is provided to you by the manufacturer.
This is the menu that you have given.
The very first thing you have to do is go to storage manager so you could create a pool and the volume
and click here.
Create now, start and raid type, select array type that you want to create for this and NAS device,
I'm going to pick a read five.
Click next.
How many drives you are selecting?
I'm selecting all for.
Click Next.
Modify the allocated size.
Do you want to take the entire pool size storage or you want to configure it into a separate, different
volumes?
I wanted to take the whole thing, so I'm going to select five five seven five, which is available
to me next beta.
For us, this is the file system which is recommended.
You can also pick I-64 if you want to be Pacific and you want to be consistent with the file system
of your Linux or Windows operating system.
Click next and then go ahead and click Apply.
All data on the newly added drive will be erased.
Are you sure you want to?
Teneo, yes, click OK.
All right, so it's loading now this is going to create your array to five storage pool and volume,
and this creation will take place in the background.
So there isn't anything that will hold you back to create shared file system.
So we'll go right into creating the shared file system.
Let's go to the main menu.
Click File Station.
There is no shared folder available, yes, we creating this for the first time, and it's asking you
to create a click OK?
The name of the shared folder pick anything that you like, but for this practice, I'm packing peanuts.
Let's share the peanuts.
Leave everything default.
No encryption, no checks.
Click next and verify confirm setting.
Click next configure user permission.
Who can access that you pull the read, write, read, write for everyone of them.
Click Apply.
OK, so now the shared folder has been created.
Now let's go back and click on Edit so we could create or modify the permission, NFS permissions and
create NFS permission.
Now, which host do you want this shared folder to be mounted?
We want it to be mounted to all the clients that are requesting not just one.
But if you want to specify one specific host or IP, you could specify right here.
But I'm just going to pick every one so that for that, I'll type it in asterisk or star privileges.
Read Right?
No mapping and security service enable asynchronous leave everything default.
This is the same setting as you would have in a Linux machine in Etsy fStab file.
Click Save.
All right, click Save.
Now we have already done the permission.
We created the shared folder.
Now it's time to enable NFS, so we already have it enabled right here.
Good.
The service is already running, we have enabled it and now we need to export that shared folder.
So for that, we have to go back to the shared folder.
Click on action right here.
Export permission report.
And here is a NAS device, and here's the folder and it will be saved as Volume one peanut.
So when we are going to mount it, we have to use this entire path.
Click Export.
Scanning files.
Boom.
Boom, boom.
Done.
Successfully exported permissions.
Good.
Now I have my Linux VM up and running, and I'm going to go right into it.
I'm going to have to create a mount point for this shared folder, and I am in sorry, I'm in this slash
directory and my host name is my first Linux VM.
Very good.
Let's clear the screen now.
Let's create a folder or directory d, i r and pick any name.
I'm just picking a as a name of the directory directories created.
Now let's mount that Peanut's shared folder here on Linux system so forth that will run the command
mount the IP address of.
Our NAS device, which is 56 colon slash.
What was the volume name?
It was volume one.
What was the shared folder name peanuts and where we are mounting slash ame, which is our created directory
for a moment.
Now, if I run D minus H, you will see that mounted shared folder.
So do define minus sage and right at the bottom you're going to see here is the mounted shift file system.
So that's how you mounted on the Linux machine on the NFS.
So if you wanted to do the same thing for Windows, so let's go to file services.
And by default, the very first two file services is SMB SMB, which is a samba.
It's already enabled by default.
The workgroup is the workgroup enabled transfer log and the PC Windows Explorer.
How am I going to mount this file system or this shared folder that we created on a Windows machine?
So for that, I simply have to use this slash slash, which is backslash backslash NAD for 20.
So let's do that.
Hmm.
Backslash backslash nas.
For 20.
And simply click on it.
Now it's asking me for the credentials, so we'll just, you know, as for 20, which is the same credentials
we created when we were creating the NASCAR device, click OK.
And there you have your Peanuts folder.
Now, if I create a file in here, it will be shown in Linux as well as in Windows.
So let's go to Linux machine and I'm going to go into CD Slash where this shared folders mounted.
I'm going to create a file.
Let's call it touch X-Y-Z hit enter.
It is created.
Let's do LS minus l tr and you will see right here it is created and in Windows side, you'll see right
here it is created as well.
So now it is mounted on our Linux machine, as well as on a Windows machine.
So that's how you actually can set up a NAS device.
A third party NAS device?
Very simple, very straightforward to set it up, and all you have to do is simply a few clicks and
it is available for you to mount it.
I'll see you in the next lecture.