Project

General

Profile

Actions

Bug #43068

open

on disk size (81292) does not match object info size (81237)

Added by Xiaoxi Chen over 4 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

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

Description

2019-11-30 18:19:18.041453 osd.40 [ERR] 2.483 shard 40 soid 2:c12d31e6:::10002dececc.00000000:head : candidate size 81292 info size 81237 mismatch
2019-11-30 18:19:18.041456 osd.40 [ERR] 2.483 shard 408 soid 2:c12d31e6:::10002dececc.00000000:head : candidate size 81292 info size 81237 mismatch
2019-11-30 18:19:18.041459 osd.40 [ERR] 2.483 shard 989 soid 2:c12d31e6:::10002dececc.00000000:head : candidate size 81292 info size 81237 mismatch
2019-11-30 18:19:18.041460 osd.40 [ERR] 2.483 soid 2:c12d31e6:::10002dececc.00000000:head : failed to pick suitable object info
2019-11-30 18:19:18.041511 osd.40 [ERR] repair 2.483 2:c12d31e6:::10002dececc.00000000:head : on disk size (81292) does not match object info size (81237) adjusted for ondisk to (81237)
2019-11-30 18:20:44.520814 osd.40 [ERR] 2.483 repair 4 errors, 0 fixed

Though rados get returns an object with 81237, and this object happen to be a cephfs file/object, the inode also suggesting 81237.

I believe we can walk round by put the object back, but want to go deeper why bluestore return wront on disk size.

root@HOST:~# ceph daemon /var/run/ceph/HOST-mds.`hostname -s`.asok dump inode 0x10002dececc
{
    "path": "MASK_OUT",
    "ino": 1099559784140,
    "rdev": 0,
    "ctime": "2019-11-30 08:05:30.682443",
    "btime": "2019-07-23 17:56:02.934971",
    "mode": 33152,
    "uid": 741,
    "gid": 747,
    "nlink": 1,
    "dir_layout": {
        "dir_hash": 0
    },
    "layout": {
        "stripe_unit": 4194304,
        "stripe_count": 1,
        "object_size": 4194304,
        "pool_id": 2,
        "pool_ns": "" 
    },
    "old_pools": [],
    "size": 81237,
root@rnoaz01cephmon01:~# stat ./10002dececc.00000000
  File: './10002dececc.00000000'
  Size: 81237         Blocks: 160        IO Block: 4096   regular file
Device: fd01h/64769d    Inode: 10340       Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-11-30 18:25:17.436609879 -0700
Modify: 2019-11-30 18:25:17.868611056 -0700
Change: 2019-11-30 18:25:17.868611056 -0700
 Birth: -

Files

hexdiff.png (647 KB) hexdiff.png Xiaoxi Chen, 12/01/2019 04:23 PM
Actions

Also available in: Atom PDF