Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
ceph.401
0022-ceph-osd-prestart.sh-check-OSD-exis.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0022-ceph-osd-prestart.sh-check-OSD-exis.patch of Package ceph.401
From: Owen Synge <osynge@suse.com> Date: Tue, 6 Jan 2015 13:16:22 +0100 Subject: [PATCH] ceph-osd-prestart.sh: check OSD exists. if the directory ${dir_osd-/var/lib/ceph/osd/}/${cluster:-ceph}-${id} does not exist fail with a clear error message. https://bugzilla.suse.com/show_bug.cgi?id=895759 fixes # 895759 Signed-off-by: Owen Synge <osynge@suse.com> (cherry picked from commit 760ec9af0c30700aa16163bd57c73ed5df9960bb) --- src/ceph-osd-prestart.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ceph-osd-prestart.sh b/src/ceph-osd-prestart.sh index 77153c9..1328893 100644 --- a/src/ceph-osd-prestart.sh +++ b/src/ceph-osd-prestart.sh @@ -17,6 +17,12 @@ if [ -z "$id" ]; then exit 1; fi +# Check OSD exists +if [ ! -d ${dir_osd-/var/lib/ceph/osd/}/${cluster:-ceph}-${id} ]; then + echo "ceph cluster '${cluster:-ceph}' does not have OSD '${id}' on this host" + exit 1; +fi + update="$(ceph-conf --cluster=${cluster:-ceph} --name=osd.$id --lookup osd_crush_update_on_start || :)" if [ "${update:-1}" = "1" -o "${update:-1}" = "true" ]; then
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor