Project

General

Profile

Bug #8551

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

Added by Dan Mick about 3 years ago. Updated 2 months ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Start date:
06/05/2014
Due date:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

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)

History

#1 Updated by Sage Weil 2 months ago

  • Status changed from New to Resolved

#2 Updated by Dan Mick 2 months ago

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

Also available in: Atom PDF