Latest News:
*New 11.2 series Release:
2019-06-20: XigmaNAS 11.2.0.4.6766 - released!

*New 12.0 series Release:
2019-06-20: XigmaNAS 12.0.0.4.6766 - 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

Access denied on a NFS share -why?

Network filesystems.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
drnicolas
Advanced User
Advanced User
Posts: 182
Joined: 15 Aug 2013 14:03
Location: Wiesbaden, Germany
Status: Offline

Access denied on a NFS share -why?

#1

Post by drnicolas » 14 Jul 2019 10:26

This doesn't work, but it worked a few months in the past:

Code: Select all

mount.nfs 192.168.1.252:/mnt/vStorage/media/recordings /media/recordings
mount.nfs: access denied by server while mounting 192.168.1.252:/mnt/vStorage/media/recordings
This works:

Code: Select all

mount.nfs 192.168.1.252:/mnt/vStorage/media/Musik /media/recordings
For me it looks that the different commands are similar, but on works, the other not.

This is the exports-flie:

Code: Select all

/mnt/vStorage/SOFTWARE -alldirs -mapall=root -network 192.168.1.0/24
/mnt/vStorage/VMs -mapall=root -network 10.0.0.0/24
/mnt/vStorage/media/Musik -mapall=root -network 192.168.1.0/24
/mnt/vStorage/media/recordings -mapall="root" -network 192.168.1.0/24
V4: /mnt/vStorage/media -network 192.168.1.0/24
Again, the 2 shares look identical

What is wrong?

Both directoryies have the same owner!


UPDATE:
showmount shows this:

Code: Select all

root@ocr:/media# showmount -e 192.168.1.252
Export list for 192.168.1.252:
/mnt/vStorage/media/Musik 192.168.1.0
/mnt/vStorage/VMs         10.0.0.0
/mnt/vStorage/SOFTWARE    192.168.1.0
But, why is the /media/recordings missing?
It's still in the /var/exports file
HP Proliant N54L - Bios Mod -16GB non-ECC-RAM - ZFS RAIDZ1 (3x3TB) - 1VM running XigmaNAS 11.2.0.4.6026

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

Re: Access denied on a NFS share -why?

#2

Post by ernie » 14 Jul 2019 12:29

Hello
I suppose that you want to share via nfs the folders on the xigmanas server.
So in the menu services/nfs, you put the folders that you want to share.
As recording folder and Musik folder have a common path, you need to put the 2 paths on the same line in the configuration menu. Not 2 different lines. Hereafter my example with 2 pool (master and pool1)

Code: Select all

nfsd>
		<numproc>4</numproc>
		<share>
			<uuid>1daa4eea-3733-4b78-8a6a-d2f7eef707de</uuid>
			<path>/mnt/master/download/folder1 /mnt/master/download/folder2 /mnt/master/download/folder3</path>
			<mapall>yes</mapall>
			<network>192.168.150.0/24</network>
			<comment>pour shared</comment>
			<options/>
		</share>
		<share>
			<uuid>92757920-56a4-463e-83ad-1e26e49edbe0</uuid>
			<path>/mnt/pool1/download/tvhead /mnt/pool1/download/renamed</path>
			<mapall>yes</mapall>
			<network>192.168.150.0/24</network>
			<comment>nfs pour seedbox</comment>
			<options/>
		</share>
		<enable/>
	</nfsd>
BR
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))

drnicolas
Advanced User
Advanced User
Posts: 182
Joined: 15 Aug 2013 14:03
Location: Wiesbaden, Germany
Status: Offline

Re: Access denied on a NFS share -why?

#3

Post by drnicolas » 14 Jul 2019 12:41

Bingo!
That worked for me at least partially.

As a first measure, I de-activated the ../Musik-share.
And - bingo - now, the recordings-share works.

Is the "Export subdirectories" option the solution fpr my probelm ?
Of course, I do want to access "Musik" and "recordings" for different purposes.
HP Proliant N54L - Bios Mod -16GB non-ECC-RAM - ZFS RAIDZ1 (3x3TB) - 1VM running XigmaNAS 11.2.0.4.6026

Post Reply

Return to “NFS”