LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2014, 01:03 AM   #1
chem_surajit
LQ Newbie
 
Registered: Nov 2014
Posts: 2

Rep: Reputation: Disabled
autofs mount under /home/nfs


Hi,

I have a linux server with CentOS 6.2 and a linux client CentOS 5.6. I want to mount server:/home/nfs/$users on client:/home/nfs. I have the line in /etc/exports of the server:

/home/nfs client(rw,no_root_squash)

In the client, I have added the line to /etc/auto.master:

/home /etc/auto.home --timeout 60

and

nfs -rw,soft,intr server:/home/nfs

in the /etc/auto.home file.

Now, when I am mounting it in the client, the documents under /home/$user in the client machines are gone.

Now my question is how can I mount the server:/home/nfs/$user under /home/nfs in the client machine without unmounting the client's /home/$user by autofs?

Please help
 
Old 11-12-2014, 07:22 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
how can I mount the server:/home/nfs/$user under /home/nfs in the client machine without unmounting the client's /home/$user
I'd guess you'll need a file server,a SAN or a NAS. You need the software to work around that locking problem you appear to be encountering.
 
1 members found this post helpful.
Old 11-17-2014, 11:48 PM   #3
chem_surajit
LQ Newbie
 
Registered: Nov 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi dijetlo,

Thanks for your suggestions.

Actually I did install the autofs, nfs correctly in the server and the clients. But, when I mount
a subdirectory inside /home (/home/nfs/*) of the server from the client over network, only the network mounted
directories (i.e., the /home/nfs/*) of the server were visible and the client's /home/$user directories were gone.

Then, I checked with df -h, it didn't show the line correspond to the /home directory in the client.

This problem were not happening when I used /etc/fstab.

So, how can I mount the this /home/nfs/* directory of the server into the client machine without losing
the client /home/* directories?

Thanks in advance,

Last edited by chem_surajit; 12-01-2014 at 12:27 AM.
 
  


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 mount nfs using automounter(autofs) nokia3310 Linux - Newbie 1 05-02-2013 04:22 AM
[SOLVED] NFS + autofs /home mount stubbornly mounting as "nobody" ellakano Linux - Server 12 02-12-2013 04:34 PM
NFS mount over ssh using autofs ciphyre Linux - Server 0 11-25-2008 01:08 PM
autofs nfs mounting home directories question extendedping Linux - Networking 3 01-30-2008 03:02 PM
NIS, NFS, autofs and /home folder question ramram29 Linux - Networking 2 08-25-2006 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:05 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration