NFS (Network File System)
NFS server

NFS (Network File System)

Network File System allows a system to share directories and files with others over a network. By using NFS, users and programs can access files on remote systems almost as if they were local files.

  1. Local workstations use less disk space because commonly used data can be stored on a single machine and still remain accessible to others over the network.
  2. There is no need for users to have separate home directories on every network machine. Home directories could be set up on the NFS server and made available throughout the network.
  3. Storage devices such as floppy disks, CDROM drives, and USB Thumb drives can be used by other machines on the network. This may reduce the number of removable media drives throughout the network.file lavel sharing

Two Types Of NFS

No alt text provided for this image

  1. file lavel sharing



No alt text provided for this image


2. block level sharing




Benefits of using NFS

  1. Multiple clients can use the same files, which allows everyone on the network to use the same data, accessing it on remote hosts as if it were acceding local files.
  2. Computers share applications, which eliminates the needs for local disk space and reduces storage costs.
  3. All users can read the same files, so data can remain up-to-date, and it’s consistent and reliable.
  4. Mounting the file system is transparent to all users.
  5. Fewer removable disks and drives laying around provides a reduction of security concerns—which is always good!

pakage=nfs-utils, nfs-server

service=nfs-server

port= 2049/TCP

launch two Machine 1. server M/c 2 Client M/C

server m/c---- # yum install nfs-utills -y

# systemctl enable --now nfs-server

# systemctl status nfs-server

# netstat -tulpn

No alt text provided for this image

# mkdir /developer

No alt text provided for this image

# vim /etc/exports

^ /devloper client m/c ip(rw,no_root_squash)

# systemctl restart nfs-server

No alt text provided for this image

# exportfs -v

# firewall-cmd --add-port=2049/tcp --permanent

# firewall-cmd --reload

# firewall-cmd --list-port

client M/c

# mkdir /water

tempory mount : # mount -t nfs nfs-server m/c ip:/servermachine dir /client dir

No alt text provided for this image

permaent mounr: # vim /etc/fstab

No alt text provided for this image

and then cross check our nfs server directory mount or no

Prashik Ramteke

?? Technology Enthusiast | GIS Expert | Cybersecurity Specialist | EMEA Region ?? Skilled in Vulnerability Assessment | Threat & Risk Analysis | Email & Incident Response | Technical Support | Understanding of Networking

1 年

Thanks for the information

要查看或添加评论,请登录

Shubham Gupta的更多文章

社区洞察

其他会员也浏览了