mirror of https://github.com/ceph/ceph-ansible.git
defaults: add useful info if daemon are not restarted properly
If OSDs don't restart normally we now also dump info of the crush map, crush rules, crush tree and pools. If the monitors don't restart normally we also print the socket status by calling mon_status and quorum_status. Signed-off-by: Sébastien Han <seb@redhat.com>pull/2450/head
parent
3a9d0c5535
commit
18402b636f
|
@ -20,6 +20,9 @@ done
|
|||
echo "Error with quorum."
|
||||
echo "cluster status:"
|
||||
$DOCKER_EXEC ceph --cluster {{ cluster }} -s
|
||||
echo "quorum status:"
|
||||
$DOCKER_EXEC ceph --cluster {{ cluster }} daemon mon.${MONITOR_NAME} mon_status
|
||||
$DOCKER_EXEC ceph --cluster {{ cluster }} daemon mon.${MONITOR_NAME} quorum_status
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
|
|
@ -21,6 +21,9 @@ check_pgs() {
|
|||
echo "It is possible that the cluster has less OSDs than the replica configuration"
|
||||
echo "Will refuse to continue"
|
||||
$docker_exec ceph $CEPH_CLI -s
|
||||
$docker_exec ceph $CEPH_CLI osd dump
|
||||
$docker_exec ceph $CEPH_CLI osd tree
|
||||
$docker_exec ceph $CEPH_CLI osd crush rule dump
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue