Project

General

Profile

Feature #41777

ceph-osd does not start correctly OSDs if journal are directly-linked partition

Added by Marco Gaiarin almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
OSD
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

I know that mine is a corner case, but...

I've setup a little ceph cluster (PVE based), where journal devices are shared (partition on) system (OS) disks; servers are old, so system/boot disk are DOS (non-GPT), and so journal partition are DOS too.

In boot phase, ceph-osd relay on udev to change (chown) journal partition user to ceph, and udev rules relay on GPT tags, so this schema does not work for non-GPT partition.

I've build a little patch for ceph-osd initialization script, ceph-osd-prestart.sh, that work also for direct-symplinked journal partition. The patch does not disrupt the script, simply add a condition and an action (the chown), and (but i'm a ceph-ignorant!) seems to me it is not dangerous at all.

I hope will be applied upstream. Thanks.

ceph-osd-prestart.sh.patch View (741 Bytes) Marco Gaiarin, 09/11/2019 02:58 PM

History

Also available in: Atom PDF