Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-03-2015, 03:47 PM   #1
LQ Newbie
Registered: Jun 2015
Posts: 3

Rep: Reputation: Disabled
nfs4 is making me pull my hair :-(

Hi folks

I am really frustrated with NFS4 and finally have to resort to forums to solve my issue.
I have an Ubuntu 12.04 server running NFSv4 and it has two storage directories (mounted from GFS, but thats irrelevant i guess)
df -h
gfs:/vol00  7.2T  2.1T  4.8T  31% /data/digcolproc
gfs:/vol01  7.2T  137M  6.8T   1% /data/devbackup
As suggested by NFS4, i have made a bind to it to /exports
--- /etc/fstab

gfs:/vol00	/data/digcolproc	glusterfs	defaults	0 0
/data/digcolproc	/exports/digcolproc	none	bind	0 0
gfs:/vol01	/data/devbackup	glusterfs	defaults	0 0
/data/devbackup		/exports/devbackup	none	bind	0 0
Here is the /etc/exports
First issue:
On restarting nfs-kernel-server, i get the following
exportfs: /exports/devbackup requires fsid= for NFS export
exportfs: /exports/digcolproc requires fsid= for NFS export
Second issue
If i still ignore it and proceed to mount those directories in the client side, it tells me its mounted but i don't think it mounts the right directory. there is nothing inside it (but on the server there are lots of files). Also the size is 42 GB while it should be 7.2 TB :-/
Filesystem               Size  Used Avail Use% Mounted on   42G  1.6G   38G   4% /data    42G  1.6G   38G   4% /data2
Here is the /etc/fstab of the client side
Code:	/data	nfs4	defaults	0 0	/data2	nfs4	defaults	0 0
Can someone please help me figure out what am doing wrong here?

Thanks a lot
Old 06-03-2015, 05:44 PM   #2
Registered: Mar 2015
Distribution: Linux Mint
Posts: 579

Rep: Reputation: 267Reputation: 267Reputation: 267
So fix the first issue, set fsid? I notice your /etc/exports file does not have fsid=n

See if fixing it fixes the second issue.

Last edited by Sefyir; 06-03-2015 at 05:46 PM.
Old 06-04-2015, 03:04 AM   #3
LQ Newbie
Registered: Jun 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
According to NFS4, only the root directory should have an fsid=0 and the derived directories should have no fsid at all. But anyway i assigned the two sub exports as fsid=1 and 2 and that messed up the whole thing. First of all the second directory did not mount and gave errors saying server access denied. When i took out the first mount and exported only the second one, it worked - which means there is no issue with permissions

Can someone please help me with mounting multiple directories using NFS4?

Thanks in advance
Old 06-04-2015, 08:09 AM   #4
LQ Newbie
Registered: Jun 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Well i found the problem atleast...the problem is i am trying to export a mounted file system and nfs4 doesn't seem to handle that...

Does anyone has a solution for this please?


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
NX Anyone as I pull my hair out! RayAID Red Hat 3 12-15-2010 01:50 PM
Ready to pull all my hair out! linuxwise Linux - Laptop and Netbook 12 08-12-2007 11:14 PM
I'm going to pull my hair out! WayneS Linux - Software 1 09-07-2006 07:26 AM
Samba and CUPS - Pull hair out here rjkfsm Linux - General 2 04-18-2005 10:58 AM
samba-latest source... not much hair left to pull out german Linux - Software 8 11-11-2003 01:10 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:14 PM.

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