Bug #11693
Updated by Kefu Chai almost 9 years ago
If osd.5 is already up and running, following command will try to start osd.5 again. <pre> /usr/bin/ceph-osd -i 5 --pid-file /var/run/ceph/osd.5.pid </pre> this command fails, but the pid file for osd.5 is removed [1] after the command returns. so we can not identify the running osd.5 using the pid file any more, hence not able to kill it using its pid. as a result, @test/erasure-code/test-erasure-code.sh@ @test/erasure-code/est-erasure-code.sh@ will leave us with some running OSD daemons after it returns, even if this test passes. --- [1] ceph-osd use @pidfile_write(g_conf)@ to write pid file, use @atexit(pidfile_remove_void)@ to remove the pid file.