Feature #24871
closedListing disks provisionned by ceph-disk
0%
Description
- 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)
Updated by Sébastien Han over 5 years ago
Alfredo, where is the code that solved this?
Thanks!
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.
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
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.
Updated by Andrew Schoen about 5 years ago
- Status changed from New to In Progress
- Assignee set to Andrew Schoen
Updated by Andrew Schoen about 5 years ago
- Status changed from In Progress to Resolved