LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-07-2018, 02:17 PM   #16
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724

Did you try to share /mnt/md0?

eg: /etc/exports
Code:
/mnt/md0 192.168.0.0/16(rw,sync,no_root_squash,subtree_check)
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 ....

Last edited by keefaz; 01-07-2018 at 02:20 PM.
 
Old 01-07-2018, 02:43 PM   #17
road hazard
Member
 
Registered: Nov 2015
Posts: 181

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post
Did you try to share /mnt/md0?

eg: /etc/exports
Code:
/mnt/md0 192.168.0.0/16(rw,sync,no_root_squash,subtree_check)
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.)
 
Old 01-07-2018, 03:43 PM   #18
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,245

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
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).

Cheers.
 
Old 01-07-2018, 03:51 PM   #19
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,245

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
Hi road_hazard,

Sorry - meant to suggest one more thing ... :

These are the options I use on my own server for nfs exports:

Code:
rw,nohide,insecure,no_subtree_check,async
I notice some of these aren't included in your exports file statements, particularly the "nohide" and "no_subtree_check" options.

Perhaps you could try experiment with adding those.

Cheers.
 
Old 01-07-2018, 05:15 PM   #20
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
Quote:
Originally Posted by road hazard View Post
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.

Last edited by keefaz; 01-07-2018 at 05:17 PM.
 
Old 01-07-2018, 05:17 PM   #21
road hazard
Member
 
Registered: Nov 2015
Posts: 181

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post
Hello, yes it will export /mnt/md0, the whole array...
It's just for testing, if it succeeds then the raid array is not the issue.
Within the array, I have about 10 folders shared out via Samba. Will that cause any problems?
 
Old 01-07-2018, 05:19 PM   #22
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
Quote:
Originally Posted by road hazard View Post
Within the array, I have about 10 folders shared out via Samba. Will that cause any problems?
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

Last edited by keefaz; 01-07-2018 at 05:22 PM.
 
Old 01-07-2018, 06:11 PM   #23
road hazard
Member
 
Registered: Nov 2015
Posts: 181

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post
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?!?
 
Old 01-07-2018, 06:22 PM   #24
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
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

Last edited by keefaz; 01-07-2018 at 06:36 PM.
 
Old 01-07-2018, 07:58 PM   #25
road hazard
Member
 
Registered: Nov 2015
Posts: 181

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post
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.
 
Old 01-07-2018, 08:03 PM   #26
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,245

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
Quote:
Originally Posted by road hazard View Post
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 ?

Cheers !
 
Old 01-08-2018, 07:01 AM   #27
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
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
 
Old 01-08-2018, 08:06 AM   #28
road hazard
Member
 
Registered: Nov 2015
Posts: 181

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Rickkkk View 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.
 
Old 01-08-2018, 08:10 AM   #29
road hazard
Member
 
Registered: Nov 2015
Posts: 181

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post
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. )
 
Old 01-08-2018, 10:11 AM   #30
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,245

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
Quote:
Originally Posted by road hazard View Post
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.

Cheers !
 
  


Reply

Tags
nfs mount network


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copying zipped folders with html files inside SiphoMoon Linux - Newbie 1 05-09-2012 07:20 AM
need to copy the obtained output files inside corresponding folders LINUX rastin_nz Programming 3 11-03-2010 06:14 PM
Some folders not showing in NFS share w00ly Linux - Networking 1 09-18-2009 11:27 AM
Placing a SMB share inside an NFS share grittyminder Linux - Networking 0 05-14-2008 03:49 AM
How to unzip files recursively inside folders? jessdog9001 Linux - Software 2 03-22-2006 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration