Project

General

Profile

Actions

Bug #17889

closed

ceph-disk: ceph-disk@.service races with ceph-osd@.service

Added by Loïc Dachary over 7 years ago. Updated over 7 years ago.

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

0%

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

Description

I don't think there is a safeguard against the following scenario:

a) /dev/sda has lvm partitions for / and /var/lib
b) / is mounted on /dev/mapper/rootvg-vol_root
c) /dev/sdb has an OSD partition
d) udev fires an event on the OSD partition and the OSD fails because /var/lib is not mounted yet and /var/lib/ceph/osd is not found
e) /var/lib is mounted on /dev/mapper/rootvg-vol_lib

The OSD is not mounted and since no other udev event will be fired for /dev/sdb it stays down. Running partprobe /dev/sdb manually will bring the OSD up.


Related issues 4 (0 open4 closed)

Related to Ceph - Bug #17813: ceph-disk: udev permission race with dmResolvedLoïc Dachary11/07/2016

Actions
Has duplicate Ceph - Bug #17077: Fail to automount osd after reboot when the /var Partition is ext4 but success automount when /var Partition is xfsDuplicate08/19/2016

Actions
Has duplicate Ceph - Bug #15559: osds do not start after bootDuplicate04/21/2016

Actions
Copied to Ceph - Backport #18007: jewel: ceph-disk: ceph-disk@.service races with ceph-osd@.serviceResolvedLoïc DacharyActions
Actions

Also available in: Atom PDF