I have a NFS Server: usanfsd01
And a remote machine: usafssd01
I tried mounting a directory from usafssd01
onto usanfsd01
by adding the following line to /etc/fstab
as root
usanfsdo1:/home/dblogs /home/data/dblogs nfs rw 0 0
And when I run the following command to see if NFS is exporting the share, it's not shown
showmount -e usanfsdo1
Can someone please help? Also, a point of interest would be there is another mount that works on the same servers and thats defined as below in the /etc/fstab
usanfsdo1:/home/files /home/data/files nfs rw 0 0
/etc/exports
/nfs/home/dblogs 'IPADDRESS'(rw,no_root_squash)
Best Answer
I assume the spelling mistake is just here, and not in
/etc/fstab
, but I will point it out anyway. You say the servername isusanfsd01
, but in/etc/fstab
you have addedusanfsdo1
. The letter 'O' vs. the number '0'.Since you are exporting
/nfs/home/dblogs
you need to changed your entry in/etc/fstab
to something like this:Make sure this is correct, and then run the following command to mount the NFS-directory
or