11.6. Best Practices

Manually Setting Time
If you have to change the time on your bricks manually, then you must set uniform time on all bricks. This avoids the out-of-time sync issue described in Section 11.2.4, “Setting Up the Environment for Geo-replication”. Setting time backward corrupts the geo-replication index, so the recommended way to set the time manually is:
  1. Stop geo-replication between the master and slave using the following command:
    # gluster volume geo-replication MASTER SLAVE stop
  2. Stop the geo-replication indexing using the following command:
    # gluster volume set MASTER geo-replication.indexing off
  3. Set uniform time on all bricks.
  4. Restart your geo-replication sessions by using the following command:
    # gluster volume geo-replication MASTER SLAVE start
Running Geo-replication commands in one system
It is advisable to run the geo-replication commands in one of the bricks in the trusted storage pool. This is because, the log files for the geo-replication session would be stored in the Server where the Geo-replication start command is initiated. Hence it would be easier to locate the log-files when required.