Project

General

Profile

Actions

Feature #3101

closed

allow "ceph osd crush set" without overwriting weight

Added by Anonymous over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Monitor
Target version:
% Done:

0%

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

Description

Currently, a ceph-osd coming up gets its weight reset by src/upstart/ceph-osd.conf. This is not good. A node reboot should not override admin decisions about OSD weights.

There should be a way to adjust the OSD location in CRUSH without changing the weight.

Perhaps use a placeholder value like "nochange", "-" or "keep", to signal no change.

Related, why do we need to pass in both name and id?

    ceph \
        --cluster="${cluster:-ceph}" \
        --name="osd.$id" \
        --keyring="/var/lib/ceph/osd/${cluster:-ceph}-$id/keyring" \
        osd crush set \
    -- \
        "$id" "osd.$id" "${weight:-1}" \
    root=default \
...
Actions

Also available in: Atom PDF