Project

General

Profile

Bug #13474

Updated by Loïc Dachary over 8 years ago

Sometimes, ceph daemon cant't be started up, because the service name which allocated by systemd-run was alread used. For details, please find the log below. 
 It seemd that the service name include a prefix, like 'run-', and a process id. If a process exited, its id will be reused, and result in conflicts of service name. 

 <pre> 
 [root@ceph6 ~]#service ceph restart  
 Running as unit run-9539.service. 
 === osd.14 ===  
 === osd.14 ===  
 Stopping Ceph osd.14 on ceph104...kill 14943...kill 14943...done 
 === osd.14 ===  
 libust[10508/10508]: Warning: HOME environment variable not set. Disabling LTTng-UST per-user tracing. (in setup_local_apps() at lttng-ust-comm.c:375) 
 create-or-move updated item name 'osd.14' weight 0.27 at location {host=ceph104,root=default} to crush map 
 Starting Ceph osd.14 on ceph104... 
 Running as unit run-10551.service. 
 Failed start transient unit: Unit run-10551.service already exists. 
 failed: 'systemd-run -r bash -c 'ulimit -n 32768; ulimit -c unlimited; cgexec -g cpuset,memory:osd /usr/bin/ceph-osd -i 14 --pid-file /var/run/ceph/osd.14.pid -c /etc/ceph/ceph.conf --cluster ceph -f'' 
 </pre> 

Back