Project

General

Profile

Actions

Bug #13422

closed

pid file that was deleted after ceph restart leads to osd process lose control

Added by shun song over 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
hammer,infernalis
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

when restarting ceph, the same osd will start twice. the first time is regular start;the other is activated by ceph-disk activated all. if the second startup starts fast enough before the pid file created. Unluckly, only one process can get fsid_lock and live through. then the lose process will delete the pid file when exiting. As a result, this osd may stop unregularlly when using 'service ceph stop osd.{id}'.

resovled method:
locking pid file using file lock


Related issues 4 (0 open4 closed)

Has duplicate Ceph - Bug #13238: duplicate start of ceph-osd daemonDuplicateKefu Chai09/25/2015

Actions
Has duplicate Ceph - Bug #14575: daemons leave pid files behind in /home/ubuntu/cephtestDuplicateLoïc Dachary01/30/2016

Actions
Copied to Ceph - Backport #14582: infernalis: pid file that was deleted after ceph restart leads to osd process lose control RejectedLoïc DacharyActions
Copied to Ceph - Backport #14583: hammer: pid file that was deleted after ceph restart leads to osd process lose control ResolvedKefu ChaiActions
Actions

Also available in: Atom PDF