Project

General

Profile

Actions

Bug #14026

closed

OSD utilization is abnormal after data disk lost

Added by chuanhong wang over 8 years ago. Updated about 8 years ago.

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

0%

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

Description

environment: centos7 + ceph-0.94.5
problem: if plug out the data disk, or remove the data directory of a osd, its ubilization may be abnormal. For example, osd.0 and osd.1 stored their data in directories and these directories are removed, then the "USE" of osd.0 became 11E, more than its "SIZE" and the size of system disk.
[root@node156 ~]# ceph osd df tree
ID WEIGHT REWEIGHT SIZE USE AVAIL USE VAR TYPE NAME
-1 0.79999 - 0 0 0 0 0 root default
-2 0.79999 - 3827M 7E 862T 671639273472.00 1.00 host ceph156
0 0.39999 1.00000 1913M 11E 472T 671162761216.00 1.00 osd.0
1 0.39999 1.00000 1913M 11E 390T 672115720192.00 1.00 osd.1
-3 0 - 0 0 0 0 0 host node156
TOTAL 3827M 7E 862T 671639273472.00
lrwxrwxrwx. 1 root root 14 Nov 18 19:16 /var/lib/ceph/osd/ceph-0 -> /home/djy/osd0
[root@node156 ~]# ll /var/lib/ceph/osd/ceph-1
lrwxrwxrwx. 1 root root 14 Nov 18 19:16 /var/lib/ceph/osd/ceph-1 -> /home/djy/osd1
[root@ceph156 ~]# df -h
Filesystem Size Used Avail Use
Mounted on
/dev/mapper/centos-root 50G 49G 1013M 99% /
devtmpfs 928M 0 928M 0% /dev
tmpfs 937M 140K 937M 1% /dev/shm
tmpfs 937M 108M 830M 12% /run
tmpfs 937M 0 937M 0% /sys/fs/cgroup
/dev/sda1 497M 119M 378M 24% /boot
/dev/mapper/centos-home 412G 401M 411G 1% /home

Actions #1

Updated by chuanhong wang over 8 years ago

in function "OSDService::update_osd_stat", local variable "stbuf"" isn't initialized and it's still used to
update the utilization of OSD.

https://github.com/ceph/ceph/pull/6869

Actions #2

Updated by Kefu Chai over 8 years ago

  • Status changed from New to Fix Under Review
Actions #3

Updated by Sage Weil about 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF