Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Synchronize NIM Master with Alternate Backup NIM

Status
Not open for further replies.

reneford

Programmer
Dec 16, 2004
149
CA
When I do this command: nim -o sync -a force=yes hostname2

I have this error:

0042-001 nim: processing error encountered on "master":
0042-006 m_sync: (From_Master) connect A remote host refused an attempted con
nect operation.

nconn: connect() failed, errno is 79
hostname2: A remote host refused an attempted connect operation.
-+------+-

I am able to do rsh between these 2 servers (Master + Alternate), but this command fail.

Is there something else that I forget.

Thank you for all response.
 
What's the connection method?

What's the output of:

lsnim -l hostname2


Regards,
Chuck
 
# lsnim -l d01x21
d01x21:
class = machines
type = alternate_master
connect = nimsh
sync_required = yes
platform = chrp
netboot_kernel = mp
if1 = net_172_18_225 d01x21 00025576F0A2 ent0
cable_type1 = N/A
Cstate = ready for a NIM operation
prev_state = not running
Mstate = currently running
cpuid = 0007AA5A4C00
 
But, i did not configure nimsh.

Why is it set like this? All my client were set to connect=shell.

 
Can't answer why this was setup like this, but this is part of the issue. Either change this connection method back to shell for this client or start using nimsh as your connection method. The latter requires a little (not a whole lot) setup on the NIM server too.

The simplest for the time being might be just to change this back. Easiest way is remove /etc/niminfo on d01x21 and then run the following on that server as root:

Code:
niminit -a name=[b]d01x21[/b] -a master=[b]<NIM_server>[/b] -a connect=[b]shell[/b]

This will recreate the niminfo file on the client using the shell connection method.

Regards,
Chuck
 
Here is the error I had:

niminit -a name=d01x21 -a master=d01x20 -a connect=shell
0042-376 niminit: This command cannot be executed on a NIM master
unless the "is_alternate" attribute is specified.

I notice that the /etc/niminfo file was neither on the alternate-master nor on the master. I suppose that because the sync fail, it delete my /etc/niminfo.

I don't understand what happened.

Any clue?

How can i recreate the /etc/niminfo on the master?
 
That command is for NIM clients. Sorry, re-read your post.

To rebuild the /etc/niminfo on a NIM server, use the following:

Code:
nimconfig -r

Regards,
Chuck
 
Correction -

Just re-re-read your post and it looks as though you will need to use the following:

Code:
niminit -a name=d01x21 -a master=<NIM_server> -a connect=shell -a is_alternate=yes

I need some more coffee...[morning]

Regards,
Chuck
 
Thank you very much for your help.

I now have a problem of synchronization. I am not able to synchronize on the primary nim master... Here is the error:

0042-001 nim: processing error encountered on "master":
0042-001 m_sync: processing error encountered on "d01x21":
0042-028 c_sync: "nim_name" cannot be used for this operation

----

Primary NIM Master
(/etc/niminfo)

export NIM_NAME=master
export NIM_HOSTNAME=abcx20
export NIM_CONFIGURATION=master
export NIM_MASTER_HOSTNAME=abcx20
export NIM_MASTER_PORT=1058
export NIM_REGISTRATION_PORT=1059
export NIM_BOS_IMAGE=/SPOT/usr/sys/inst.images/installp/ppc/bos
export NIM_BOS_FORMAT=rte
export NIM_HOSTS=" 172.18.3.6:abcx20 "
export NIM_MOUNTS=""
export ROUTES=" default:0:172.18.3.5 "

# lsnim -c machines
master machines master
d01x21 machines alternate_master

#lsnim -l master | grep alternate
is_alternate = yes

----

Alternate NIM MASTER
(etc/niminfo)

export NIM_NAME=master
export NIM_HOSTNAME=d01x21
export NIM_CONFIGURATION=master
export NIM_MASTER_HOSTNAME=d01x21
export NIM_MASTER_PORT=1058
export NIM_REGISTRATION_PORT=1059
export NIM_BOS_IMAGE=/SPOT/usr/sys/inst.images/installp/ppc/bos
export NIM_BOS_FORMAT=rte
export NIM_HOSTS=" 172.18.5.1:d01x21 "
export NIM_MOUNTS=""
export ROUTES=" default:0:172.18.5.5 "
export NIM_ALTERNATE_MASTER=abcx20
 
I think that NIMSH is required for an alternate nim master... I check this and I will post the result...
 
Forget about configuring NIMSH...

Still have this problem and really don't understand...

0042-001 nim: processing error encountered on "master":
0042-001 m_sync: processing error encountered on "d01x21":
0042-028 c_sync: "nim_name" cannot be used for this operation


Any help will be appreciate... ;o)
 
Have you solved this problem yet - have the same problem and would be interested in the solution.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top