ITEM: V2757L

Moving NetLS server to another subnet


Question:

After moving an existing NetLS server to a new subnet, clients are
unable to request licenses from it.

Response:

ENV:
BOS 3.2.5

DESC:
Customer has recently reconfigured her network, changed the ip address
of her machine and is getting NetLS related rpc errors each time
she tries to compile or use ls_admin.

ACTION:
They've also changed the ethernet subnet that this machine was on.
Using the /etc/ncs/lb_find command, we discovered that this machine
is configured in the default ncs cell.

This problem is caused by the fact that ncs glbd's using the 
default cell will use an IP broadcast to locate peer glbd's. Since
our machine has been moved to a different subnet, it is doubtful
that our old peers will hear the broadcast.

To fix this problem, we must do the following: a) delete the old
glbd database, b) reconfigure the glbd daemon to look at a specific
ip address for a peer, and c) restart everything & make sure it works.

1) Before starting any surgery on the ncs / netls subsystem, it's
   a good idea to stop thier daemons. 

   stopsrc -s netlsd
   stopsrc -s glbd
   stopsrc -s llbd

2) Now lets blow away the glb database and configuration information.
   This is done by removing the following files. Not all of these
   files may be present on your system.

   /etc/ncs/glb.p
   /etc/ncs/glb.e
   /etc/ncs/glb_log
   /etc/ncs/glb_site.txt
   /etc/ncs/glb_obj.txt
   /etc/ncs/glbdbase.dat
   /tmp/llbdbase.dat

3) We now must reconfigure the glbd daemon to poll a specific host
   (on the other net). You can actually provide a list of hosts
   in the glb_site.txt file that will be polled when trying to locate
   other glb's. For the purposes of this example, let's say we're 
   trying to connect with a machine named 'bob.dobbs.com'. First, we
   would create the file /etc/ncs/glb_site.txt and put the single
   line 'ip:bob.dobbs.com' in it. 

   We must now restart the glbd with the options which tell it to
   create a new glb database and synchronize it with bob.dobbs.com.
   Before starting glbd, don't forget to start llbd.

   startsrc -s llbd
   startsrc -s glbd -a "-create -from ip:bob.dobbs.com"
   lssrc -g ncs

4) We're now ready to restart the NetLS daemon:

   startsrc -s netlsd
   lssrc -s netlsd

5) This should be all the configuration required for moving a netlsd
   server to a new subnet. If everything is setup correctly, the 
   /etc/ncs/lb_find utility should be able to find glb's on the 
   distant subnet. 

Horrah! We didn't have to blow away the netls database!

NEXT:
Close Call


Support Line: Moving NetLS server to another subnet ITEM: V2757L
Dated: June 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:34
Comments or suggestions? Contact us