On 'service ceph start' or 'service ceph start osd' or start ceph-osd-all
we should activate any osd GPT partitions.
Signed-off-by: Sage Weil <sage@inktank.com>
esac
done
+# activate latent osds?
+if [ "$command" = "start" ]; then
+ if [ "$*" = "" ] || echo $* | grep -q ^osd\$ ; then
+ ceph-disk activate-all
+ fi
+fi
+
exit $EXIT_STATUS
script
set -e
+
+ # first activate any partitions
+ ceph-disk activate-all
+
# TODO what's the valid charset for cluster names and osd ids?
find /var/lib/ceph/osd/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[A-Za-z0-9]+-[A-Za-z0-9._-]+' -printf '%P\n' \
| while read f; do