Page 1 of 1

Multiple NFS shares but only the last is visible

Posted: 01 Jul 2012 05:54
by rcrh
I've created two NFS shares but I've tried to access them from three different devices and all three only see the last one created. I've deleted them and recreated them in different orders and the last one is always the only one that any of my devices see. I have:
1) WDTV Live SMP
2) a Popcorn Hour A110
3) an HTPC running XBMC Live (Ubuntu).

Is there something I have to do to make both available?

Thanks.

Re: Multiple NFS shares but only the last is visible

Posted: 01 Jul 2012 12:34
by ldkraemer
rcrh,
You state two shares......but reference 3? What is the correct number of shares?

What is the number of Servers that you have selected in the Settings Tab? This specifies how many processes to create. There needs to be enough processes
to handle the maximum level of concurrency from the NFS Clients on the Network. A typical number would be 4 to 6.

Your shares are just Folders or Subdirectories available on the network. I've only used a single NFS share, but in the near future I'll try making another when I
setup my updated NAS4Free Server.

What is your netmask? Typical is 255.255.255.0 or /24.

Can you access the last created NFS share, and copy files/folders properly? Are you accessing the NFS share with Linux or Windows?
Why don't you try mounting the first, or second share with Linux, and then see if you can access it.
On my NAS, I use Debian 6 "Squeeze" and I mount my NFS share with: (assuming /mnt/freenas has been created........)

Code: Select all

sudo mount 192.168.1.250:/mnt/mysata /mnt/freenas
I access my shares..........Copy, Move, Delete Files/Folders.......

I un-mount in Linux with: (assuming the current working dir is not at /mnt/freenas..........but rather /mnt so the umount command executes properly)

Code: Select all

cd ..
sudo umount /mnt/freenas
If you are going to access all three shares at the same time, you could mount all three shares. But, there isn't a real need
to do this since you can cd to any Folder/subdirectory and copy/move/delete what needs to be modified. Once you're in
any share you are not jailed at that location.....

Code: Select all

mkdir -p /mnt/nasshare1
mkdir -p /mnt/nasshare2
mkdir -p /mnt/nasshare3
sudo mount 192.168.1.250:/mnt/mysata/share1 /mnt/nasshare1
sudo mount 192.168.1.250:/mnt/mysata/share2 /mnt/nasshare2
sudo mount 192.168.1.250:/mnt/mysata/share3 /mnt/nasshare3
Access shares...........

Code: Select all

cd ..
sudo umount /mnt/nasshare1
sudo umount /mnt/nasshare2
sudo umount /mnt/nasshare3
But, if you will only access one at a time, you can mount any of the shares to /mnt/nasshare1...........
Just be sure to umount it when finished.

Thanks.

Larry

Re: Multiple NFS shares but only the last is visible

Posted: 01 Jul 2012 15:21
by rcrh
ldkraemer wrote:rcrh,
You state two shares......but reference 3? What is the correct number of shares?
Two shares being accessed by three different devices
ldkraemer wrote: What is the number of Servers that you have selected in the Settings Tab? This specifies how many processes to create. There needs to be enough processes to handle the maximum level of concurrency from the NFS Clients on the Network. A typical number would be 4 to 6.
I have 4 servers
ldkraemer wrote: What is your netmask? Typical is 255.255.255.0 or /24.
/24. (If I had this wrong would ALL of my shares be invisible?)
ldkraemer wrote: Can you access the last created NFS share, and copy files/folders properly? Are you accessing the NFS share with Linux or Windows?
Yes I can do all of the normal operations.
I'm accessing from Linux in all three cases (WDTV & Popcorn Hour run some version of Linux & the three box is Ubuntu). I'm not sure how to access an NFS from Windows so I also have SMB shares running.
ldkraemer wrote: Why don't you try mounting the first, or second share with Linux, and then see if you can access it.
Two of my boxes don't allow me to execute commands like that.

I think that answers your questions and maybe triggers something else.

Thanks again.
Richard

Re: Multiple NFS shares but only the last is visible

Posted: 02 Jul 2012 15:35
by ldkraemer
rcrh,
The only two questions I still have are:
1. I assumed you are accessing your NFS Server (NAS4Free) from your LAN, not the WAN. Is this assumption correct?
In this case you DO NOT need to OPEN Port 22 (Manually Forward the port).
2. What do you have for the PATH for both Shares? Mine is /mnt/mysata as an example......and I have share subdirectories checked.
I was just wondering if you have different Paths for each share?

Like I previously stated, I haven't tried more than one share.

Larry

Re: Multiple NFS shares but only the last is visible

Posted: 02 Jul 2012 16:37
by rcrh
Larry,

1. it is a LAN, not a WAN
2. its hard for me to say. In all cases I have an interface between me and the actual mount.

Thanks for your thoughts Larry. I'm hoping someone else has been down this road.

Re: Multiple NFS shares but only the last is visible

