Project

General

Profile

Actions

Bug #8551

closed

init-ceph: small drives can end up with defaultweight = 0.00

Added by Dan Mick almost 10 years ago. Updated about 7 years ago.

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

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

init-ceph calculates the default weight of an OSD with

defaultweight="$(df -P -k $osd_data/. | tail -1 | awk '{ print sprintf("%.2f",$2/1073741824) }')" 

If the drive is small enough, that can result in 0.00; the script should clamp that to 1.00 or something else appropriate.

(discovered by IRC user dennis__, diagnosed by me)

Actions #1

Updated by Sage Weil about 7 years ago

  • Status changed from New to Resolved
Actions #2

Updated by Dan Mick about 7 years ago

sage avers: it's now handled in OSD:: update_crush_location and there is a min of .00001 now

Actions

Also available in: Atom PDF