Transferring mastership of a VOB

When you replicate a VOB for the first time, the VOB is mastered by the original replica. You can change the mastership of the VOB using the chmaster command.

About this task

If you must lock the VOB with the -obsolete option, you must do it at the VOB's master replica.

Procedure

  1. At the master replica, enter a chmaster command:
    MINUTEMAN% multitool chmaster sanfran_hub vob:/vobs/dev 
    Changed mastership of versioned object base "/vobs/dev" to "sanfran_hub".
    
  2. At the old master replica, export and send an update packet to the new master replica:
    MINUTEMAN% multitool syncreplica -export -fship sanfran_hub@/vobs/dev
     
    Generating synchronization packet 
    /opt/hcl/ccm/versionvault/shipping/ms_ship/outgoing/sync_boston_hub_2
    0-Sep-02.17.35.45_22513_1
    - shipping order file is 
    /opt/hcl/ccm/versionvault/shipping/ms_ship/outgoing/sh_o_sync_boston_
    hub_20-Sep-02.17.35.45_22513_1
    Attempting to forward/deliver generated packets...
    -- Forwarded/delivered packet 
    /opt/hcl/ccm/versionvault/shipping/ms_ship/outgoing/sync_boston_hub_2
    0-Sep-02.17.35.45_22513_1
    
  3. At the new master replica, import the packet:
    GOLDENGATE% 
    multitool syncreplica –import –receive
    Applied sync. packet 
    /opt/hcl/ccm/versionvault/shipping/ms_ship/incoming/sync_boston_hub_2
    0-Sep-02.17.35.45_22513_1 to VOB /net/goldengate/vobstg/dev.vbs
    
  4. At the new master replica, verify that mastership has been received:
    GOLDENGATEfmt "%n\t%[master]p\n" vob:/vobs/dev
     
    /vobs/dev sanfran_hub@/vobs/dev