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-replicationmaster slavelog-rotateFor example, to rotate the log file of masterVolume1and slaveexample.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-replicationmasterlog-rotateFor example, to rotate the log file of masterVolume1:# 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-rotateFor example, to rotate the log file for all sessions:# gluster volume geo-replication log rotate log rotate successful