LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-11-2014, 03:06 PM   #1
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Rep: Reputation: 16
NFS share mounts but can't view/browse files


Server: CentOS 6 64bit
Client: Ubuntu 13.04

I have a strange problem after disabling NetworkManager on the client PC: the NFS share on my client mounts fine, but the directories are emtpy. If I mount the shares manually, everything appears and I can browse/view files.

None of the NFS server configurations have changed. None of the autofs, NFS, or fstab configurations on the client have changed.

What HAS changed on the client is NetworkManager is no longer handling the network. The last Ubuntu update broke NetworkManager so I disabled it and configured the network interface the old fashion way. The network on the client is static and works fine, except this NFS issue. The client's IP address is the same as before when NM handled the network.

I have a 2nd client running OpenSuSE. I can view the shares and see the files just fine without manually mounting. Only the Ubuntu client is having this issue.

Ubuntu client:
Code:
Linux htpc 3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 17:40:43 UTC 2013 i686 i686 i386 GNU/Linux
Ubuntu client Fstab (non-NFS entries removed):
Code:
10.10.69.1:/NAS         /Media    nfs     rw,exec,nosuid,dev,sync,users,noatime,hard,intr,auto,rsize=32768,wsize=32768,timeo=10 0 0
Ubuntu client auto.master:
Code:
#
+auto.master
/Media /etc/auto.NAS --timeout 10
Ubuntu client auto.NAS:
Code:
NAS     -fstype=nfs,rw,soft,intr,nosuid,nodev,tcp,retry=10,rsize=32768,wsize=32768 10.10.69.1:/NAS
shane@htpc:/etc$
I've checked /etc/exports on the server and the Ubuntu client's address is there. I've checked /etc/hosts.allow and the Ubuntu client's address is listed for portmap, lockd, rquotad, mountd, and statd.

After a fresh reboot, there is an entry in mtab for the NFS share showing it is mounted. If I manually mount using:

Code:
sudo mount 10.10.69.1:/NAS /Media
then I can view the files and mtab has a SECOND entry for the same mount. So confused.

Halp.
 
Old 01-11-2014, 05:27 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
are you trying to use both autofs and fstab to mount the NFS share? if so that is wrong. use one or the other, but not both at the same time... you will confuse the system and try to mount inside of a mount. its doable, but things can and will go haywire.

what does exports -e 10.10.69.1 say from the client?

also after a fresh boot what does df -Tha state?
 
Old 01-11-2014, 05:59 PM   #3
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by lleb View Post
are you trying to use both autofs and fstab to mount the NFS share? if so that is wrong. use one or the other, but not both at the same time... you will confuse the system and try to mount inside of a mount. its doable, but things can and will go haywire.
Good point. I've changed the auto flag to noauto.

Quote:
Originally Posted by lleb View Post
what does exports -e 10.10.69.1 say from the client?
No /etc/exports file on client (unless you're referring to something else).

Quote:
Originally Posted by lleb View Post
also after a fresh boot what does df -Tha state?
Code:
shane@htpc:~$ sudo df -Tha
[sudo] password for shane: 
Filesystem     Type         Size  Used Avail Use% Mounted on
/dev/sda1      ext4         145G   52G   86G  38% /
proc           proc            0     0     0    - /proc
sysfs          sysfs           0     0     0    - /sys
none           fusectl         0     0     0    - /sys/fs/fuse/connections
none           debugfs         0     0     0    - /sys/kernel/debug
none           securityfs      0     0     0    - /sys/kernel/security
udev           devtmpfs     998M  4.0K  998M   1% /dev
devpts         devpts          0     0     0    - /dev/pts
tmpfs          tmpfs        402M  936K  401M   1% /run
none           tmpfs        5.0M     0  5.0M   0% /run/lock
none           tmpfs       1005M     0 1005M   0% /run/shm
binfmt_misc    binfmt_misc     0     0     0    - /proc/sys/fs/binfmt_misc
rpc_pipefs     rpc_pipefs      0     0     0    - /run/rpc_pipefs
shane@htpc:~$
Here it is after manually mounting:

Code:
shane@htpc:/$ sudo mount 10.10.69.1:/NAS /Media
shane@htpc:/$ sudo df -Tha
Filesystem      Type         Size  Used Avail Use% Mounted on
/dev/sda1       ext4         145G   52G   86G  38% /
proc            proc            0     0     0    - /proc
sysfs           sysfs           0     0     0    - /sys
none            fusectl         0     0     0    - /sys/fs/fuse/connections
none            debugfs         0     0     0    - /sys/kernel/debug
none            securityfs      0     0     0    - /sys/kernel/security
udev            devtmpfs     998M  4.0K  998M   1% /dev
devpts          devpts          0     0     0    - /dev/pts
tmpfs           tmpfs        402M  936K  401M   1% /run
none            tmpfs        5.0M     0  5.0M   0% /run/lock
none            tmpfs       1005M     0 1005M   0% /run/shm
binfmt_misc     binfmt_misc     0     0     0    - /proc/sys/fs/binfmt_misc
rpc_pipefs      rpc_pipefs      0     0     0    - /run/rpc_pipefs
10.10.69.1:/NAS nfs          5.4T  1.7T  3.5T  32% /Media
shane@htpc:/$
Thanks man for helping out.
 
Old 01-11-2014, 06:11 PM   #4
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Original Poster
Rep: Reputation: 16
FIXED

I went to /etc/default/autofs and set this option:

Code:
BROWSE_MODE="yes"
It was set to no. But for some reason it worked before. No idea. It works now and that's all I wanted.
 
Old 01-12-2014, 11:51 AM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
good glad you found it. if you are using autofs, remove the fstab entry.
 
  


Reply


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
how to browse share files windows xp in linux consule slack66 Linux - Newbie 2 10-27-2008 12:05 AM
NFS share mounts with ro rather than rw for a new client dustymugs Linux - Server 1 10-08-2007 05:23 PM
how to view a movie located on an nfs share nephish Linux - Software 3 09-14-2007 05:43 PM
Browse xp share files ASTRAPI Linux - Networking 2 03-20-2007 07:15 PM
Noob question: AutoFS and NFS Share Issue: Group mounts gerhardb Linux - Networking 0 03-20-2007 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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