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.
Backport:
hammer,infernalis
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
how about not to remove pid-file,when process exits, becuase the pid-file is important for juding whether osd/mon is running. at the same time, to avoid compelling to write the pid-file when multiple times start up one osd or monitor, lock is recommanded.
- Status changed from New to Fix Under Review
- Has duplicate Bug #13238: duplicate start of ceph-osd daemon added
- Backport set to hammer,infernalis
Will patch be (able to be) backported to 0.80.8?
Will patch be (able to be) backported to 0.80.8?
@Shinobu 0.80.8 is a firefly release, and since firefly is retired, see http://docs.ceph.com/docs/master/releases/ , we are not going to backport to this release.
and yes, it is able to be backported to 0.80.8, but this will not happen in the upstream.
- Status changed from Fix Under Review to Pending Backport
- Assignee set to Kefu Chai
- Copied to Backport #14582: infernalis: pid file that was deleted after ceph restart leads to osd process lose control added
- Copied to Backport #14583: hammer: pid file that was deleted after ceph restart leads to osd process lose control added
- Status changed from Pending Backport to In Progress
- Assignee changed from Kefu Chai to Loïc Dachary
- Has duplicate Bug #14575: daemons leave pid files behind in /home/ubuntu/cephtest added
- Status changed from In Progress to Fix Under Review
- Status changed from Fix Under Review to Resolved
- Status changed from Resolved to Pending Backport
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF