Project

General

Profile

Actions

Feature #24871

closed

Listing disks provisionned by ceph-disk

Added by Anonymous almost 6 years ago. Updated about 5 years ago.

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

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Since the deprecation of ceph-disk in favor of ceph-volume, we need a ceph-volume command that is similar to the old ceph-disk list that would
  • enumerate all devices on the system,
  • perform the in-use check
  • report the device type (journal, block, wal etc..)
  • tell you which ones are available
  • for the ones that are rejected, tell you why
  • consider detected TOBE devices
  • detect & report as much as possible every detected on partially|fully configured devices
  • provide a json output for a better interaction with other tools

A possible implementation could be providing something like 'ceph-volume list-devices'

(This is all coming from https://github.com/ceph/ceph/pull/22905)

Actions #2

Updated by Alfredo Deza over 5 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Sébastien Han over 5 years ago

Alfredo, where is the code that solved this?
Thanks!

Actions #4

Updated by Sébastien Han over 5 years ago

  • Status changed from Resolved to New

Setting this back to New since there is no trace of PR fixing this.

Actions #5

Updated by Alfredo Deza over 5 years ago

  • Status changed from New to Resolved

master PR: https://github.com/ceph/ceph/pull/24859
mimic PR:https://github.com/ceph/ceph/pull/25013
luminous PR: https://github.com/ceph/ceph/pull/25014

Actions #6

Updated by Sébastien Han over 5 years ago

  • Status changed from Resolved to New

This is definitely not resolved, neither the 'inventory' command nor the 'lvm list' command are able to tell if the existing device is a ceph-disk osd. See the following, where /dev/sdd is a ceph-disk osd:

$ sudo ceph-disk list /dev/sdd
/dev/sdd :
 /dev/sdd1 ceph data, prepared, unknown cluster a4a33288-6aa9-443d-a1aa-aa0fa655a057, block /dev/sdd2
 /dev/sdd2 ceph block, for /dev/sdd1

Now testing with `ceph-volume lvm list`:

$ sudo ceph-volume lvm list /dev/sdd
No valid Ceph devices found

And eventually with `ceph-volume inventory`:

$ sudo ceph-volume inventory /dev/sdd --format json-pretty
{
    "available": true,
    "lvs": [],
    "path": "/dev/sdd",
    "rejected_reasons": [],
    "sys_api": {
        "human_readable_size": "279.37 GB",
        "locked": 0,
        "model": "LOGICAL VOLUME",
        "nr_requests": "128",
        "partitions": {
            "sdd1": {
                "holders": [],
                "sectors": "204800",
                "sectorsize": 512,
                "size": "100.00 MB",
                "start": "2048" 
            },
            "sdd2": {
                "holders": [],
                "sectors": "585665083",
                "sectorsize": 512,
                "size": "279.27 GB",
                "start": "206848" 
            }
        },
        "path": "/dev/sdd",
        "removable": "0",
        "rev": "8.32",
        "ro": "0",
        "rotational": "1",
        "sas_address": "",
        "sas_device_handle": "",
        "scheduler_mode": "deadline",
        "sectors": 0,
        "sectorsize": "512",
        "size": 299966445568.0,
        "support_discard": "",
        "vendor": "HP" 
    }
}

I'd say it's even worse because of the `inventory` command reports the disk as available. The disk has partitions, This might be a stopped OSD.

Actions #7

Updated by Andrew Schoen about 5 years ago

  • Status changed from New to In Progress
  • Assignee set to Andrew Schoen
Actions #8

Updated by Andrew Schoen about 5 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF