Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sharing /home via nfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mlybarger
Guru
Guru


Joined: 04 Sep 2002
Posts: 475

PostPosted: Tue Sep 24, 2002 11:41 am    Post subject: sharing /home via nfs Reply with quote

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
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Tue Sep 24, 2002 12:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Sep 24, 2002 1:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Tue Sep 24, 2002 8:08 pm    Post subject: Reply with quote

instead of defaults you want "rsize=8192,wsize=8192" .. this can speed up nfs quite a bit ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum