let RETRIES=RETRIES-1
done
# If we reach this point, it means the socket is not present.
-echo "Socket file ${SOCKET} could not be found, which means the Metadata Server is not running."
+echo "Socket file ${SOCKET} could not be found, which means the Metadata Server is not running. Showing ceph-mds unit logs now:"
+journalctl -u ceph-mds@${MDS_NAME}
exit 1
let RETRIES=RETRIES-1
done
# If we reach this point, it means the socket is not present.
-echo "Socket file ${SOCKET} could not be found, which means ceph manager is not running."
+echo "Socket file ${SOCKET} could not be found, which means ceph manager is not running. Showing ceph-mgr unit logs now:"
+journalctl -u ceph-mgr@${MGR_NAME}
exit 1
let COUNT=COUNT-1
done
# If we reach this point, it means the socket is not present.
-echo "Socket file ${SOCKET} could not be found, which means the monitor is not running."
+echo "Socket file ${SOCKET} could not be found, which means the monitor is not running. Showing ceph-mon unit logs now:"
+journalctl -u ceph-mon@{{ ansible_hostname }}
exit 1
let RETRIES=RETRIES-1
done
# If we reach this point, it means the pid is not present.
-echo "PID file ${PID} could not be found, which means Ganesha is not running."
+echo "PID file ${PID} could not be found, which means Ganesha is not running. Showing $NFS_NAME unit logs now:"
+journalctl -u $NFS_NAME
exit 1
{% else %}
systemctl restart nfs-ganesha
let COUNT=COUNT-1
done
# If we reach this point, it means the socket is not present.
- echo "Socket file ${SOCKET} could not be found, which means the osd daemon is not running."
+ echo "Socket file ${SOCKET} could not be found, which means the osd daemon is not running. Showing ceph-osd unit logs now:"
+ journalctl -u "${unit}"
exit 1
done
let RETRIES=RETRIES-1
done
# If we reach this point, it means the socket is not present.
-echo "Socket file ${SOCKET} could not be found, which means rbd mirror is not running."
+echo "Socket file ${SOCKET} could not be found, which means rbd mirror is not running. Showing ceph-rbd-mirror unit logs now:"
+journalctl -u ceph-rbd-mirror@rbd-mirror.${RBD_MIRROR_NAME}
exit 1
sleep $DELAY
let COUNT=COUNT-1
done
-echo "Socket file ${SOCKET} could not be found, which means Rados Gateway is not running."
+echo "Socket file ${SOCKET} could not be found, which means Rados Gateway is not running. Showing ceph-rgw unit logs now:"
+journalctl -u ceph-radosgw@rgw.${RGW_NAME}
exit 1