Fedora 20
Sponsored Link

Configure NFS Client2013/12/26

 
This example is based on the environment below.
 
dlp.srv.world
[10.0.0.30] - NFS Server

 
www.srv.world
[10.0.0.31] - NFS Client
[1] Configure as a NFS Client
[root@www ~]#
yum -y install nfs-utils
[root@www ~]#
vi /etc/idmapd.conf
# line 5: uncomment and change to your domain name

Domain =
srv.world
[root@www ~]#
systemctl start rpcbind.service

[root@www ~]#
systemctl start nfs-lock.service

[root@www ~]#
systemctl start nfs-idmap.service

[root@www ~]#
systemctl start nfs-mountd.service

[root@www ~]#
systemctl enable rpcbind.service

[root@www ~]#
systemctl enable nfs-lock.service

[root@www ~]#
systemctl enable nfs-idmap.service

[root@www ~]#
systemctl enable nfs-mountd.service

[root@www ~]#
mount -t nfs dlp.srv.world:/home /home

[root@www ~]#
df -h

Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/fedora-root   27G  987M   25G   4% /
devtmpfs                 995M     0  995M   0% /dev
tmpfs                   1002M     0 1002M   0% /dev/shm
tmpfs                   1002M  220K 1002M   1% /run
tmpfs                   1002M     0 1002M   0% /sys/fs/cgroup
tmpfs                   1002M     0 1002M   0% /tmp
/dev/vda1                477M   82M  366M  19% /boot
dlp.srv.world:/home    27G  1.1G   25G   4% /home
# home directory on NFS is mounted
[root@www ~]#
vi /etc/fstab
/dev/mapper/fedora-root /                       ext4    defaults        1 1
UUID=6cdbc8d8-a9fe-47cb-ac10-5b4e699622b3 /boot ext4    defaults        1 2
/dev/mapper/fedora-swap swap                    swap    defaults        0 0
# add at the lat line: change home directory this server mounts to the one on NFS

dlp.srv.world:/home /home                    nfs     defaults        0 0
Matched Content