*New 11.3 series Release:
2019-10-05: XigmaNAS 11.3.0.4.6928 - released, 11.2 series are soon unsupported!

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Multiple NFS shares but only the last is visible

Network filesystems.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
rcrh
NewUser
NewUser
Posts: 11
Joined: 23 Jun 2012 15:00
Status: Offline

Multiple NFS shares but only the last is visible

#1

Post by rcrh » 01 Jul 2012 05:54

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.

ldkraemer
Starter
Starter
Posts: 53
Joined: 26 Jun 2012 22:35
Status: Offline

Re: Multiple NFS shares but only the last is visible

#2

Post by ldkraemer » 01 Jul 2012 12:34

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

rcrh
NewUser
NewUser
Posts: 11
Joined: 23 Jun 2012 15:00
Status: Offline

Re: Multiple NFS shares but only the last is visible

#3

Post by rcrh » 01 Jul 2012 15:21

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

ldkraemer
Starter
Starter
Posts: 53
Joined: 26 Jun 2012 22:35
Status: Offline

Re: Multiple NFS shares but only the last is visible

#4

Post by ldkraemer » 02 Jul 2012 15:35

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

rcrh
NewUser
NewUser
Posts: 11
Joined: 23 Jun 2012 15:00
Status: Offline

Re: Multiple NFS shares but only the last is visible

#5

Post by rcrh » 02 Jul 2012 16:37

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.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Multiple NFS shares but only the last is visible

#6

Post by raulfg3 » 02 Jul 2012 21:20

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.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

eunix
NewUser
NewUser
Posts: 4
Joined: 13 Jul 2012 02:19
Status: Offline

Re: Multiple NFS shares but only the last is visible

#7

Post by eunix » 31 Jul 2012 05:29

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

eunix
NewUser
NewUser
Posts: 4
Joined: 13 Jul 2012 02:19
Status: Offline

Re: Multiple NFS shares but only the last is visible

#8

Post by eunix » 11 Aug 2012 02:22

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.


2Crazy
NewUser
NewUser
Posts: 1
Joined: 07 Sep 2012 09:13
Status: Offline

Re: Multiple NFS shares but only the last is visible

#10

Post by 2Crazy » 07 Sep 2012 09:58

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 ?

fletchowns
Starter
Starter
Posts: 18
Joined: 05 Nov 2012 08:43
Status: Offline

Re: Multiple NFS shares but only the last is visible

#11

Post by fletchowns » 05 Nov 2012 08:46

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 :)
You do not have the required permissions to view the files attached to this post.

waldo22
Starter
Starter
Posts: 29
Joined: 27 Nov 2012 16:20
Status: Offline

Re: Multiple NFS shares but only the last is visible

#12

Post by waldo22 » 12 Jan 2013 04:43

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

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 833
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: Multiple NFS shares but only the last is visible

#13

Post by ChriZathens » 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
You do not have the required permissions to view the files attached to this post.
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: HP N40L (4x1TB HP branded Seagate disks in RaidZ configuration - 8GB ECC RAM)

trendco
Starter
Starter
Posts: 70
Joined: 20 Jan 2013 18:59
Status: Offline

Re: Multiple NFS shares but only the last is visible

#14

Post by trendco » 09 Oct 2014 09:33

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.

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 833
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: Multiple NFS shares but only the last is visible

#15

Post by ChriZathens » 09 Oct 2014 13:19

It is an old bug..
It will be fixed eventually, I guess..
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: HP N40L (4x1TB HP branded Seagate disks in RaidZ configuration - 8GB ECC RAM)

adrihenper
NewUser
NewUser
Posts: 1
Joined: 02 Jun 2015 16:16
Status: Offline

Re: Multiple NFS shares but only the last is visible

#16

Post by adrihenper » 02 Jun 2015 16:26

Thats amazing TIP!!!! Its works like a charm for me.

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

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1416
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: Multiple NFS shares but only the last is visible

#17

Post by ernie » 15 Aug 2015 16:28

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
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1416
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: Multiple NFS shares but only the last is visible

#18

Post by ernie » 15 Aug 2015 21:19

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 ?
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1416
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: Multiple NFS shares but only the last is visible

#19

Post by ernie » 16 Aug 2015 16:22

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
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1416
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: Multiple NFS shares but only the last is visible

#20

Post by ernie » 27 Aug 2015 13:31

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.
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

nixIT
Starter
Starter
Posts: 29
Joined: 01 Jun 2015 05:31
Status: Offline

Re: Multiple NFS shares but only the last is visible

#21

Post by nixIT » 14 Jun 2017 22:25

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

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Multiple NFS shares but only the last is visible

#22

Post by raulfg3 » 14 Jun 2017 22:51

separete by blank space: viewtopic.php?f=25&t=1816
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 833
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: Multiple NFS shares but only the last is visible

#23

Post by ChriZathens » 14 Jun 2017 23:52

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)
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: HP N40L (4x1TB HP branded Seagate disks in RaidZ configuration - 8GB ECC RAM)

nixIT
Starter
Starter
Posts: 29
Joined: 01 Jun 2015 05:31
Status: Offline

Re: Multiple NFS shares but only the last is visible

#24

Post by nixIT » 15 Jun 2017 01:41

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

--nixIT

Hailgodset91
NewUser
NewUser
Posts: 2
Joined: 09 Sep 2017 20:03
Status: Offline

Re: Multiple NFS shares but only the last is visible

#25

Post by Hailgodset91 » 11 Sep 2017 23:46

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

anana
NewUser
NewUser
Posts: 5
Joined: 22 Jan 2015 09:40
Status: Offline

Re: Multiple NFS shares but only the last is visible

#26

Post by anana » 12 Sep 2017 21:12

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.

Post Reply

Return to “NFS”