df -h shows different size on nfs client than on nfs server
12,185
At first view, it seems that client /mnt
= server /
instead of /mnt/nfsstore
, check /etc/export
on the server (you should add its content to your question).
Try sudo mount -t nfs -o proto=tcp,port=2049 nfs.prod:/mnt/nfsstore /mnt
, it should fix it.
Related videos on Youtube
Author by
phpguru
Updated on September 18, 2022Comments
-
phpguru over 1 year
I am running ubuntu 14.04 LTS on two servers in AWS. One is running nfsd and the other is running the client. I made a 250GB EBS volume and shared it, then I went onto the client and mounted it.
Here's the server
ubuntu@nfs:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.8G 954M 6.4G 13% / none 4.0K 0 4.0K 0% /sys/fs/cgroup udev 1.9G 12K 1.9G 1% /dev tmpfs 377M 340K 377M 1% /run none 5.0M 0 5.0M 0% /run/lock none 1.9G 0 1.9G 0% /run/shm none 100M 0 100M 0% /run/user /dev/xvdb 250G 33M 250G 1% /mnt/nfsstore
Here's the command I ran on the client
sudo mount -t nfs -o proto=tcp,port=2049 nfs.prod:/ /mnt
Here's the client
ubuntu@web11:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.8G 1.1G 6.3G 15% / none 4.0K 0 4.0K 0% /sys/fs/cgroup udev 1.9G 12K 1.9G 1% /dev tmpfs 377M 348K 377M 1% /run none 5.0M 0 5.0M 0% /run/lock none 1.9G 0 1.9G 0% /run/shm none 100M 0 100M 0% /run/user /dev/xvdb 20G 44M 19G 1% /var/www nfs.prod:/ 7.8G 954M 6.4G 13% /mnt
I was expecting 250G to be available at /mnt/nfsstore - is this a display bug, or can I expect only 6.4GB of space available?
-
muru over 8 yearsFilesystems mounted in somewhere inside an exported directory needs to be exported separately.
-
-
phpguru over 8 yearscat /etc/exports gives
/export 172.31.0.0/24(rw,fsid=0,no_subtree_check,sync) /export/nfsstore 172.31.0.0/24(rw,nohide,insecure,no_subtree_check,sync)