Project

General

Profile

Bug #23960

mds: scrub on fresh file system fails

Added by Patrick Donnelly over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Urgent
Category:
fsck/damage handling
Target version:
Start date:
05/01/2018
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:

Description

In a fresh vstart cluster:

$ bin/ceph daemon mds.b scrub_path / force
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
{
    "performed_validation": true,
    "passed_validation": false,
    "backtrace": {
        "checked": true,
        "passed": false,
        "read_ret_val": -61,
        "ondisk_value": "(-1)0x0:[]//",
        "memoryvalue": "(2)0x1:[]//",
        "error_str": "failed to read off disk; see retval" 
    },
    "raw_stats": {
        "checked": true,
        "passed": true,
        "read_ret_val": 0,
        "ondisk_value.dirstat": "f()",
        "ondisk_value.rstat": "n(v0 1=0+1)",
        "memory_value.dirrstat": "f()",
        "memory_value.rstat": "n(v0 1=0+1)",
        "error_str": "" 
    },
    "return_code": -61
}
pdonnell@senta02 ~/ceph/build$ bin/ceph daemon mds.b flush journal
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
{
    "message": "",
    "return_code": 0
}
pdonnell@senta02 ~/ceph/build$ bin/ceph daemon mds.b scrub_path / force
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
{
    "performed_validation": true,
    "passed_validation": false,
    "backtrace": {
        "checked": true,
        "passed": false,
        "read_ret_val": -61,
        "ondisk_value": "(-1)0x0:[]//",
        "memoryvalue": "(2)0x1:[]//",
        "error_str": "failed to read off disk; see retval" 
    },
    "raw_stats": {
        "checked": true,
        "passed": true,
        "read_ret_val": 0,
        "ondisk_value.dirstat": "f()",
        "ondisk_value.rstat": "n(v0 1=0+1)",
        "memory_value.dirrstat": "f()",
        "memory_value.rstat": "n(v0 1=0+1)",
        "error_str": "" 
    },
    "return_code": -61
}

After starting a client and only after creating a sub-dir:

pdonnell@senta02 ~/ceph/build$ bin/ceph daemon mds.b flush journal
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
{
    "message": "",
    "return_code": 0
}
pdonnell@senta02 ~/ceph/build$ bin/ceph daemon mds.b scrub_path / force
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
{
    "performed_validation": true,
    "passed_validation": true,
    "backtrace": {
        "checked": true,
        "passed": true,
        "read_ret_val": 0,
        "ondisk_value": "(2)0x1:[]//",
        "memoryvalue": "(2)0x1:[]//",
        "error_str": "" 
    },
    "raw_stats": {
        "checked": true,
        "passed": true,
        "read_ret_val": 0,
        "ondisk_value.dirstat": "f(v0 m2018-05-01 18:21:09.467047 1=0+1)",
        "ondisk_value.rstat": "n(v0 1=0+1)",
        "memory_value.dirrstat": "f(v0 m2018-05-01 18:21:09.467047 1=0+1)",
        "memory_value.rstat": "n(v0 1=0+1)",
        "error_str": "" 
    },
    "return_code": 0
}

Related issues

Copied to fs - Backport #23984: luminous: mds: scrub on fresh file system fails Resolved

History

#1 Updated by Patrick Donnelly over 1 year ago

  • Status changed from New to In Progress

#2 Updated by Patrick Donnelly over 1 year ago

  • Status changed from In Progress to Pending Backport

#3 Updated by Nathan Cutler over 1 year ago

  • Copied to Backport #23984: luminous: mds: scrub on fresh file system fails added

#4 Updated by Nathan Cutler about 1 year ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF