NETWRK FILE SYSTEM IN RHEL6
#
NFS SERVER
{NETWRK FILE SYSTEM} #
NFS___
NFS is
the server used for the sharing of
the files on the network.
1_ we can share the data
between two pc`s using the NFS server.
2_ main configuration file
for the NFS server is {EXPORTS} main configuration file
exports.
# vi /etc/exports__________.conf
of NFS
/_____etc_____exports
3_ daemon of nfs __ daemon
means the service for the nfs to use the NFS server we have to on the
NFS DAEMON or nfs service
DAEMON=SERVICE
To start the daemon of the nfs server there are the
following commands.
# service network restart _________to on the network
service
# service nfs restart______________service or daemon of the
nfs server
4_ PORT no
Port no of nfs
server is _____
2049.
5_ DISABLE FIREWALL _ we have to disable the
firewall because It is make the objection for `
Data transfer between
the networks.
To disable the firewall we have the
following command.
# lokkit __________ disable the
firewall LOKKIT
Structure of nfs
network
---------------------------------------------------------------
|
|

Ping
10.0.0.2
Both the server and client
have there own different configurations for the nfs server so note the
following steps for the nfs server.
Steps for NFS

1_
#setup ____ to give ip 1_ #
setup ______ to give ip
IP address 10.0.0.1 ip address 10.0.0.2
2_
lokkit __ disable firewall. 2_ lokkit __ disable firewall.
3_
# mkdir /abc_____ create a dir to share 3_ service network
restart _______ restart
Network service.
4_
# cd /abc______ go into the /abc. 4_ showmount -e
10.0.0.1 _ to check the
Sheared
documents. Of any.
5_
make files in the /abc 5_ mounting the network files with a dir...
#touch a b c d
h k # mount 10.0.0.1:/abc
/mnt

7_ # vi /etc/exports
1___ /abc *(rw,sync)_______ for all subnets of a
class___________________-
or
2___ /abc
192.168.100.0/255.255.255.0(rw,sync) ____________ for a particular class____
or
3___ /abc 192.168.100.0/255.255.255.0(rw,sync) 172.16.0.0/255.255.0.0(rw,sync) 10.0.0.0/255-
-0.0.0(rw,sync)
____ for two or more networks _
9_ NOW we have to ON the SERVICES for the NFS
SERVER)______________________________
# service network
restart______________ network service.
# service nfs
restart___________________nfs service.
# service portmap
restart_______________ service for
the port no of the nfs server.
Before
restart the PORTMAP service chack if
It
is running or stopped.
If running then restart or if RUNNING>
RESTART
Stopped the start. STOP >START
10__PARMANENT
ON THE SERVICES_________________________________
If we run the above steps the service is on till
the pc is not restart if pc restart then
These services automatically shut down to
permanent on these services the following.
# chkconfig network
on_______ permanent network service
# chkconfig nfs on ________ permanent on nfs service
# chkconfig portmap on ______ parmanent on paortmap
service __
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 comments: