Solved

Error attempting to auto mount /home directories to an NFS server under RedHat

Posted on 2007-03-21
7
667 Views
Last Modified: 2013-12-16
Hi All,

I'm currently using RedHat 4 Enterprise Workstation 4 U4 for a small lab.

I've got a Fedora Core 6 File Server with an NFS share, and I'm simply exporting the /home directory on that server for the RH4Ent clients to auto.home their /home directories.

When I restart autofs I get:

failed to load map: "/usr/sbin/automount --timeout=60 /home[WARNING]c/auto.home"

So it will not automount the /home directory.

On the server I'm simply using corresponding users and groups.  In a test environment using all Fedora Core machines, it works without an issue.

Also, if I issue the command:

[root@tuw5 etc]# mount lfs1:/home /home/

It works without a problem and the NFS share on the LFS1 server is mounted to the local RedHat Ent 4 workstation.

What am I doing wrong?



Here are the files:

[root@tuw5 etc]# more auto.master
#
# $Id: auto.master,v 1.3 2003/09/29 08:22:35 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#/misc  /etc/auto.misc --timeout=60
/misc   /etc/auto.misc
#/net   /etc/auto.net
/net    -hosts
/home   /etc/auto.home --timeout 300

[root@tuw5 etc]# more auto.home
* -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp lfs1:/home:&

0
Comment
Question by:gerhardub
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 38

Accepted Solution

by:
wesly_chen earned 500 total points
ID: 18767051
> [root@tuw5 etc]# more auto.home
> * -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp lfs1:/home:&
change to
* -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp lfs1:/home/&

Besides, check your /etc/sysconfig/autofs and edit two options
--- /etc/sysconfig/autofs ---
LOCALOPTIONS="soft,intr,rsize=8192,wsize=8192,nosuid,tcp"
DAEMONOPTIONS="--timeout=300"
-------
Then you can change to /etc/auto.home
*  lfs1:/home/&
0
 
LVL 1

Author Comment

by:gerhardub
ID: 18767627
Thanks, I'll give that a try and tell you if it appears to work!!

Is this a syntax issue between RedHat and Fedora?
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 18767701
> Is this a syntax issue between RedHat and Fedora?
No, but there are some options difference for autofs in /etc/sysconfig/autofs since there is new feature update in autofs recently.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 1

Author Comment

by:gerhardub
ID: 18769002
Yeah, it was syntax based, I guess due to version, which is confusing.

Fedora Core 6 (which has a newer Kernel than RH Ent WS4 U4) uses:

* lfs1:/home /home:&

RedHat 4WS U4 uses:

* lfs1:/home /home/&

..and that appears to have been the issue.
0
 
LVL 1

Author Comment

by:gerhardub
ID: 18770661
Well, I'm still getting an error when I attempt to get RedHat to load the auto.home settings...

I'm going to open another ticket for this.  It works flawlessly on a new RedHat installation, so what is preventing this one from working?

The new case is here:

http://www.experts-exchange.com/OS/Linux/Q_22465459.html
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 18773562
> Fedora Core 6 (which has a newer Kernel than RH Ent WS4 U4) uses:
> * lfs1:/home /home:&
Mmm, I will try it on RHEL5 (based on FC6) to see if there is issue over there or not.
0
 
LVL 1

Author Comment

by:gerhardub
ID: 18775137
When I say "new" installation, I mean taking that last release of RH 4 Wks Ent U4 and isntalling that freash.  I then use one of the RH systems for the NFS server, and connect to it with the other.

Since I'm going from Fedora Core 6 (32bit) to RH 4 U4 (x86_64), I wonder if there is an incompatibility?

I wonder if they support the same versions of NFS, etc...
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
linux SFTP 8 80
Intel fortran compiler (ifort) 5 60
error while installing php56 in redhat enterprise linux 20 78
pvcreate issue 5 41
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question