SUMMARY: NIS+ replica

From: Marita Maestrelli (
Date: Wed Sep 22 1999 - 17:50:37 CDT


We have to install the patch-id 103187-42 to remove a NIS+ replica.
NIS+ is very bad.
Thanks to all.

Some answers:

Date: Wed, 22 Sep 1999 11:28:32 -0400 (EDT)
From: Fabiola Silvia Caceres <>
To: Marita Maestrelli <>
Subject: Re: NIS+ replica

1. Log in as root on the root master.
2. nisrmdir -f -s replica_name
3. nisrmdir -f -s replica_name
4. nisrmdir -f -s replica_name
5. log in as root on the replica server
6. kill rpc.nisd and nis_cachemgr
7. cd /var/nis
8. rm everything except NIS_COLD_START & NIS_SHARED_DIRCACHE
9. start nis_cachemgr

I hope this help:)

Fabiola Dean


Date: Wed, 22 Sep 1999 08:10:27 +0200 (MET DST)
Subject: Re: NIS+ replica
Newsgroups: mail.sun-managers
From: (Willi Burmeister)
X-Newsreader: NN version 6.5.1 (NOV)

In mail.sun-managers you write:

>Anyone known how to remove a Root NIS+ Replica?
>We use Solaris 2.5

on the NIS+ master server do this

# REPLICA=<name of replica>
# DOMAIN=`domainname`

# nisrmdir -s $REPLICA groups_dir.$DOMAIN.
# nisrmdir -s $REPLICA org_dir.$DOMAIN.
# nisrmdir -s $REPLICA $DOMAIN.
# nisupdkeys groups_dir.$DOMAIN.
# nisupdkeys org_dir.$DOMAIN.
# nisupdkeys $DOMAIN.

# nisping -C

If some of the 'nisrmdir' fails try 'nisrmdir -f ...'

After that you have to kill rpc.nisd on the replica server



Subject: RE: NIS+ replica
Date: Wed, 22 Sep 1999 14:39:06 +1000
X-Mailer: Internet Mail Service (5.5.2448.0)

Hi Marita,

In the following, "nis+domain." represents whatever your nisplus domain is.
Assume you want to remove the replica "bogus". The information below is for
a simple, one level domain. Make sure you do the "nisrmdir" commands on a
replica or the master, and the "rm" commands on "bogus".

On the master or another replica:
        nisrmdir -fs bogus groups_dir.nis+domain.
        nisrmdir -fs bogus org_dir.nis+domain.
        nisrmdir -fs bogus nis+domain.

On "bogus":
        Then in the "/var/nis" directory of "bogus" remove all but the NIS_*
files i.e. remove the "data.dict", "data/" and data.log".

The reboot "bogus" and all should be well.

Cheers, Jeff

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:26 CDT