Unable to mount server's home directory on client after reboot using NFS4 on FC16
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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?
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
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! >.<
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.