LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-20-2014, 03:11 AM   #1
starfury6
LQ Newbie
 
Registered: Apr 2006
Location: Essex, England
Distribution: Red Hat, CentOS, Debian
Posts: 9

Rep: Reputation: 0
Question nfs automount of exported filesystems empty on nfs server


I am having issues with empty nfs automounts on the nfs server itself.

I'm running RHEL5.7 64bit exporting 4 directories as follows:

Code:
/export/site/server13 *(fsid=0,rw,sync,crossmnt)
    /export/site/server13/u *(rw,sync)
    /export/site/server13/unix *(rw,sync)
    /export/site/server13/proj *(rw,sync)
The first location is on the root filesystem.

u, unix and proj are separate mounted filesystems.

I'm using NIS to supply automount maps to each server for the /site mountpoint.

auto.site.indirect:

Code:
server13        server13:/export/site/server13 \
    /u              server13:/export/site/server13/u \
    /unix           server13:/export/site/server13/unix \
    /proj           server13:/export/site/server13/proj

On all the other servers in the NIS environment these exports automount with no problem to /site/server13/u etc, however on server13 itself the u, proj and unix directories are empty.

I enabled logging for autofs which shows when I cd to /site/server13/u the server mounts /site/server13 but not the u share. It's as it it doesn't even try to mount the u share.

from /var/log/messages:

Code:
Jan 17 11:14:41 server13 automount[24326]: handle_packet: type = 3
    Jan 17 11:14:41 server13 automount[24326]: handle_packet_missing_indirect: token 21, name server13, request pid 3385
    Jan 17 11:14:41 server13 automount[24326]: attempting to mount entry /site/server13
    Jan 17 11:14:41 server13 automount[24326]: lookup_mount: lookup(file): looking up server13
    Jan 17 11:14:41 server13 automount[24326]: lookup_mount: lookup(file): server13 -> server13:/export/site/server13
    Jan 17 11:14:41 server13 automount[24326]: parse_mount: parse(sun): expanded entry: server13:/export/site/server13
    Jan 17 11:14:41 server13 automount[24326]: parse_mount: parse(sun): gathered options:
    Jan 17 11:14:41 server13 automount[24326]: parse_mount: parse(sun): dequote("server13:/export/site/server13") -> server13:/export/site/server13
    Jan 17 11:14:41 server13 automount[24326]: parse_mount: parse(sun): core of entry: options=, loc=server13:/export/site/server13
    Jan 17 11:14:41 server13 automount[24326]: sun_mount: parse(sun): mounting root /site, mountpoint server13, what server13:/export/site/server13, fstype nfs, options (null)
    Jan 17 11:14:41 server13 automount[24326]: mount_mount: mount(nfs): root=/site name=server13 what=server13:/export/site/server13, fstype=nfs, options=(null)
    Jan 17 11:14:41 server13 automount[24326]: mount_mount: mount(nfs): calling mkdir_path /site/server13
    Jan 17 11:14:41 server13 automount[24326]: mount_mount: mount(nfs): server13 is local, attempt bind mount
    Jan 17 11:14:41 server13 automount[24326]: mount_mount: mount(bind): calling mkdir_path /site/server13
    Jan 17 11:14:41 server13 automount[24326]: mount_mount: mount(bind): calling mount --bind -s  -o defaults /export/site/server13 /site/server13
    Jan 17 11:14:41 server13 automount[24326]: mount_mount: mount(bind): mounted /export/site/server13 type bind on /site/server13
    Jan 17 11:14:41 server13 automount[24326]: dev_ioctl_send_ready: token = 21
    Jan 17 11:14:41 server13 automount[24326]: mounted /site/server13
Any ideas please?
 
Old 01-22-2014, 07:58 AM   #2
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
On the remote server (not the nfs server) verify that nfs-utils is installed.
 
Old 01-22-2014, 08:08 AM   #3
starfury6
LQ Newbie
 
Registered: Apr 2006
Location: Essex, England
Distribution: Red Hat, CentOS, Debian
Posts: 9

Original Poster
Rep: Reputation: 0
I believe I've solved it.

auto.master refers to:
Code:
/site   /etc/auto_site_indirect
Previously this file contained:
Code:
thishost  -rw  server13:/export/site/server13
server13  -rw  server13:/export/site/server13
+auto.site.indirect
Now to manage the submounts it looks like this:
Code:
thishost  -rw  server13:/export/site/server13
*         -fstype=autofs,-Dhost=& file:/etc/auto.site.submounts
auto.site.submounts file:
Code:
*         server13:/export/site/server13/&
This method appears to be necessary for nfs submounts of mounted filesystems. Obviously I need a new indirect NIS map for /site, for server13 alone, that doesn't have the lines for server13 since they're configured locally now.
 
  


Reply

Tags
autofs, automount, nfs, redhat, rhel



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
nfs server: can't stat exported dir r_ramp Linux - Server 1 10-24-2008 05:06 PM
CentOS based NFS Server and Mac OS X not mounting exported shares Jamesk5 Linux - Server 1 01-31-2008 03:15 PM
Difficulty unmounting NFS exported filesystems rperlberg Linux - Server 2 05-11-2007 01:12 PM
list exported nfs-server directories kpachopoulos Linux - General 1 03-11-2007 01:11 PM
no NFS in /proc/filesystems how to add NFS? BobNz Linux - Software 4 07-08-2004 02:40 AM

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

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