View previous topic :: View next topic |
Author |
Message |
mlybarger Guru
Joined: 04 Sep 2002 Posts: 475
|
Posted: Tue Sep 24, 2002 11:41 am Post subject: sharing /home via nfs |
|
|
i would like to share my /home directory via nfs . could someone give a quick example of what needs done here? i'm thinking there needs to be something in the /etc/exports file, some kind of /etc/fstab work going on, and making sure some userid's are identical on the boxes.... an example would be nice |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Tue Sep 24, 2002 12:47 pm Post subject: |
|
|
Did you search google? There are quite a few examples out there...
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue Sep 24, 2002 1:06 pm Post subject: |
|
|
In addition to what klieber says above, a very good reference is here. When in doubt about docs, you may want to look at www.tldp.org first.
Exporting home involves something like this:
- sync up the uid's and gid's on the server and client boxes so that you have proper file access rights to the home partition
- add your /home to /etc/exports on the server with something like:
Code: |
/home 192.168.148.2(rw)
|
The IP above can have one of several forms in order to specify ranges, etc.
Start up the server daemons (typically through an init script)
On the client end, add something like this to /etc/fstab:
Code: |
<server>:/home /home nfs defaults 0 0
|
Mount the partition using "mount /home" or start up your client init scripts.
There may be firewall and other access issues that may become relevant when you do this. |
|
Back to top |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Tue Sep 24, 2002 8:08 pm Post subject: |
|
|
instead of defaults you want "rsize=8192,wsize=8192" .. this can speed up nfs quite a bit |
|
Back to top |
|
|
|