Skip to content

Commit

Permalink
ceph-osd-prestart.sh: check existence of OSD data directory
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/17091
Signed-off-by: Nathan Cutler <[email protected]>
  • Loading branch information
smithfarm committed Aug 22, 2016
1 parent 23eeb74 commit d6ffa77
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ceph-osd-prestart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ if [ -z "$id" ]; then
fi

data="/var/lib/ceph/osd/${cluster:-ceph}-$id"

# assert data directory exists - see http://tracker.ceph.com/issues/17091
if [ ! -d "$data" ]; then
echo "OSD data directory $data does not exist; bailing out." 1>&2
exit 1
fi

journal="$data/journal"

if [ -L "$journal" -a ! -e "$journal" ]; then
Expand Down

0 comments on commit d6ffa77

Please sign in to comment.