Can see my NFS share but not the files/folders inside it
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can see my NFS share but not the files/folders inside it
On Linux Mint 18.3, I have a folder shared out via NFS with lots of files/folders in it. The share appears to be setup correctly and I can mount it from my Antergos box but when I go into it from Antergos, it's empty.
I'm sure it's a permission issue of some kind or how I'm sharing it out. Any tips?
In my /etc/exports file on Mint, I have tried the following:
That last one.... I'm sure the anonuid and anongid is wrong for me..... somebody posted it in a forum and since this was my 3rd attempt at trying to make this work, I just left all the default stuff in. Everything in that folder is drwxrwxrwx and when I type showmount -e, I get:
Export list for server-pc:
/mnt/md0/data 192.168.0.0/16
Side question. A few weeks back, I was experimenting with a Synology box and mapped an NFS share on it from my Mint box and when I type showmount (no switches) I get:
Hosts on server-pc:
192.168.1.243
I have no idea where to go to nuke that old entry. (I'm almost positive that was the IP address of my Synology box that is no longer in my house.)
/mnt/md0/data is non empty in the server?
Is it /mnt/md0/data mount point or /mnt/md0 perhaps? In the later case, is /mnt/md0 shared elsewhere?
The share is absolutely /mnt/md0/data and it's not empty. Lots of files in there. If I open up a terminal and cd /mnt/md0/data and hit enter and ls that directory, I see everything. (All from the server). Mounting from a client and doing a ls, nothing. Empty.
Yes either dmesg command or tail /var/log/messages
Nothing in dmesg. Found this in the syslog:
Jan 6 20:59:47 server-pc exportfs[1589]: exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.0.0/16:/mnt/md0/data/".
Jan 6 20:59:47 server-pc exportfs[1589]: Assuming default behaviour ('no_subtree_check').
Jan 6 20:59:47 server-pc exportfs[1589]: NOTE: this default has changed since nfs-utils version 1.0.x
Jan 6 20:59:47 server-pc exportfs[1589]: exportfs: Failed to stat /mnt/md0/data/: No such file or directory
Did some more Googling and issued the following command:
exportfs -a (reboot....same problem)
exportfs -avr (reboot....same problem)
I even tried using 'Simple_NFS_GUI' and it entered virtually the same data I was using and it STILL isn't working. An Antergos and Manjaro machine can map the drive but when they open up the NFS share from their side, it opens..... to an empty folder.
People can crap on Samba all they want but for a newbie, getting the 'superior' NFS working is proving to be quite the task while Samba is as simple as right clicking a folder, going into the properties and sharing it. Then, from the client side, it just shows up when browsing the network. But NFS...................... NFS, not so much.
I made directory /home/roadhazard/deleteme and from the client, I was able to map it and see the test file inside it perfectly! So I guess that's a good step in the right direction but why in the world can't I see files/folders from /mnt/md0/data?
In case it matters, /mnt/md0 is a big RAID 6 array (mdadm) and /data/ is a folder off the root of that.
So I can share stuff in my home directory via NFS perfectly fine, just not a folder I mount from my array. Hmmmmmmmmmmmmm
Something to do with mdadm I think. If you can browse only from local, there is something that enable (mount?) dynamically the filesystem (udev?), and remote host can't do that via nfs (dynamic process not triggered from remote)
I don't know mdadm but I would look for a configuration that makes things more static, sorry can't help much more
Something to do with mdadm I think. If you can browse only from local, there is something that enable (mount?) dynamically the filesystem (udev?), and remote host can't do that via nfs (dynamic process not triggered from remote)
I don't know mdadm but I would look for a configuration that makes things more static, sorry can't help much more
Thanks for trying! Guess I'll do some Googling and see if there's problems with NFS shares on MDADM arrays.
Can you clarify how/why your RAID array and its /data directory are set up under the /mnt directory ?
Thanks.
Current fstab:
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdj1 during installation
UUID=6f1cf140-9801-4e95-bd11-c5ff83fe8ffd / xfs defaults,discard,noatime 0 1
# swap was on /dev/sdj5 during installation
UUID=82104591-3491-4549-bc2b-d8592d7662f9 none swap sw 0 0
/dev/md0 /mnt/md0 xfs defaults,nofail,discard 0 0
UUID=d2b035ab-aa40-427b-8729-af483ccf91ad /mnt/plex xfs defaults 0 0
#/nfs/allread *(ro,all_squash,insecure)
/dev/md/backup /mnt/backup ext4 defaults,nofail,discard 0 0
/dev/md0 mounted on /mnt/md0 (this is my RAID 6 array. On that array is /mnt/md0/Movies, /mnt/md0/TV Shows, etc. The directory I'm trying to share is /dev/md0/data. (/Movies and /TV Shows are shared via Samba and work just fine with clients being able to reach them)
mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
#DEVICE partitions containers
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# definitions of existing MD arrays
# This file was auto-generated on Sat, 02 Dec 2017 21:21:22 -0500
# by mkconf $Id$
ARRAY /dev/md0 metadata=1.2 name=server-pc:0 UUID=99c9ad61:911cb77d:7d7d831d:032e2eee
ARRAY /dev/md/backup metadata=1.2 name=server-pc:bacup UUID=616e8892:40d17945:ebd2fb3b:914293d8
/dev/md0 is a RAID 6 array made up of 8, 4TB drives. (/mnt/md0)
/dev/md/backup is a RAID 5 array made up of 4, 8TB drives (/mnt/backup)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.