1848394 Members
2928 Online
104026 Solutions
New Discussion

NIS home directory Data

 
Vanita_1
Occasional Contributor

NIS home directory Data

Hi,

We have NIS server here and Home directory is placed in local server. and now number of users are increased to we are facing problem of space. We have data storage now..so we would like to move /home/nis to netapp server. Can somebody guide me how to do that step by step?
1 REPLY 1
Mark Ellzey
Valued Contributor

Re: NIS home directory Data

Vanita,

I doubt I can give you a step-by-step procedure because all systems are different.

I my case, I did just what you describe by mounting the netapp volume that I configured for user directories on the NIS server containing the existing user directories. I then wrote a small script that would copy the existing directories to the new NFS-mounted netapp volume.

When that was complete, I changed the /etc/auto.home file to reflect the new location of the home directories. Lastly, on the server, stop and restart the NIS and NFS server daemons. You will have to stop and start them in order (i.e. stop NFS, then NIS - start NIS, then NFS).

Your client machines will have to either be rebooted, or do the same stop/start sequence of the NIS/NFS daemons as shown above, this time using the client daemons, rather than the server daemons. If at all possible, I prefer the reboot method.

Actually, my procedure was much more involved because I was implementing a new NIS domain on a new NIS master and slave. As a result, I had to also change the NIS domain on all the client machines as well. I ran my copy script every night via cron and changed over a few machines each morning, excluding the users that I changed over from the next night's script run. Eventually, I got them all done.

Regards,
Mark