Before this patch, the ceph-osd-prestart.sh script would do Upstart-specific
things if the journal device failed to appear after a 5-second timeout.
Fixes: http://tracker.ceph.com/issues/15984
Signed-off-by: Nathan Cutler <ncutler@suse.com>
if [ -L "$journal" -a ! -e "$journal" ]; then
udevadm settle --timeout=5 || :
if [ -L "$journal" -a ! -e "$journal" ]; then
- echo "ceph-osd($UPSTART_INSTANCE): journal not present, not starting yet." 1>&2
- stop
+ echo "ceph-osd(${cluster:-ceph}-$id): journal not present, not starting yet." 1>&2
exit 0
fi
fi
-
# ensure ownership is correct
owner=`stat -c %U $data/.`
if [ $owner != 'ceph' -a $owner != 'root' ]; then