Summary: NIS+ Removing Non-Root Master

From: McGuire, Daniel C <daniel.c.mcguire_at_lmco.com>
Date: Thu Mar 07 2002 - 21:40:48 EST
The procedure below ended up working to remove the non-root master.

I believe my original problem was that the 3rd nisrmdir was performed
before the others which cause problems.  After a few reboots we were
finally able to remove the non-root master domain.

thx

-----Original Message-----

Subject: Re: NIS+ Removing Non-Root Master


Daniel,

Doesn't "nisgrpadm -r" work even on "masters"? I know that when I had to
remove 
a 'replica' I would first remove its directories (org_dir; groups_dir) with
the 
"nisrmdir" command. If you use FNS, don't forget to check for a "ctx_dir" as

well. Also, the domain object (domainname.) should be the last one to be
removed 
and don't forget to include that last "dot"

Rootmaster# /usr/bin/nisrmdir -f -s <replica> org_dir.domainname. 
Rootmaster# /usr/bin/nisrmdir -f -s <replica> groups_dir.domainname. 
Rootmaster# /usr/bin/nisrmdir -f -s <replica> domainname. 
  
   Note: Use ending dots and do the domainname last. 
   
Next perform the following commands on the replica. 
     Replica# rm -rf /var/nis/* 
     Replica# rm /etc/.rootkey 
     Replica# rm /etc/defaultdomain 
     Replica# cp /etc/nsswitch.files /etc/nsswitch.conf 
     Replica# kill <PID_of_rpc.nisd> 
     Replica# kill <PID_of_nis_cachemgr> 
     
Like I said, I've never tried this on a "non-root" master but it sounds like

NIS+ should see it as a "replica", at least for removing it from the 
tablespaces.

cheers,
-deb
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Mar 7 20:41:11 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:36 EST