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 <hchen@redhat.com>
This commit is contained in:
parent
c34247a21b
commit
d2b4a35e75
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user