You can display status information about a specific geo-replication master session, or a particular master-slave session, or all geo-replication sessions, as needed.
To display geo-replication status information
- Display information of all geo-replication sessions using the following command:
# gluster volume geo-replication Volume1 example.com:/data/remote_dir status MASTER SLAVE STATUS ______ ______________________________ ____________ Volume1 root@example.com:/data/remote_dir Starting....
- Display information of a particular master slave session using the following command:
# gluster volume geo-replicationMASTER SLAVEstatusFor example, to display information of Volume1 and example.com:/data/remote_dir# gluster volume geo-replication Volume1 example.com:/data/remote_dir statusThe status of the geo-replication between Volume1 and example.com:/data/remote_dir is displayed. - Display information of all geo-replication sessions belonging to a master
# gluster volume geo-replication MASTER statusFor example, to display information of Volume1# gluster volume geo-replication Volume1 example.com:/data/remote_dir status MASTER SLAVE STATUS ______ ______________________________ ____________ Volume1 ssh://example.com:gluster://127.0.0.1:remove_volume OK Volume1 ssh://example.com:file:///data/remote_dir OK
The status of a session could be one of the following four: - Starting: This is the initial phase of the Geo-replication session; it remains in this state for a minute, to make sure no abnormalities are present.
- OK: The geo-replication session is in a stable state.
- Faulty: The geo-replication session has witnessed some abnormality and the situation has to be investigated further. For further information, see Section 11.7, “Troubleshooting Geo-replication ” section.
- Corrupt: The monitor thread which is monitoring the geo-replication session has died. This situation should not occur normally, if it persists contact Red Hat Support www.redhat.com/support/.