Network filesystem, which is.
Also stands for NAFS, this is one of the biggest and major topics, and I am including this lesson
and are in our module of disc's because it is actually about sharing your desk or sharing your directory
or sharing your files with other computers and other users.
So network file system, as I have explained you previously, there are different type of file system
like to 63 except for this NTFS and Windows are Fatfat a file system that's all in windows just like
that.
There is another file system that is called netbook file system.
Now this file system, again, it's not local to your computer.
It's called a NASS, which is also a network attached storage.
So Nafez is part is one of the protocol as part of NASSE.
So let's see.
NFL stands for Network File System, a file system developed by Sun Microsystems.
Sun Microsystems.
If you guys don't know this, this was a company who actually had one of the biggest operating system
called Solaris.
That Solaris operating system runs on Unix environment and it still exists.
But now Sun Microsystems is being bought out by Oracle anyway.
Our focus is not Sun or Oracle.
Our focus is NFC, which is one of the Linux or Unix services to share your file system between servers.
Now, it is a client server system that allows users to access files across a network and treat them
as if they've resided in a local file directory.
It's just that simple.
When you mounted from one system to another, the other system will see it as if it actually mounted
locally on its own system.
Now, for example, if you are using a computer linked to a second computer via an office, you could
access files on the second computer as if they resided in a directory on the first computer.
This is accomplished through the process of exporting.
So you export from the server that is sharing the file system, the process by which an NFL server provides
you more clients to access to its files and mounting the process by which client, which is the other
computer, the other end client map and first shared file system.
So this is how basically NFC works.
And I hope you understand, if you do not understand and you still confuse what NFC is, please don't
worry.
I'm here.
Don't worry about it.
I will take you every step of the way and I will show you how NFC works.
OK, so now let me show you real quickly through the pictures to the diagram, because picture speaks
a thousand words, right?
So you have a machine, a computer.
It's probably nowadays it could be either Linux or could be Unix or could be Windows.
This machine wants to attach a file system that is being shared from another computer.
So what it does is it sends an NFL request.
That NFC request goes to a server that is hosting that file system.
So if their file system is hosting, let's say, ABC file system or whatever the name of the file system
that is being hosted on this server, then based on the rules that are defined on the server, meaning
the policies which server to share Shearwood, which server to trust and all that.
Once that is satisfied, then the server is going to send approved request back to its client and it's
going to say, hey, I know you're asking me to share my file system with you.
Now, first of all, let me see if the file system that you want me to share with you, if I am authorized
to share.
First of all.
Second, if you are authorized to view that file system and of course, there are other options that
can be defined, which we will discuss later on going on network file system, what are the steps that
we need to do?
Well, there is a server that is going to share its file system and then there is a client which is
going to mount that file system.
So what are the steps we need to take on the server side, so in this in these slides, I'm actually
going to show you what are the steps we need to take?
Once I'm done with this slide, then actually I will log into the machine and we'll do the real work.
So steps are first on the server side.
Now we need to install Neff's packages.
And those Nafez packages are Neff's Dash, utils Leyb and Fest's ID map.
These are the two packages that you need on your latest RedHat or S.O.S version seven servers.
Most likely they are installed in your machine, but the way you could check it, you could check it
by running R.P.M. minus keyway and grumping for Nafez and you will see if these packages are installed.
We will check that together.
So no worries.
Next thing we have to do it once these packages are installed, enable and start NFR services.
So you know that every enabling any service, meaning you are telling that service to start at boot
time.
So you want these two services to start at boot time.
That's why we are using the option enabled.
Once we enable them, then I'm going to start the services AAPC Bind, NFC server, our PC Stad and
NFC ID map.
These are for services that I want to start.
I put them all in one line, but make sure you when you are running your command, they shouldn't be
in one line because it will give you an error.
I am trying to save some space here.
That's why I'm putting everything in one line.
OK, moving on then create an official directory and assign permissions.
So once we are on the servers, we're going to create a directory.
Or if you already have a directory that you want to share, then you don't need to do this part where
you have to create and assign permissions.
So in in our lab, we are assuming that we are creating a resharing a new file system, a new directory.
So I'm going to name it my pretzels, and I'm going to assign the permissions of that to my pretzels.
So my presell, I just picked a name you could pick anything.
I like this word pretzels, because that's one of my favorite lines from Seinfeld that says these pretzels
are making me thirsty.
So I just picked that name anyway.
Then we have to modify the permissions for that my pretzels directory.
Then we have to modify the export etsi export file.
Because the reason we wanted to modify that is because if we want to have this file system to be shared,
I have to have certain option in it.
So as you could see, I have put in the IP address when I took 168 Wonderwall seven.
It means I want my pretzel to be shared only with the server that has this IP and it will have the read
write permission.
So let's look at them one by one.
So here is my NAFS here.
That's the NFC that I'm sharing.
Then here is the IP address of the client machine from which I'm going to share my file system with.
Now, what if you wanted to share with everybody, then you could just simply put start the asterisk.
Yes.
Then next thing, read and write.
You are giving permission to your clients to read their file system as well as write to it.
Then there's another option.
Sink.
Sink is telling that all changes to you, to the according to our system, are immediately flushed to
the disk.
Their respective right permissions write operations are being waited for.
So don't wait any longer.
When you're writing to this file system thermocline, just write it to the desk right away.
Then the last option we have right here says route on the client machine will have the same level of
access to the files on the system as a route server.
So the route server, which this Nfor server is coming from, will have the same permissions as a client.
So that's what is saying.
So now, of course, this is for One-Horse because we have specified the hostname or the IP address.
But if you want to specify everybody, not just one computer, then you will use Linux Meile next year.
Oh, sorry, this is not my Linux here.
You have to change it to my pretzels.
I had it using before my next year, but to make it more meaningful, I changed it to my pretzel anyway.
If the milind next year, whatever the last year is.
Asterisk and the entire line of options, that is to give it to everybody, then once that is done,
you edited the ETSI export file, then you export the file system by running the command export F.
S space minus R b.
So what are these different options are is to republish everything that is inside of the export and
V is to show a verbose mode.
So I hopefully you understand this is the first configuration on the server side, the server which
is trying to share its file system.
So in our in our example, our NFR server is our our server, our lab server that we have built for
this training.
And remember, the hostname for The Observer is my first Linux VM.
Right.
This is the that's the one we created.
Right.
So let me go to my Linux VM and.
Let me log in real quick.
OK, and just do hostname, you see my first Linux VM, this is the Linux VM that we've been working
on, right.
So this is going to be our NFL server where we will create our file system to be shared with other servers.
OK, so now we will export it.
We will enable sorry, we will install the packages, enable these services, start the services, create
what we need to create, what we need to share, change the permissions, then modify the ETSI export
file to have that shared.
Moving on to the next slide.
Now steps for Nafez Klein configuration.
Now of course you have one server, which is my Linnik, my first Linux VM.
Right, that server configuration.
Now we are going to create another machine that will actually mount that file system on its mounted
point, whatever that you need to define.
So what are we going to do is we're going to install these packages youm install.
And if as tell AAPC Byne same packages as Nafez Server, then we're going to start once the packages
are installed, enable and start RBC buying service.
You have to make sure only this service that has to be up and running RBC Binde start, then make sure
there is no firewall or IP tables running in your system, the client.
Then we will do a short mawn command to see what is available for and for me to mount, then create
a point like mkdir slash mount slash app or slash and slash let's say Kramer, whatever that you want
to do.
You could do that just like that.
I have it right here.
So mount the filesystem like mount the name of the IP address of the NFL server, slash my pretzels
which is the shared filesystem mount to Kramer or Mount to app or whatever the main point that you want
to make, then verify the amount of file system by running the command D.F. minus H and to unmount that
file system as you mount slash mode slash Kramer.
So that's it folks.
Enough talking now.
I'm sure you probably heard a lot of things.
Now let's do the real work.
Let me go back to my NFR server configuration and that's where we're going to start off it.
So I am going into my Linux machine and the Linux machine is my first Linux VM, how I am logged in,
who am I and which directory are men and which host I am on.
Verified everything perfect.
Now go ahead and become root.
OK, we are rude now before you install these packages, you can run R.P.M. Command to verify if these
packages already exist or not.
And you see, it tells you that Neff's as util and Hleb Nafez ID map are already installed.
Now, if you try to install it with some command, let's say youm installed and a first dash util utils.
It will go out under the repository, but it'll say right here, see this package and if util already
installed and has the latest version perfect.
So we we we've been through the first Insull benefits package.
OK, done.
Second thing we need to enable.
The AAPC bind and FSR service, so to the command to do that system, CTL enable AAPC bind.
Perfect.
You get the problem back, it means it worked, then you do the same thing by doing a Parakey instead
of RBC buying the first dash server because it's a first dash server, right?
Yes.
Hit enter.
OK, created symbolic link.
This, this, this.
Why didn't created before.
Maybe we have already or I have already enabled that RBC bind previously and that's why the link was
there.
But anyway I am enabling this NSW server for the first time and that's why it's saying create a symbolic
link which is what is supposed to do.
OK, anyway.
So now the time to start the service system.
We'll start our PC binde.
OK, it started C didn't give me any error message if if I want to check the status of that service,
alert status, system status, AAPC bind and you'll see it says right here, active, loaded and running.
This is what we want to see.
Perfect.
Now, next service I want to start is.
And first dash server.
See, right here, it says, and a first serve.
Enter.
They should start to service our PC dash that D right, let's confirm our PC dash that D Yes, hit enter.
OK is up and running perfect.
And I could just do start again.
It started, I'll check the status running, OK, perfect.
Next one.
And first, I'd map D.
It started now let's check the status.
Active and running, perfect.
Now it's time.
To create our shared file system, so I'm going to go into my CD slash directory, you see, I am in
Slash, Slash Slash now I'm going to create a directory called Make This are my.
Pretzels.
OK, I am and slash at mysel and you will see it is created right here, could do X minus L tr to see
it at the bottom.
Now I need to assign the proper permission so I'll do change mod A for all plus R X my pretzels hit.
Enter C these all the rights.
OK, perfect.
Now I already have my directory.
Let let me go into my pretzel thread.
OK, what's inside my pretzel directing nothing right now, OK?
I could create a couple of files like touch A, B, C, all right.
Perfect angle to create a file called Touch Kramer.
And I could echo into that file d prêt.
Results are making me thirsty.
And I'm going to output to Kramer, Kramer file perfect, let's echo Kramer file cat sorry, Cat Kramer
file and you will see these people are making me thirsty.
Now this directory, my pretzels has how many files for ABC and Kramer, so that's good enough for our
testing.
Now what we need to do next thing we had to edit the ETSI exports so we I etsi exports.
Since we are doing that for the first time, you will see this file is empty.
Be very careful to modify it.
I always what I will do as I always do copy at sea exports and then etsi exports.
Underscore, I put a date in like 080 a 2020.
So this way, if I make a mistake, I could always copy it back to its original version.
So now I could go into Vyatta export, but anyway, this was empty.
So now what I want to export, first of all, what I'm trying to export, I am going to export.
Slash my.
Pretzels, OK, perfect.
Who am I exporting it to?
I wanted to export it to everyone.
If you wanted to export it to your other Linux machine, which we will build later on, and you want
you have the IP and you want to come back here and specify the IP, you could do it.
But for now, I'm just going to do it now.
Then I had to specify.
Asterisk.
Parentheses are w read, write, comma, sync, comma, no underscore route, underscore squash.
And that's it.
This is what we need.
So if you guys need to know the exact instruction, I will try to put it in this entire instructions
right here.
You see on my slide, I'll put it into the the notes folder.
The notes section.
OK, so now that file is edited, go ahead and save that file.
Perfect.
What do we need to do?
The last thing explored that file system.
OK, go ahead and type the command export.
For a system dash, are we again are stands for to republish everything, whatever's in there, publish
it again.
I don't really care and envy is the verbose mode hit enter.
And now it is telling you that exporting it is exporting the file system to everybody.
And a file system is my pretzels.
OK, so you have created it.
Your NFS server is ready.
It is exporting to other machines.
Now the question is I do not have another Linux machine to test mounting this file system to another
machine.
So what I'm going to do is I am going to build another machine, which is going to be client, and I
will show you how to build that.
This the whole thing I'm going to do by building this another Linux machine.
I'm going to do it really fast.
I'm going to fast forward it, because since you guys have already have experience of creating another
Linux virtual machine, so I'm going to go do it really fast.
So right now, if you could see, if I go into my Oracle VM virtual box, then I'm going to go and create
new I'm going to name it Monck.
Moncks Monks' is a name of Seinfeld show that there that's a restaurant where everybody goes, so it's
like a shared environment.
I'm using this as a client name.
So Moncks and Windows, Microsoft Windows, I'm going to pick Linux because you're building a Linux
machine and now pick Linux two point sixty three X for x 64 bit.
Now, go ahead, click next.
Memory size leave with default.
Create new disc, your desk dynamically created next to you already know that the size of the desk that
will be created is eight gig leave, a default create.
It is created now, Moncks PVM is created now go ahead and power on.
This is asking you, where is your ISO image?
Remember, we actually downloaded are sent overseas the image.
If you do not have that ISO image right now, it's OK.
You could go ahead and download again from the Internet.
And once you have that download, come back and start again from this lesson on how you could selected
and I'm sure you know this, how to select it.
So here, go ahead and pick the location.
I already have the location picked and it is this window Sento seven.
I'm going to click open and start now.
This is going to start the installation.
It's by default.
Tells you this test media and install a center.
So go ahead, hit a Parakey and click on install S.O.S and hit enter.
OK, from this time, from this point on, I am going to fast forward the entire installation.
Because you notice I am going to pick the minimum install, what minimum install means that there is
not going to be any GUI installed?
I don't really need guey at this time.
I just want to test my mounting and at first filesystem.
And that's why I'm going to leave a for the installation destination.
You click on and select the desk and leave everything as is automatically configured.
Petitioning go up and click done.
And then come down, you'll see the network hostname.
This is not connected.
Click on it.
Go up, turn this on, and now give it a hostname.
I picked the VMOs name is Moncks.
I'm going to use the same name Moncks Click apply and it'll say the current host name is Moncks.
Go up.
Click Done.
So everything is set up, America's New York Times on you could pick a different time zone according
to your region, language installation source, local media software, installation, minimum.
As I said, we don't need a GUI and we don't need any other extra softwares come down installation destination.
We picked that already, which is the default.
Everything is default.
And now go ahead and click begin installation.
Once it begins installation, click on Root Password.
Specify the root password.
If it's weak, you will have to enter.
You have to click done twice user creation.
I don't want to create any user right now.
OK, so now you see it is going through the installation process of installing 303 packages.
And right now it is at 15 packages.
It's going to take time.
I'm going to fast forward again from here.
And when we come back, we should have a built up machine.
All right, everyone, our machine, the second machine client walks is being built.
Go ahead and log in as Ruth.
So now check the I.P. address of this machine.
OK, it does not have the number of utilities that you need to check the config, but there is another
command that we learned previously.
It's IP, IP, ADR, yes.
So you notice you have an IP address of 10 to 15.
So if your IP address is different in the other servers, let's check our server.
My IP address here is if config.
It is one nine to 161 to 18, and it's IP address the other machines IP address is different.
The reason?
Is.
We have to change the setting on the virtual box so that the machine go setting.
Group, network, and you see this right here is attached to net changes to Bridgitte Network Adapter
and Borkan extreme gigabit Ethernet, if you have a Wi-Fi, you pick that one click, OK?
Now, it should have a new address if it doesn't, and run the command system, CTL Restart Network.
It has restarted now you check IP, ADR and you will see the new IP I have right here is one to 161
to 11.
So from here.
Make sure you do press it right click to get out of this machine box so you could go ahead and ping
192 168 down one to 11 just to make sure you're not one 11.
Make sure you keeping it.
Yes.
You see you getting a response back.
Perfect.
So now let's go back to our machine.
Also try to do Penk www.youtube.com to make sure your machine can get to the Internet.
Yes, it can clear the screen now.
We'll get back to our lesson where we have to actually go to the client.
So you have to install it.
And as you tell our PC binde.
Yum install.
And first, dash util.
If one package, 15 dependancy go ahead and hit, why, as yes, it.
Perfect.
It's finished now, the next thing we have to do, aapc bind, yum, install our PC.
Bind one word and this time do minus up.
OK, says it's already installed perfect, so we don't need any of these more packages.
So now what next?
We have to start that AAPC by service.
Seduce instead of service, you have to do System CTL because service is an older command that works
with redhead's sex or to a sex start or PC binde.
It started, you could check by doing our PC and you'll see it is up and running now.
Let's make sure the firewall or IP table's not running.
P.S. minus if you grew up.
Firewall.
Or IP table.
So we see the.
Both know only firewalled is running, so let's stop that so system CTL, stop firewall D.
This is going to stop that also disable that service to start at.
OK, it is disabled, she'll.
Chaumont, from which machine show Mount minus E, what is the IP address of our other server and if
a server machine?
So let's go to our other unifiers machine and check our IP address if config or IP address, whichever
the command you prefer, it's one nine two one six two under 18.
So let's go back and do Chaumont 192 168 one dot 18 and this should return.
What is being shared from that server?
OK, it's saying unable to receive error number one one three, no route to host.
So let's ping first 68 one to 18 copying it.
But I cannot it's not showing me the amount.
Let's check on the server side if the server side is running IP tables.
So there is a firewall on the server side that is running, we have to disable that.
OK, so now that what does it say?
Well, let's check on the Blind Side again and see if he could be the sheer amount.
Perfect.
Now we see the sheer amount.
So now let's go to our document, we have verified it.
Now we have to create a directory where we have to mount it on our client.
Let's clear the screen and now create a directory.
We call it mkdir underlayment.
We'll call Kramer.
All right.
So let's do this mysel.
Amanti will see the creameries to do the Mount Mount.
192, 168, about 118.
Colon slash my.
Pretzels and map it where map to mount slash Cramer.
OK, we got the problem back perfect, it means it did Mount Hood, DF minus H or type on stage and
you'll see right at the bottom.
It's coming up, as amante Mount Kramer Now, if I go to Slash and Menti Kramer and myself here you
see I have the same files now that I created on my server, which is right here.
And if you go to my pretzels, I left myself here.
So these are the filesystem.
So now, if I wanted to write something to this, let's say from the client side, I'm going to create
a file called Touch David hit Enter.
Verified and it created on the client side.
Now let's see if it shows up on the server side and you see it showing up on the server side.
The last thing that I want to cover here is you verified it.
If you wanted to unmount that from the client, then you could just simply do you mount slash and menti
slash Kramer, you could mount the multipoint or you can mount the filesystem whichever way you like.
So when you hit enter, it's going to say device is busy.
Why?
Because you are already inside of that directory.
So you get out of that directory to hit enter.
Now you are not in that directory now our and do that you mount and it has unmounted to do a D minus
eight and you'll see it is not there, it is gone.
So guys, that's how you do that.
And first try it.
It's a very, very important lesson.
And a lot of people ask for Nafez services and I am including this and this training because a lot of
students have asked me on first.
So that's why I decided to create that for you.
All right, guys, good luck.