mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +00:00
ceph-osd-prestart.sh: check existence of OSD data directory
Fixes: http://tracker.ceph.com/issues/17091 Signed-off-by: Nathan Cutler <ncutler@suse.com>
This commit is contained in:
parent
23eeb74405
commit
d6ffa77078
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user