ITEM: U8094

How to move Initial CDS server to another machine


Question:

The customer has AIX 3.2.5 and AIX DCE 1.3 installed on BoxA and
on BoxB.  The Initial CDS server is on BoxA and the customer wants 
to move it to BoxB.  The following directions are strictly for 
use on AIX machines and verified for the above level.

Response:

Step1: Create an additional CDS server on BoxB.

-- Use SMIT or "mkdce cds_second"

Step2: Login to DCE as cell_admin on both machines.

Step3: Verify the directories in CDS.  We will copy all directories from
       BoxA to BoxB.

\# cdsli -dR

Step4: Verify that the additional CDS server is empty on BoxB.

\# cdscp
cdscp> set cdscp preferred clearinghouse /.:/\_ch
cdscp> show dir /.:/*
cdscp> quit

Step5: Replicate all CDS directories to new additional CDS server's (BoxB)
       clearinghouse.

\# for dir in $(cdsli -R); do
> echo "Creating replica for $dir"
> cdscp create replica $dir clear /.:/\_ch
> done

Step6: Verify that the copy worked.  You may have to do multiple
       cdscp show dir and show obj commands to see the entire namespace.
       Or as many as you want until you are comfortable that the copy
       worked.  You should find everything that is listed with a 
       "cdsli -world" command.

\# cdscp 
cdscp> set cdscp preferred clearinghouse /.:/\_ch
cdscp> show dir /.:/*
       .... etc.

Step7: Swap master CDS attributes for all directories from BoxA to BoxB.
       NOTE: this includes the root directory /.:

\# for dir in $(cdsli -R) /.: ; do
> echo "Swapping master CDS attribute for $dir"
> cdscp set dir $dir to new epoch master /.:/\_ch readonly /.:/\_ch
> done

Step8: Verify that the swap worked.  You should see that the master replica
       for everything including the /.: directory is located on BoxB's
       clearinghouse.  You may have to do multiple cdscp show dir commands to
       see the entire namespace. Or as many as you want until you are 
       comfortable that all the swaps worked.

\# cdscp
cdscp> show dir /.:
cdscp> show dir /.:/*
       .... etc.

Step9: At this point everything has been moved to the new CDS server (BoxB).  
       All entries in the CDS server on BoxB are the master replica entries. 
       You have swapped the initial cds server to the additional cds server 
       and vice versa.  Now we must modify the /etc/mkdce.data file to reflect 
       the change.

-- edit the /etc/mkdce.data file on BoxA to change the line
   from   cds_srv     COMPLETE   Initial CDS Server
   to     cds_second  COMPLETE   Additional CDS Server

-- edit the /etc/mkdce.data file on BoxB to change the line
   from   cds_second  COMPLETE   Additional CDS Server
   to     cds_srv     COMPLETE   Initial CDS Server

Step10:Delete the CDS cache on both machines.

-- on both machines
   \# dce.clean cds
   \# cd /var/dce/adm/directory/cds
   \# rm cds_cache.*
   \# rc.dce cds

Step11:It is a good idea to stop and restart DCE on the two machines you have 
       just worked with.  

-- on both machines
   \# dce.clean all
   \# rc.dce all  

Step12:Remove the additional CDS server from BoxA.

-- Be sure that you are logged into DCE as cell_admin.
-- Use SMIT or "rmdce cds_second"
-- Then perform:
   \# dce.clean cds
   \# cd /var/dce/adm/directory/cds
   \# rm cds_cache.*
   \# rc.dce cds


Support Line: How to move Initial CDS server to another machine ITEM: U8094
Dated: May 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:35
Comments or suggestions? Contact us