LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Mounting /home across several SuSE machines (https://www.linuxquestions.org/questions/suse-opensuse-60/mounting-home-across-several-suse-machines-411990/)

drjam05 02-05-2006 04:24 PM

Mounting /home across several SuSE machines
 
One thing I am learning about Linux in general is that something that sounds like it would be easy to do is actually complicated for the Windows server "brainwashed" admin that I am...with that said. Can someone walk me through mounting the /home directory on Server A from Server B. Also I want to stick this in some boot file so that when it Server B boots up it will magically attach itself to Server A. Man I hope this makes sense to someone I gotta hustle!

-DR.JaM

tangle 02-05-2006 04:37 PM

I would say use NFS to do it. This is off the top of my head. I did find a couple helpful links, http://nfs.sourceforge.net/nfs-howto/client.html and http://nfs.sourceforge.net/ .

ServerA would need it's /etc/exports file to look something like this.

/home 192.168.0.0/255.255.255.0(rw,sync,no_root_sqash)

This sets up the share. /home is the name of the directory you want to share. 192.168.0.0/255.255.255.0 allows all clients on the 192.168.0.0 network to connect to it (you could just put the IP address of serverb). The stuff in the brakcets is pretty self expanitory. The no_root_sqash allow root to mount it from serverb.


On ServerB, you need the /etc/fstab to look like this. This should be pretty self explanitory.
servera.foo.com:/home /home nfs rw 0 0

I am not sure what distro you are using. But on the serverb make sure the rcp.portmap service is running.

Also, read up on NFS security. This is what I use for my lan at home. I not really sure it is really secure.


All times are GMT -5. The time now is 02:27 AM.