Hi all,
I am trying to configure an NFS4 server and client.
I have been through the entire setup and i have managed to mount the directory as i wanted to however it doesn't seem quite right.
My server is "swstage", the NFS4 pseudofilesystem is "/NFS4", the directory i am trying to export is "/soashare" size is 70GB (which i have bound within "/etc/fstab" to "/NFS4/soashare").
the client i am trying to mount that filesystem on is "soaserver", the directory i am trying to mount on is "/soa/share"
on nfs server settings are as follows:
/etc/exports (ip settings have been omitted but are correct.
/NFS4 ip.address(rw,fsid=0,sync,no_root_squash,no_wdelay)
/NFS4/soashare ip.address(rw,sync,no_root_squash,no_wdelay)
the setup of the /etc/fstab NFS4 bindings:
/soashare /NFS4/soashare none bind 0 0
output of rpcinfo command:
rpcinfo -p | grep nfs
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
so it is nfs4 enabled, and it has the exports setup correctly, i think, please correct me if im wrong.
on the client settings are as follows
available mount points are (ip settings omitted but are correct):
showmount -e swstage
Export list for swstage:
/NFS4 ip.addresses
/NFS4/soashare ip.addresses
So we can see the directory is mountable as an NFS4 mount point.
/etc/fstab line, this is what im not entirely sure about being correct but i followed some very good instructions which worked for everything else so far so not sure why it wouldn't be right but this is what i have:
swstage:/ /soa/share nfs4 defaults 0 0
and finally when i run the command
mount /soa/share
This works and it mounts the filesystem but it doesn't look right. first of all this /soashare directory on the NFS server is 70GB but the mounted directory is only showing as 2GB (which is the size of the / directory on the swstage server)
df -h
Filesystem Size Used Avail Use% Mounted on
swstage:/ 2.0G 513M 1.4G 28% /soa/share
if i do an ls of /soa/share:
[root@soaserver share]# pwd
/soa/share
[root@soaserver share]# ls
soashare
[root@soaserver share]#
it shows i have mounted the pseudo filesystem, but if i change the entry in /etc/fstab to either of the following, i get exactly the same result as i described above:
swstage:/soashare /soa/share nfs4 defaults 0 0
swstage:/NFS4/soashare /soa/share nfs4 defaults 0 0
Can anyone tell me if i have done something wrong in all this or is there something i have missed out? Or even if this is correct and this is exactly what i am supposed to be seeing?
Cheers,
Tom