Configure NFS Client2013/07/04 |
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 ~]#
[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 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 979M 25G 4% / devtmpfs 996M 0 996M 0% /dev tmpfs 1002M 0 1002M 0% /dev/shm tmpfs 1002M 276K 1002M 1% /run tmpfs 1002M 0 1002M 0% /sys/fs/cgroup tmpfs 1002M 8.0K 1002M 1% /tmp /dev/vda1 477M 77M 375M 17% /boot dlp.srv.world:/home 27G 982M 25G 4% /home # home directory on NFS is mounted
[root@www ~]#
vi /etc/fstab /dev/mapper/fedora-root / ext4 defaults 1 1 UUID=61085d0b-960b-4835-8c0e-6f036fe7a623 /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 |
Sponsored Link |
|