LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-03-2015, 03:47 PM   #1
Whatswithmynick
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
Code:
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

Code:
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
Code:
/exports        10.24.86.0/24(rw,sync,fsid=0,crossmnt,no_subtree_check)
/exports/digcolproc  10.24.86.0/24(rw,sync,no_subtree_check)
/exports/devbackup  10.24.86.0/24(rw,sync,no_subtree_check)
----
First issue:
On restarting nfs-kernel-server, i get the following
Code:
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 :-/
Code:
Filesystem               Size  Used Avail Use% Mounted on
10.24.86.70:/digcolproc   42G  1.6G   38G   4% /data
10.24.86.70:/devbackup    42G  1.6G   38G   4% /data2
Here is the /etc/fstab of the client side
Code:
10.24.86.70:/digcolproc	/data	nfs4	defaults	0 0
10.24.86.70:/devbackup	/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
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
So fix the first issue, set fsid? I notice your /etc/exports file does not have fsid=n
http://www.systutorials.com/1636/set...-tmpfs-devshm/

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
Whatswithmynick
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
Whatswithmynick
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?
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:48 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
Open Source Consulting | Domain Registration