Skip to content

Commit

Permalink
Merge pull request ceph#10809 from SUSE/wip-17091
Browse files Browse the repository at this point in the history
ceph-osd-prestart.sh: check existence of OSD data directory

Reviewed-by: David Disseldorp <[email protected]>
Reviewed-by: Boris Ranto <[email protected]>
Reviewed-by: Ken Dreyer <[email protected]>
  • Loading branch information
ktdreyer committed Aug 22, 2016
2 parents 23eeb74 + d6ffa77 commit 0d34274
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 0d34274

Please sign in to comment.