Submitted by lucian.lazar on Tue, 04/03/2012 - 17:17
Hi there, it is possible to handle /home directory mounted as a remote NFS share?
I have tried this: -On the same LAN i have setup 2 ubuntu 10 servers, server 1 with virtualmin and server 2 only to act as storage so export NFS shares; -Exported from server2 to server1 as NFS V4 share (no_root_squash,rw) local directory /export/home mounted under /home on server1 (chmod 777)
I am able to read/write manually but from virtualmin (setup to act with SuEXEC and mod_fcgid) i get an UID/GID permission error every time i attempt to create new domain or restore an existing one from archive. It is a way i can setup both NFS V4 server and virtualmin server to work correctly in this scenario? maybe a stept by step guide? Thank you all in advance
Status:
Active
Comments
Submitted by JamieCameron on Tue, 04/03/2012 - 18:58 Comment #1
Yes, it is possible to have /home mounted via NFS. However, there are two catches :
You can't enabled root_squash on the server, or else Virtualmin on the client won't be able to create home directories, as it is done with root permissions.
Quotas almost certainly won't work, as they can't be modifed from an NFS client to the server.
Submitted by lucian.lazar on Wed, 04/04/2012 - 04:21 Comment #2
Thank you, So not enabling no_root_squash on the NFS server means not specify at all this option? In this case virtualmin would try to do a chown user:user on the /home/domain and would not fail? Thank's!
Submitted by JamieCameron on Wed, 04/04/2012 - 13:09 Comment #3
I think you need to have no_root_squash set on the server, or else root on the client system won't be able to create directories.