RyanSD
asked on
Mounting home directory
Hello,
Can I mount a user home directory (/home/username) from one system to (/home/username) another system by putting entry in /etc/vfstab like :
systemA:/home/username - /home/username nfs - yes rw
where username directory is already created?
If so, does it effect other users' home directory (on the second system) that mounted from NIS master server?
Also, does the (second) machine need to be restarted? If not, what command needs to be run to have the mounted point working?
Thanks in advance for your help.
RyanSD
Can I mount a user home directory (/home/username) from one system to (/home/username) another system by putting entry in /etc/vfstab like :
systemA:/home/username - /home/username nfs - yes rw
where username directory is already created?
If so, does it effect other users' home directory (on the second system) that mounted from NIS master server?
Also, does the (second) machine need to be restarted? If not, what command needs to be run to have the mounted point working?
Thanks in advance for your help.
RyanSD
If I'm interpreting you correctly, then no, you can't have two subdirs in a directory with identical names. You could mount the second one as a name-variation (/home/username-NFS) or something like that. Or have /home/remote and mount the remote userdirs there instead of /home
ASKER
Hi PsiCop,
I forgot to mention this: There is no home directory for this user on the NIS master server. In fact, the auto_home file set this user's home directory to the server that I want to mount to. Let me put it this way:
A is NIS master server
B is server that has user (called X) home directory reside on (the auto_home file of A has X home directory on B)
C is workstation that I want to mount the home directory from B. Since C is part of NIS, other users (but X) can log on C with home directory reside on A. B is also part of NIS
Please let me know if this is still not clear.
Thanks so much.
RyanSD
I forgot to mention this: There is no home directory for this user on the NIS master server. In fact, the auto_home file set this user's home directory to the server that I want to mount to. Let me put it this way:
A is NIS master server
B is server that has user (called X) home directory reside on (the auto_home file of A has X home directory on B)
C is workstation that I want to mount the home directory from B. Since C is part of NIS, other users (but X) can log on C with home directory reside on A. B is also part of NIS
Please let me know if this is still not clear.
Thanks so much.
RyanSD
What you would normally do is put the home directories in here:
/export/home
You would then share out /export/home
On each machine (including the server) you would mount server:/export/home as /home
This enables you to put the mount into an automount map and have a common map for all machines.
If you had different home directories on different servers, you could then put entries like this into the automount map:
fred server1:/export/home/fred
arnie server2:/export/home/arnie
All your user passwd entries would be in the form:
/home/fred
Does this make sense.
/export/home
You would then share out /export/home
On each machine (including the server) you would mount server:/export/home as /home
This enables you to put the mount into an automount map and have a common map for all machines.
If you had different home directories on different servers, you could then put entries like this into the automount map:
fred server1:/export/home/fred
arnie server2:/export/home/arnie
All your user passwd entries would be in the form:
/home/fred
Does this make sense.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The most appropriate solution, in and NIS/NIS+ enviornment using the automounter, is to add:
username systemA:/home/username
to the auto_home data on the NIS/NIS+ server.
While one could mount that NFS share elsewhere on the the system you can't have it appear in /home/username without including it in the auto home map/table.
username systemA:/home/username
to the auto_home data on the NIS/NIS+ server.
While one could mount that NFS share elsewhere on the the system you can't have it appear in /home/username without including it in the auto home map/table.
ASKER
Sorry for getting back here late due to other ongoing tasks :-). Thank you everyone for your GREAT inputs. I now can mount all the home directories from one server to different workstations.
Server:
Create entries in /etc/dfs/dfstab
share -F nfs -o rw=client1:client2:client3 /export/home
Start NFS daemon:
/etc/init.d/nfs.server stop (just to make sure no nfs will be running)
/etc/init.d/nfs.server start
run this command:
#shareall
On clients:
create entry in /etc/vfstab:
server:/export/home - /home nfs - yes rw,intr
then run this command:
#mountall
DONE!!!!
Best regards,
RyanSD
Server:
Create entries in /etc/dfs/dfstab
share -F nfs -o rw=client1:client2:client3
Start NFS daemon:
/etc/init.d/nfs.server stop (just to make sure no nfs will be running)
/etc/init.d/nfs.server start
run this command:
#shareall
On clients:
create entry in /etc/vfstab:
server:/export/home - /home nfs - yes rw,intr
then run this command:
#mountall
DONE!!!!
Best regards,
RyanSD