11.7.2. Rotating Geo-replication Logs

Administrators can rotate the log file of a particular master-slave session, as needed. When you run geo-replication's log-rotate command, the log file is backed up with the current timestamp suffixed to the file name and signal is sent to gsyncd to start logging to a new log file.
To rotate a geo-replication log file
  • Rotate log file for a particular master-slave session using the following command:
    # gluster volume geo-replication master slave log-rotate
    For example, to rotate the log file of master Volume1 and slave example.com:/data/remote_dir :
    # gluster volume geo-replication Volume1 example.com:/data/remote_dir log rotate
    log rotate successful
  • Rotate log file for all sessions for a master volume using the following command:
    # gluster volume geo-replication master log-rotate
    For example, to rotate the log file of master Volume1:
    # gluster volume geo-replication Volume1 log rotate
    log rotate successful
  • Rotate log file for all sessions using the following command:
    # gluster volume geo-replication log-rotate
    For example, to rotate the log file for all sessions:
    # gluster volume geo-replication log rotate
    log rotate successful