Project

General

Profile

Actions

Bug #6699

closed

sysvinit script setting incorrect OSD weights

Added by Jan Harkes over 10 years ago. Updated over 10 years ago.

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

0%

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

Description

I noticed that the sysvinit script on a RHEL6.4 system was giving more weight to disks that were fuller. This is caused by a long mountpoint name that is causing the df output to wrap across 2 lines.

# df /var/lib/ceph/osd/ceph-0/.                              
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/c772ad3e-6d8e-472c-837c-251041c21956  
                     3904061756  18947308 3885114448   1% /var/lib/ceph/osd/ceph-0

As a result the init script uses 'Used' blocks instead of '1K-blocks' as the value in the reweight calculation.

ceph version 0.67.4 (ad85b8bfafea6232d64cb7ba76a8b6e8252fa0c7)

Actions #1

Updated by Jan Harkes over 10 years ago

Changing 'df' to 'df -P' in the ceph sysvinit script fixes the issue, not sure how portable this flag is.

Actions #2

Updated by Sage Weil over 10 years ago

  • Status changed from New to Fix Under Review

if it works on rhel and ubuntu, that is good enough for now. will push to next.

Actions #3

Updated by Sage Weil over 10 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF