Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Persistent home directories across computers?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Xamindar
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1155
Location: California

PostPosted: Mon Jan 24, 2011 10:40 pm    Post subject: Persistent home directories across computers? Reply with quote

I'm not sure where to stick this question.

I have 3+ PCs in the house that we use. My wife regularly commandeers my computer so I end up using another. The main problem is all my home directory stuff is different on this computer. I have heard of using nfs network mounts to share the same home on multiple computers and would like to set that up. I have a media/raid/backup server already set up that would work great as the server in the house. But I have the following questions.

1) Can more than one computer be signed into the same username, therefore using the same nfs mount without any conflicts?
2) If I take the laptop away from home is there a way to have all . files or the whole home directory already on my main computer and up to date in that instance? Also in the case of the media server being offline.
3) With my setup, would if even be a better idea to just sync the home directories with something like rsync instead of using nfs mounts?

I would love any feedback from anyone who has done or currently does this.

Are there any good tutorials out there?

Thanks! :o
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Mon Jan 24, 2011 11:00 pm    Post subject: Reply with quote

I don't have a tutorial for you, but nfs mounts is how you usually do this sort of stuff, in companies or universities. There is no problem with multiple logins.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Mon Jan 24, 2011 11:24 pm    Post subject: Reply with quote

Xamindar,

Set up an /etc/exports file on the system where you /home for the other PCs will live.
Create the same users on all systems and be sure the users have identical user IDs, as thats what will be used to identify users over nfs.

On each PC where you want the shared home to be mounted, nfs mount the exported filesystem to /home.
Then it justworks.

Code:
man exports
and
Code:
man mount
under nfs are required reading
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Xamindar
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1155
Location: California

PostPosted: Fri Feb 04, 2011 5:38 am    Post subject: Reply with quote

Thanks for the explanation. I have a few questions that I am having trouble getting answers to.

NeddySeagoon wrote:
Set up an /etc/exports file on the system where you /home for the other PCs will live.
Create the same users on all systems and be sure the users have identical user IDs, as thats what will be used to identify users over nfs.

I started setting nfs up like you mentioned but am having trouble finding an option or way to satisfy my issue on point 2 in my first post. These are laptops that do not have a network connection until I log myself in. As far as I can tell, nfs mounts work just like any other mount. What happens in the cases where the nfs mount can not be accessed?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Fri Feb 04, 2011 10:21 am    Post subject: Reply with quote

Xamindar,

There are two things here. There is an nfs mount option, to background the mount, -o bg I think, so /home will be mounted when the network comes up.

If the network never comes up, then the disk space that /home is nfs mounted over will be visible as /home.
In fact, that space will be /home until the nfs mount suceeds.

I think you are about to suggest you need some syncing between nfs /home and local /home
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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