On 19/4/18 3:45 am, Rick Stevens wrote:
On 04/18/2018 08:43 AM, Bob Goodwin wrote:
On 04/17/18 06:47, Tim via users wrote:
The /etc/fstab file points to where devices get mounted onto the
directory tree.
If you have mounts like
/dev/wrong-device pointing to /my-preferred-storage-space
Simply change the device to the one you actually want.
--------------------------
.
Server end:
# df -h /home/exports/home
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/fedora-home 2.7T 4.8G 2.5T 1% /home
So that's where I want to put ,y nfs data.
I have a directory /home/exports/home/ where I put an empty file "xxxtest."
# ll /home/exports/home/
total 0
-rw-r--r--. 1 root root 0 Apr 18 11:05 xxxtest
Did: # exportfs -r
Then:
# showmount -e box86
clnt_create: RPC: Unknown host
Uhm, that looks like "box86" either isn't in DNS or /etc/hosts so it
can't be resolved. If this is on the server, try "showmount -e" or
"showmount -e localhost".
Client end:
No access from the client -
bobg]# mount 192.168.1.86:/home/exports/home /mnt/test
mount.nfs: access denied by server while mounting
192.168.1.86:/home/exports/home
What am I missing and/or doing wrong?
We don't know what your server's /etc/exports line that exports the
directory looks like, so there's no way to tell. The line should be
something like:
/home/exports/home 192.168.1.0/24(rw,no_root_squash)
From a subsequent mail in this thread it seems to me that Bob has the
following in /etc/exports (using Rick's syntax above):
/exports/home 192.168.1.0/24(rw,no_root_squash)
which seems to me to be providing network access to the exports/home
directory on whatever device in the server is the "/" mount point.
If this is the case it seems to me that /etc/exports should have a
specification like Rick's, assuming directory /home/exports/home exists
on the server, and then the client should have the follow in /etc/fstab:
192.168.1.86:/home/exports/home/ /mnt/test/
nfs4 defaults 0 0
or am I missing something?
regards,
Steve
meaning that /home/exports/home is exported with read/write privileges
to all hosts on the 192.168.1.* network, and that if a client mounts it
as the root user, the root user ID is NOT squashed to the "anonymous"
user on the server. You could run
showmount -e 192.168.1.86
on the client to see what the server is exporting.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
- -
- To err is human. To forgive, a large sum of money is needed. -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx