Link to home
Start Free TrialLog in
Avatar of bjs19
bjs19

asked on

Restoring NIS+ from tape

I managed to really screw up our domain master using pkgrm istead of patchrm. (Yes I am ready to shoot myself). I have to go back to a tape backup of the / filesystem. Is there a way of restoring NIS+ without using the textfile approach? I have all the files on a dump I did of the unoperable filesystem and can easily move them. WOuld it be pssible to replace the NIS+ files with their newer versions?

I'm really need to get this system up and running!

Ray
Avatar of yuzh
yuzh

Do you have a NIS+ replica Server in your Network. If you have one, just make sure that the replica(s) is running while you are fixing up the NIS+ Master Server.

You can restore the NIS+ from the tape backup. (I hope that your NIS+ database is up-to-date in the tape).

Just boot up your system from CD, and restore the files from the tape.

PS: Please remember your NIS+ database is stored in /var/nis !!!

Print a copy of the following NIS+ FAQ, in case you needed.

http://www.eng.auburn.edu/users/rayh/solaris/NIS+_FAQ.html

Good luck!

Cheers!



Avatar of bjs19

ASKER

I don't have a replica NIS+ server.

I do have an up to date NIS+ backup

I have a backup of all the important files. It was mainly device files that became corrupted.

I have  a complete NIS+ backup.
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bjs19

ASKER

Okay,

I have the server up and running. Its an older backup. Evrything is fine except any users that were created since this backup aren't in NIS+. I have a seperate disk that is mounted with all of their home directories. I can find their UIDs and GIDs from the permissions on their home directories. I also have a tape backup of the root filesystem before I dumped the old backup to it. The NIS+ tables are on the tape. Which directories should I dump so I can  restore NIS+

P.S. -- I am definetly going to get some redunancy built into our SOlaris network. Unfortunetly my predeccesor didn't like to do things right. THis is on my list but I'm in the middle of building a win2K domain so i can lock down our PCs. (120 PCs in p2p workgroups is not fun to support)

Thanks so much for your help. I really appreciate it.
Good to hear that your Server is up again, that's fast then I though !!!

To biuld a NIS+ replica only take a few minutes, and it is very straight forward (as show in the FAQ).

I thinks you need to do regular backup. since the NIS+ database is not that big, you can write a script to dump it to a different box, in case you need it.

Cheers!