LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-02-2018, 10:04 PM   #1
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Cannot seem to NFS mount Btrfs subvolumes


Background:

Server: openSUSE Tumbleweed (20180326. Yep... newly updated)
Client: openSUSE 13.2

I have a couple of btrfs subvolumes mounted on the server system similar to:
Code:
/data/test          (mount point in ext4 filesystem)
        +---test1   (mount pt. for btrfs subvolume)
        +---test2   (mount pt. for btrfs subvolume)
I tried to export these two (and more in the future which is why I'm wanting to have a single record in /etc/exports) via NFS by exporting them using:
Code:
/data/test clientsys(ro,nohide,no_subtree_check)
What I'm seeing when I mount on the client using:
Code:
mount -t nfs -o ro,nfsvers=4,tcp,rsize=8192,wsize=8192,retry=5 server:/data/test /opt/app/data
is a message
Code:
Mounting NFS filesystem: l:l
while the CPU utilization immediately goes to 100% (good thing there's two), and the mount command fails to return to a shell prompt.

I can go to another window and see that the client has mounted the remote filesystem but I can't find anything under the two mount points. If I issue "^C" on the mount command, it's still mounted but, again, no data is visible below the mount points. It appears that the "nohide" option doesn't do what I thought the manpage said it was supposed to do. Or... the client's NFS implementation (nfs-client-1.3.0-4.4.1.x86_64) may be too old---there is a warning about that possibility on the manpage.

Does anyone know if my client system OS is just incapable of dealing with mounting Btrfs via NFS? I can pretty easily revert back to using one huge filesystem with "test1", "test2", etc. being subdirectories for the time being--in fact, I'm doing it now--but it'd be nice to take advantage of btrfs's features.

Thoughts? Ideas? Pointers? All are welcomed.

--
Rick

Additional info: My Raspberry Pi was able to mount the Tumbleweed NFS export just fine though this may be due to it having had a complete set of updates applied 2-3 weeks ago.

Last edited by rnturn; 04-03-2018 at 10:02 AM. Reason: New info.
 
Old 04-04-2018, 04:36 AM   #2
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
Comments:
1. When exported via NFS, no child mounts exported recursively. You have to export them explicitly.
2. When exporting via NFSv4, you have to use fsid=XX option with different fsid numbers for different exports.
3. BTRFS subvolumes are different inode space, they have to be exported separately.

Probably you have other problem, but these are must to fix.
 
Old 04-04-2018, 04:58 AM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by voleg View Post
Comments:
1. When exported via NFS, no child mounts exported recursively. You have to export them explicitly.
2. When exporting via NFSv4, you have to use fsid=XX option with different fsid numbers for different exports.
3. BTRFS subvolumes are different inode space, they have to be exported separately.

Probably you have other problem, but these are must to fix.
Thanks. I was so hoping my interpretation of the description of the "nohide" option would eliminate the need to explicitly define a record in /etc/exports for each subvolume I want to mount---as well as an addition record in the client's /etc/fstab. But... as you reminded me, the inode spaces would be a problem.

Is there an option for marking this thread [Unsolvable]? :/

Thanks again...
 
Old 04-05-2018, 03:11 AM   #4
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
Nohide option should be part of child mount exportfs, not parent as you did.
In addition, even "man" page of this option mentions, that NFS client can be confused detecting duplicate inodes in "same" filesystem.
 
Old 04-06-2018, 05:04 AM   #5
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by voleg View Post
Nohide option should be part of child mount exportfs, not parent as you did.
In addition, even "man" page of this option mentions, that NFS client can be confused detecting duplicate inodes in "same" filesystem.
The mounts are failing to complete even after reverting to a single exported filesystem (as opposed to the "tree" of subvolumes I was hoping to use). It seems there are plenty of new wrinkles to work out when mixing NFS3 and NFS4. Always something new to learn. I'm putting this problem on the back burner for now anyway; too many other things to fix/clean up on this rebuilt server.

Cheers...
 
  


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
[bug?] Using generic kernel fails when using btrfs subvolumes in 14.2 moesasji Slackware 10 05-30-2017 06:48 AM
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
[SOLVED] which btrfs / subvolumes mixed with ext4 are needed? JZL240I-U Linux - Software 2 01-13-2015 01:22 AM
LXer: How to Manage Btrfs Storage Pools, Subvolumes And Snapshots on Linux (part 1) LXer Syndicated Linux News 0 03-21-2014 01:51 PM
mount.nfs: mount to NFS server 'jesse' failed: timed out, retrying keupie Linux - Networking 3 06-05-2009 07:03 PM

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

All times are GMT -5. The time now is 05:20 PM.

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