The reason for this type of error is approximately:
- Permissions issue
- Firewall mechanisms
- Share profile issues
After building a good nfs service when the client side to mount, tips:
[root@web1 media]# mount -t nfs 192.168.0.124:/server/tools/repo /media/centos/ mount.nfs: access denied by server while mounting 192.168.0.124:/server/tools/repo
Check to see if the client end is occupied:
[root@web1 media]# mount -t nfs 192.168.0.124:/server/tools/repo /media/centos/ mount.nfs: access denied by server while mounting 192.168.0.124:/server/tools/repo [root@web1 media]# mount /dev/sda3 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/sda1 on /boot type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
We did not find, however, and eggs.
Then on the server end view / etc / exports configuration file:
[root@fenfa scripts]# cat /etc/exports exporting 192.168.0.*:/server/tools/repo exporting 192.168.0.*:/data
All servers in the shared 192.168.0.24 / server / tools / repo to the same network segment, the IP format specification or 192.168.0.0/24 192.168.0.0/255.255.255.0
[root@fenfa scripts]# vim /etc/exports [root@fenfa scripts]# exportfs -rv exporting 192.168.0.0/24:/server/tools/repo exporting 192.168.0.0/24:/data [root@fenfa scripts]# showmount -e 127.0.0.1 Export list for 127.0.0.1: /server/tools/repo 192.168.0.0/24 /data 192.168.0.0/24
We then re-mount from the client side:
[root@web1 media]# mount -t nfs 192.168.0.124:/server/tools/repo /media/centos/ [root@web1 media]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 19G 1.8G 16G 11% / tmpfs 491M 0 491M 0% /dev/shm /dev/sda1 194M 29M 155M 16% /boot 192.168.0.124:/server/tools/repo 19G 6.7G 11G 39% / Media / centos
is ok!