0845680984
  1. 1 – Config NFS Server
  2. 2 – Configure NFS Client
  3. 3 – NFS 4 ACL Tool
[1] Configure NFS Client.
yum -y install nfs-utils
vi /etc/idmapd.conf

# line 5: uncomment and change to your domain name
Domain = client.local

systemctl start rpcbind
systemctl enable rpcbind
mount -t nfs nfs.client.local:/home /home
df -hT

# /home from NFS server is mounted

# if you’d like to mount with NFSv3, add ‘-o vers=3’ option

mount -t nfs -o vers=3 nfs.client.local:/home /home
[2] Configure NFS mounting on fstab to mount it when the system boots.
vi /etc/fstab

# add like follows to the end

nfs.client.local:/home  /home                   nfs     defaults        0 0
[3] Configure auto-mounting. For example, set NFS directory on /mntdir.
yum -y install autofs
vi /etc/auto.master

# add follows to the end

/-    /etc/auto.mount
vi /etc/auto.mount

# create new : [mount point] [option] [location]

/mntdir -fstype=nfs,rw  nfs.client.local:/home
mkdir /mntdir
systemctl start autofs
systemctl enable autofs

# move to the mount point to make sure it normally mounted

cd /mntdir
ll
cat /proc/mounts | grep mntdir

Leave a Comment

Your email address will not be published. Required fields are marked *

Bài viết gần đây:

Shopping Cart