LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2017, 02:31 PM   #1
qajaq
Member
 
Registered: Sep 2008
Location: north-central Florida
Distribution: Lubuntu 19.04, Kubuntu 18.04
Posts: 119

Rep: Reputation: 15
Partition mounted on new folder on nfs4 server not seen on client machine


A year ago, I set up a file server (named Kodiak) with a subdirectory /share and several subdirectories within that one (e.g.: /share/datalib, /share/vidlib, etc.). Each of these subdirectories are mount-points for partitions created on separate hard drives.

I then set up a client machine's /etc/fstab to load the Kodiak:/share subdirectory as an nfs4 type. All has worked well until I recently made the following change.

I want to put all my file libraries together on the file server, by means of putting the "lib" part of their names first. I started with my subdirectory of video files, creating a new subdirectory /share/libvid, and changing the line in the server's /etc/fstab file accordingly (from "/share/vidlib" to "/share/libvid" as the mount-point for that partition).

Upon rebooting the server, all is well at that end: my video files are shown as expected when I call for a listing of the /share/libvid subdirectory at the file server (either directly at the servers CLI or from the client machine via SSH).

However, even after rebooting the client machine, the video files are not shown there. What is shown instead is the file that exists on the subdirectory when no external partition is mounted on that point.

In other words, the file server can see the mounted partition, just as it sees all other mounted partitions. But the client machine does not see the mounted partition, but sees the file beneath it. The client machine continues to see the other mounted partitions (e.g. /share/datalib) as well as it always has.

Any ideas why the subdirectory would be visible to the server but not to the client?
 
Old 07-29-2017, 05:45 PM   #2
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 664

Rep: Reputation: 190Reputation: 190
You didn't mention whether or not you updated /etc/exports?

Edit: Also, you mention: "What is shown instead is the file that exists on the subdirectory when no external partition is mounted on that point."

It sounds like nfs may have exported the share before the share was actually mounted

Also make sure you exportfs -rav on the server

Last edited by TheEzekielProject; 07-29-2017 at 05:57 PM.
 
1 members found this post helpful.
Old 07-29-2017, 06:23 PM   #3
qajaq
Member
 
Registered: Sep 2008
Location: north-central Florida
Distribution: Lubuntu 19.04, Kubuntu 18.04
Posts: 119

Original Poster
Rep: Reputation: 15
Thank you! That's the part I didn't remember from when I set up the nfs last year. With that, I have access to all my files.
 
Old 07-29-2017, 06:25 PM   #4
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 664

Rep: Reputation: 190Reputation: 190
Awesome! Glad I was able to help!
 
  


Reply

Tags
fileserver, mount point, partition


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
Unable to mount server's home directory on client after reboot using NFS4 on FC16 Lago Fedora 6 03-07-2012 10:49 AM
[SOLVED] nfs-krb mounted home folder - Client hangs at login unehed Linux - Server 4 10-07-2011 06:16 AM
nfs4 - mount.nfs4: access denied by server while mounting edwin11 Linux - Networking 1 12-07-2010 10:06 AM
Can't allow partion permissions for a vfat partition, mounted as my home folder DrD Linux - General 19 07-26-2006 12:26 PM
Apache can not run when I use for Documentroot folder in which mounted a partition rustam Linux - General 1 12-09-2005 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:29 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