Posted: 02 Jul 2012 21:20
by raulfg3
Please open your NAS and replace index.php by status.php ( in my case is http://192.168.1.17/status.php) a resume of your config are loaded, edit if you want your password to delete it.

Save the php result, zip and atach to this post, perhaps with your complete config can help you.

Re: Multiple NFS shares but only the last is visible

Posted: 31 Jul 2012 05:29
by eunix
Is this a bug?

I am having the same problem.

I have a mixed environment and I want to serve up my shares natively to my various machines.
For example, I want my Linux and Unix machines to be able to mount the share via NFS and Wintel through SMB while my Mac use AFS to the same volumes.

When I log into the console, I can see my mounts properly formated in the /etc/exports file but when I run the showmount -e, I only get 1 fs exported?

Does anyone have a suggestion on how to fix this?

Thanks,

Eunix

Re: Multiple NFS shares but only the last is visible

Posted: 11 Aug 2012 02:22
by eunix
Solution : Export out UFS filesystems. NTFS is not fully supported so if you have imported a pre-existing NTFS volume, I would convert it to UFS and then export it at NFS.

Re: Multiple NFS shares but only the last is visible

Posted: 13 Aug 2012 14:03
by ldkraemer

Re: Multiple NFS shares but only the last is visible

Posted: 07 Sep 2012 09:58
by 2Crazy
Hello,

I have the same problem.
If I make 2 shares like this:

/mnt/share1 192.168.1.0/24
/mnt/share2 192.168.1.0/24 


showmount -e indicates :

Code: Select all

/mnt/share2 192.168.1.0/24
and the first share not appear.


Now, if I make these shares:

/mnt/share1 192.168.1.0/26 
/mnt/share1 192.168.1.64/26 
/mnt/share1 192.168.1.128/26 
/mnt/share1 192.168.1.192/26
/mnt/share2 192.168.1.0/24 

I obtain:

Code: Select all

/mnt/share1 192.168.1.0,192.168.1.64,192.168.1.128,192.168.1.192
/mnt/share2 192.168.1.0/24 

Is it a problem of interpreting the network filtering ? or something else ?
did anyone solve this ?

Re: Multiple NFS shares but only the last is visible

Posted: 05 Nov 2012 08:46
by fletchowns
2Crazy, I was having the same issue and a Google search led me to your post. I finally figured out what the problem was.

From the FreeBSD handbook on NFS http://www.freebsd.org/doc/en_US.ISO885 ... k-nfs.html
The properties of one file system exported to a given host must all occur on one line. Lines without a client specified are treated as a single host. This limits how you can export file systems, but for most people this is not an issue.
So the fix is to create a single share for the client, but then list multiple paths delimited by spaces:
multiple_shares_single_client.png
Hope this helps!! It was driving me nuts :)

Re: Multiple NFS shares but only the last is visible

Posted: 12 Jan 2013 04:43
by waldo22
fletchowns wrote:2Crazy, I was having the same issue and a Google search led me to your post. I finally figured out what the problem was.
...
So the fix is to create a single share for the client, but then list multiple paths delimited by spaces:
multiple_shares_single_client.png
Hope this helps!! It was driving me nuts :)
Yes. YES! Why is this not in the wiki, or instructions?

This was driving me crazy as well. Using NAS4Free as a media center NAS, I have folders like:
/mnt/Videos
/mnt/Music
/mnt/TVRecordings
/mnt/Backup

...all on the same ZFS filesystem.

ONLY the last created export/share was visible.

This seems to have solved the problem.

Thanks a million!

-Wes

Re: Multiple NFS shares but only the last is visible

Posted: 18 Oct 2013 16:17
by ChriZathens
If you want to create 3 shares, add them all in one line
So if you want to add
  1. 1st share -->/mnt/Media/Music
  2. 2nd share -->/mnt/Media/Photo
  3. 3rd share -->/mnt/Media/Video
do not click the add button 3 times, (one for every share). In the first one add all of them.
See example in my attachment:
nfs.png

Re: Multiple NFS shares but only the last is visible

Posted: 09 Oct 2014 09:33
by trendco
Thanks a lot for this Info.
But that's really stupid.It would be useful if you could create the Shares normaly in the Web-Iinterface and usually that would then automatically written correctly in the Exports File.

Re: Multiple NFS shares but only the last is visible

Posted: 09 Oct 2014 13:19
by ChriZathens
It is an old bug..
It will be fixed eventually, I guess..

Re: Multiple NFS shares but only the last is visible

Posted: 02 Jun 2015 16:26
by adrihenper
Thats amazing TIP!!!! Its works like a charm for me.

Thankuuuuuuuuuuuuuuuu :ugeek: :ugeek: :ugeek: :ugeek: :ugeek: :ugeek: :ugeek:

Re: Multiple NFS shares but only the last is visible

Posted: 15 Aug 2015 16:28
by ernie
Hello,

