R
R
rizzli2019-04-09 18:40:22
linux
rizzli, 2019-04-09 18:40:22

Why does NFS client not see files when mounting NFS server directory?

There is an NFS server. The system file system is btrfs, the /home directory and data are xfs.
fstab

UUID=e9b6db67-c776-469d-8204-bdf060ac1df2 /              btrfs   [email protected],defaults,noatime,space_cache,autodefrag,discard,compress=lzo 0 1
UUID=54bb417b-1761-4151-b3e1-40a13aec65ba /home          xfs     defaults,noatime,discard 0 2
UUID=0df8e283-de74-4cd4-a0c3-c524a725e7bd /home/user/WORK xfs defaults,noatime,discard 0 2
/home/user/WORK/database /srv/nfs/share/database  none   bind   0   0

exports
/srv/nfs 192.168.2.214(rw,fsid=root,crossmnt)
/srv/nfs/share 192.168.2.214(rw)

NFS client
fstab
192.168.2.237:/srv/nfs/share /mnt/remotenfs  nfs  noauto,x-systemd.automount,x-systemd.device-timeout=10,$

As a result, the client sees the database folder, but does not see the files that are in it. If you just create a file in the /srv/nfs/share directory, then it sees and reads.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
paran01k, 2020-07-17
@paran01k

You have /srv/nfs exported with crossmnt, but /srv/nfs/share without. You either add crossmnt to the second line, or comment it out entirely. It doesn't make sense since /srv/nfs is already exported with crossmnt.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question