LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-05-2012, 01:00 PM   #1
Lago
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Rep: Reputation: Disabled
Unable to mount server's home directory on client after reboot using NFS4 on FC16


I have edited fstab file on client and added lines, for booting server home directory

myserver:/home /home nfs4 auto,rw,nodev,sync,_netdev,proto=tcp,retry=10,rs
ize=2048,wsize=2048,hard,intr 0 0

After this when I perform mount /home, i can see user account fro server in client's home directory. But after I reboot the client, there is nothing in the client's home directory?

Can anyone guide me please, what should I do to mount home directory automatically after reboot?

Thanks
 
Old 03-05-2012, 01:18 PM   #2
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Try with IP address
Code:
xxx.xxx.xxx.xxx:/home  /home    nfs          auto,rw            0    0
Make sure that /home is not a mountpoint (i.e. if there's a dedicated partition)
 
Old 03-05-2012, 07:48 PM   #3
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 91
OP already has "auto,rw" in fstab. Maybe this:
myserver:/home /home nfs4 auto,rw,user,exec,dev,suid 0 0
along with his other options. Also OP might want to have a look at /etc/exports on "myserver". Maybe not necessary, but if he wants write permissions it has to be in there. Something like this: (again, on "myserver", /etc/exports)
/home <client hostname>(rw,no_root_squash)
That would give him write permissions. If changes are made to that exports file he must run "exportfs -ra". No need to restart "myserver"'s nfs daemon but the client machine would have to have /home remounted. Hope this helps.
 
Old 03-06-2012, 10:18 AM   #4
Lago
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks a lot guys for your instant responses.

I tried both solution with IP address, and editing exportfs -ra along with changes in exportfs and fstab file. But issue still persists. let me explain what happens even after applying your solutions

When I place these line "myserver:/home /home nfs4 auto,rw,user,exec,dev,suid 0 0" at the end of fstab file and mount the home directory, it only mounts the user's created on client machine in the /home directory. It does not import the user created on server. But if I place these lines at top of fstab file and mount home, I can see users from server is imported in client's home directory. After that when I reboot the client machine, there is nothing in /home of client, not even the users created on client machine. So, I again do just mount /home and I have all user accounts in /home directory again, the ones created on client machine as well as imported from server.

I want that even after reboot, all accounts stay in /home directory and I don't have to mount it again. Is there anything I am missing prior to this step?

I really appreciate your help in this regard.

Thanks
 
Old 03-06-2012, 12:53 PM   #5
Lago
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hey, after some playing around with /etc/fstab file, I kind of resolved this issue, although I am not sure if it is right one. I placed "myserver:/home /home nfs4 auto,rw,user,exec,dev,suid 0 0" at multiple places in /etc/fstab and figured out that it has some kind of conflict with "/dev/mapper/VolGroup-lv_home /home ext4 defaults 1 2" line which also tries to mount on home. I commented out this line, mounted home and restarted the client machine and after reboot all user accounts were present in /home folder, including created on client machine and imported from server.

However now I see extra 100 GB hard disk visible along with other filesystem and when I enter inside it, I see user accounts created only on client machine here also.

Do you guys have any idea what is going on? Why mounting nfs conflicts with mounting /dev/mapper and are there some consequences to it

Thanking you in anticipation
 
Old 03-06-2012, 01:03 PM   #6
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Unless I need to backup an entire volume by doing snapshot I never use LVM.
I asked before if /home was just a mountpoint since I remember a similar issue time ago with separated home partition.
Extra 100GB are there since you disabled a VolGroup of LVM. It's not safe since you cannot access data already saved there if the VolGroup is not mounted.
Some distro automatically create LVM without asking during installation and even when it asks, well, most of us are from "Next Generation": a generation that usually click on "Next" without read a thing! >.<

Last edited by Slackyman; 03-06-2012 at 01:05 PM.
 
Old 03-07-2012, 10:49 AM   #7
Lago
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Smile

Yes, you were right Slackyman. I were instructed to use LVM, but I think we need to reconsider this now. Anyways thank you very much for your help
 
  


Reply



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
[SOLVED] Fedora 16 unable to NFS4 mount on client geoffleach Fedora 15 01-05-2012 03:57 PM
nfs4 - mount.nfs4: access denied by server while mounting edwin11 Linux - Networking 1 12-07-2010 10:06 AM
NFS4 home directory is not mounted with ksu mesh2005 Linux - Software 0 01-08-2008 02:31 AM
unable to Mount server home directory to clients abhishek124 Linux - Networking 1 06-24-2005 02:44 AM
unable to mount /home dir in a client machine abhishek124 Linux - Networking 18 06-06-2005 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:35 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
Open Source Consulting | Domain Registration