I have an issue with NFS.

I created a NFS like this:
- 4 as number of servers
- for the share, only one share and I put : /mnt/pool1/download/renamed /mnt/pool1/download/incomplete /mnt/pool1/download/watch /mnt/pool1/download/torrents (separation with space)

It works.

If I added a fifth pathway : /mnt/pool1/photos/2015, it dooesn't work => no access to all the nfs shared.

I tried to delete and create again => same issue.

I tried to put 6 as number of server => same issue

I am using Nayla version 1391 (9.3.1391).

Is there a limit to 4 pathway for the same nfs share ?

Thanks for your help

Re: Multiple NFS shares but only the last is visible

Posted: 15 Aug 2015 21:19
by ernie
Hello,

Additional test:

If I put only /mnt/pool1/photos/2015 for the nfs, it works.

If I put the same + /mnt/pool1/download/watch, it didn t work.

If I put /mnt/download/watch + same/incomplete + same/torrents + same/renamed, it works. if I add /mnt/pool1/photos/2015, it doesn t work.

I tried to delete the fstab of the computer which tries to mount the nfs, to disable the nfs and to begin from start. Same error.

Download is a folder in pool and photos is a dataset in pool.

I tried to put only /mnt/pool1/photos/2015 for the nfs, it works. If I add only /mnt/pool1/download.watch, it failed for the mount.

Any idea ?

Re: Multiple NFS shares but only the last is visible

Posted: 16 Aug 2015 16:22
by ernie
Hello,

I managed different tests on a VM with wheezy where I mount the nfs.

Here my results:

1) NFS on nas4free = only pathway of folders (no datasets)
It works (I tested until 5 pathways)

2) NFS on nas4free = 1 dataset
It works

3) NFS on nas4free = different folders of the same dataset
it works

4) NFS on nas4free = dataset + folders outside of the dataset
it doesn't work

Code: Select all

root@wheezy:~# showmount -e 192.168.150.21
Export list for 192.168.150.21:
5) NFS on nas4free = different dataset
it doesn't work

Code: Select all

root@wheezy:~# showmount -e 192.168.150.21
Export list for 192.168.150.21:
Is it normal that I cannot mix folders and dataset or different datasets ?

Is it possible for new versions of nas4free to improve this point ?

If it doesn't work nas4free says
Aug 16 16:14:30 mountd[97925]: bad exports list line /mnt/pool1/photos/2015 /mnt/pool1/photos/2014 /mnt/pool1/sup

Each time with the relevant pathways

Thanks

Re: Multiple NFS shares but only the last is visible

Posted: 27 Aug 2015 13:31
by ernie
Hello,

I observed that the log of nas4free told me this:

mountd[44031]: mount request denied from 192.168.150.14 for /mnt/pool1/photos/2015

photos is a dataset and 2015 is a folder.

The nfs service is:
/mnt/pool1/photos/2015 /mnt/pool1/download/watch

As already said, if I put only /mnt/pool1/photos/2015
it works.

Your help is welcome.

Re: Multiple NFS shares but only the last is visible

Posted: 14 Jun 2017 22:25
by nixIT
ChriZathens wrote:
18 Oct 2013 16:17
If you want to create 3 shares, add them all in one line
So if you want to add
  1. 1st share -->/mnt/Media/Music
  2. 2nd share -->/mnt/Media/Photo
  3. 3rd share -->/mnt/Media/Video
do not click the add button 3 times, (one for every share). In the first one add all of them.
See example in my attachment:
nfs.png
Greetings All, I am having this issue, and it appears that the image to the solution is no longer available. How do we add all 3 shares to the same line?

thanx in advance

--nixIT

Re: Multiple NFS shares but only the last is visible

Posted: 14 Jun 2017 22:51
by raulfg3
separete by blank space: viewtopic.php?f=25&t=1816

Re: Multiple NFS shares but only the last is visible

Posted: 14 Jun 2017 23:52
by ChriZathens
I will -try to remember to - edit my previous post and add a valid image again (was lost way back due to a forum upgrade I think)

Re: Multiple NFS shares but only the last is visible

Posted: 15 Jun 2017 01:41
by nixIT
raulfg3 wrote:
14 Jun 2017 22:51
separete by blank space: viewtopic.php?f=25&t=1816
Thanx, that worked like a champ!

--nixIT

Re: Multiple NFS shares but only the last is visible

Posted: 11 Sep 2017 23:46
by Hailgodset91
I have tried this and I can´t get it to work.
When I add one or two shares (Three shares do not work) in separate lines in the GUI I´m able to connect with them, but when I try to add several shares in the same line with a space between I get nothing

Re: Multiple NFS shares but only the last is visible

Posted: 12 Sep 2017 21:12
by anana
Can't get this to work neither.. only the last NFS share listed in nas4free web gui is visible/mountable by clients.

Frustrating - please check if this is a bug in the nas4free and fix if possible.