?
Solved

Restoring NIS+ from tape

Posted on 2003-03-19
5
Medium Priority
?
282 Views
Last Modified: 2013-12-27
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
0
Comment
Question by:bjs19
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 8171838
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!



0
 

Author Comment

by:bjs19
ID: 8171859
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.
0
 
LVL 38

Accepted Solution

by:
yuzh earned 1000 total points
ID: 8171933
Ok, in this case, you need to allow some intrruption of the network operations.

If you have a fullsystem backup, restore the  from the system backup (If the user's home is in a seperate partion, leave alone. You  only need to restore the OS partitions, eg, / /usr, /var etc). then restore the NIS+ backup.

In case you don't have a Full system backup. you need to manaully use pkgadd to install the packages you had removed from the Solaris Software CD. then restore NIS+ from backup. To fix up the corrupted device files. you can simply do:
touch /reconfigure
reboot

To force the system recreate the devices files for you.

To might have some trouble after restore NIS+, have a look at the FAQ, you can likely get an answer from the doc.

After you get your server up and rnning, have a think about create a replica NIS+ server, see the FAQ for instructions.

cheers!

0
 

Author Comment

by:bjs19
ID: 8171967
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.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 8172026
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!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month14 days, 6 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question