Modify AFS7_DATACENTER_NAME - AFS

Install AFS on a Single Server

Product
AFS
AFS_Version
7.9
Platform
RHEL
Category
Technical Notes

When the name of the datacenter entered for the AFS7_DATACENTER_NAME variable has been improperly defined, e.g., different values have been entered in the local.conf file on the server hosting the Indexing environment and the server hosting the Back Office environment.

This procedure reinitializes metrics. Thus some PaF metrics will disappear.

To modify AFS7_DATACENTER_NAME:

  1. On the server hosting the Indexing environment, stop all AFS processes by running the following command:

    As root user

    systemctl stop antidot.target

  2. On the server hosting the Back Office environment, stop all Back Office processes by running the following commands:

    As root user

    /etc/init.d/bo_server stop

  3. On the server hosting the Indexing environment, edit the following file:

    As antidot user

    /usr/local/afs7/setup/local.conf

    and modify the following line:

    export AFS7_DATACENTER_NAME="$NEW_DATACENTER_NAME"

  4. On the server hosting the Back Office environment, remove Magellans collections from antidot-backoffice MongoDB databases by running the following command:

    As root user

    #> mongo
    > use antidot-backoffice
    > db.magellan.component.drop()
    > db.magellan.host.drop()

  5. On the server hosting the Back Office environment, start all Back Office processes by running the following commands:

    As root user

    systemctl start bo-server.service

  6. On the server hosting the Indexing environment, start all AFS processes by running the following command:

    As root user

    systemctl start antidot.target

  7. Reinstall all your PaFs by running the following commands for each PaF:

    As antidot user

    /usr/local/afs7/bin/afs_paf_uninstall -b $PAF_DIRECTORY -s $SERVICE_ID -S $SERVICE_STATUS -f $FEED_NAME
    /usr/local/afs7/bin/afs_paf_install -b $PAF_DIRECTORY -s $SERVICE_ID -S $SERVICE_STATUS -f $FEED_NAME