Skip to contentSkip to conversation

/etc/init.d/ceph script will restart stop start the daemon twice

DISCUSSION huangjun 2 participants 2 messages Aug 7, 2013

lore
Share & tools
lore

huangjun

author
#0 lore raw

hi,
we use the ceph 0.613, write all the and when operate(restart|start|stop) the cluster daemon(osd|mds|mon), it will excecute the operation twice.
from the code init-ceph.in:
get_localname_list
get_name_list "$@"
for name in $what; do
.....
done
so the result $what will include twice the local daemons, shall we only use the get_name_list? what's get_localname_list do here?

thanks!
huangjun

#1 lore raw
Quoted 4 lines · huangjun

hi,
we use the ceph 0.613, write all the and when operate(restart|start|stop) the cluster daemon(osd|mds|mon), it will excecute the operation twice.

Quoted 8 lines

from the code init-ceph.in:
get_localname_list
get_name_list "$@"
for name in $what; do
.....
done
so the result $what will include twice the local daemons, shall we only use the get_name_list? what's get_localname_list do here?

It sounds like you have the osds listed in ceph.conf (with a host = ... line) *and* have touched /var/lib/ceph/osd/*/sysvinit ? You should only do one or the other.. preferably touching the sysvinit file so that ceph.conf is simple (this is what ceph-deploy does).

sage