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.
Also I'm wondering about this log line from the server:
Code:
Jan 6 20:59:47 server-pc exportfs[1589]: exportfs: Failed to stat /mnt/md0/data/: No such file or directory
That means in server POV, there is no /mnt/md0/data ....
But there is absolutely a /mnt/md0/data directory. I have lots of files in there. I wonder if it's trying to share that folder before MDADM can initialize the array? (grasping at straws)
And if I share /mnt/md0, will this not share the ENTIRE array? (I'll give it a shot though later on..... this machine also doubles as my Plex server and a few people are on there right now so I'll muck with it later.)
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Hi again road_hazard,
OK thx for the info. Since you're able to share other subdirectories with Samba, it should be possible with nfs.
Your mdadm.conf has a line in there that says CREATE should use 0660 permissions. If a directory doesn't at least give execute permission to "everyone" (ex. 0661), even listing contents of a directory won't work.
Since information from an earlier post of yours confirms the permissions on /mnt/md0/data are 0777, you could perhaps verify that the permissions for the "everyone" category of the parent directories (/mnt and /mnt/md0) are at least at "execute" level (ex. 0771 0751).
But there is absolutely a /mnt/md0/data directory. I have lots of files in there. I wonder if it's trying to share that folder before MDADM can initialize the array? (grasping at straws)
And if I share /mnt/md0, will this not share the ENTIRE array? (I'll give it a shot though later on..... this machine also doubles as my Plex server and a few people are on there right now so I'll muck with it later.)
Hello, yes it will share /mnt/md0, the whole array...
It's just for testing, if it succeeds then the raid array is not the issue.
No, it should be fine. NFS and Samba shouldn't interfere with each other
edit, don't write a potential opened file by another host, just see if you can browse content
Another step in the right direction! When sharing out /mnt/md0, I was able to browse all the folders from a client machine! Even the data directory! But now, what the flip is so wrong with that /data dir that when sharing just it, no go?!?
Maybe it doesn't like the directory name?
Seriously, at this point I would rename the directory and retry to share it in /etc/exports
Also try the -r option when invoking exportfs
Code:
exportfs -avr
edit: you don't need to reboot after /etc/exports changes, just do
Code:
exportfs -au
exportfs -r
Another monkey wrench...... tried a few different directories on /mnt/md0 and nothing worked. I can share out the ENTIRE array or nothing on it. No middle ground apparently.
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Quote:
Originally Posted by road hazard
Another monkey wrench...... tried a few different directories on /mnt/md0 and nothing worked. I can share out the ENTIRE array or nothing on it. No middle ground apparently.
... have you tried experimenting with options I mentioned in my previous post ?
... have you tried experimenting with options I mentioned in my previous post ?
Cheers !
Not yet. I'm going to add some extra drives to my Antergos box and setup a MDADM array on it and test your theory there first then try it on the server in question. Not that I don't trust your expertise or anything but if I wreck my RAID 6 array, I'd be a really, REALLY sad panda.
Something not yet investigated is how you attempt to mount data on client
eg:
Code:
mount -t nfs server:/mnt/md0/data /mnt/clientmountpoint
# or
mount -t nfs server:/data /mnt/clientmountpoint
This one: mount -t nfs server:/mnt/md0/data /mnt/clientmountpoint
It's just weird that if I share /mnt/md0, that works. But sharing /mnt/md0/data, /mnt/md0/test, /mnt/md0/Pictures, /mnt/md0/incoming ...... all those fail. Wonder if I should open up a bug report somewhere. But with who? Is this an MDADM problem? NFS-server? NFS client?
Do you (or anyone reading this thread) have an MDADM array setup to test things on your side? Maybe this is a Mint specific failure? (Or, user error. )
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Quote:
Originally Posted by road hazard
Not yet. I'm going to add some extra drives to my Antergos box and setup a MDADM array on it and test your theory there first then try it on the server in question. Not that I don't trust your expertise or anything but if I wreck my RAID 6 array, I'd be a really, REALLY sad panda.
:-) .. I hear ya and completely understand.
In answer to your question in a subsequent post, my own server, to which I was referring, is set up with mdadm (RAID5) with LVM on top. In my particular case, I have shared an entire subdirectory tree under the /home directory (i.e.: /home/[shared directory tree]). The way I have set it up is to share the entire [shared directory tree] under /home, as well as each of the next level subdirectories under that, separately. This gives me the granularity I require and I manage permissions for the different users the usual way. Similarly to your case, I also use Samba sharing for Windows clients.
I don't believe your issue has to do with your RAID (mdadm) setup. The fact that you're able to use the directories normally on the server itself and the fact that your Samba sharing works leads me to believe it is more of an nfs-specific issue or a permissions issue.
Let us know when you've had a chance to experiment with my previous suggestions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.