From d2b4a35e75c46ba35aace26f240849731bac7b45 Mon Sep 17 00:00:00 2001 From: Huamin Chen Date: Tue, 12 Sep 2017 17:11:56 -0400 Subject: [PATCH] Ceph: add more debugging to osd Log the filesystem type of directory OSD to help diagnose root cause of OSD failures Change-Id: I8c8de033afeeb7e6e33f88db33dc962d03ed3ba9 Signed-off-by: Huamin Chen --- ceph/templates/bin/_osd_directory.sh.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ceph/templates/bin/_osd_directory.sh.tpl b/ceph/templates/bin/_osd_directory.sh.tpl index c22381614e..1d092e1ac2 100644 --- a/ceph/templates/bin/_osd_directory.sh.tpl +++ b/ceph/templates/bin/_osd_directory.sh.tpl @@ -78,6 +78,9 @@ function osd_directory { OSD_WEIGHT=$(df -P -k $OSD_PATH | tail -1 | awk '{ d= $2/1073741824 ; r = sprintf("%.2f", d); print r }') ceph ${CLI_OPTS} --name=osd.${OSD_ID} --keyring=${OSD_KEYRING} osd crush create-or-move -- ${OSD_ID} ${OSD_WEIGHT} ${CRUSH_LOCATION} fi + # log osd filesystem type + FS_TYPE=`stat --file-system -c "%T" ${OSD_PATH}` + log "OSD $OSD_PATH filesystem type: $FS_TYPE" echo "${CLUSTER}-${OSD_ID}: /usr/bin/ceph-osd ${CLI_OPTS} -f -i ${OSD_ID} --osd-journal ${OSD_J} -k $OSD_KEYRING" | tee -a /etc/forego/${CLUSTER}/Procfile done log "SUCCESS"