Feature #3120
provide command "ceph-disk-list" that lists osd data/journal disks and their state
90%
Description
This should be easy after #3078 and #3079.
Something like
$ sudo ceph-disk-list --help usage: ceph-disk-list [-h] [-v] List Ceph data and journal disks optional arguments: -h, --help show this help message and exit -v, --verbose be more verbose
(imagine /dev/sda as system disk, three osds sharing an ssd for journals, only one running; the prepared journal lines show what disks they'd be paired with, or something)
$ sudo ceph-disk-list data /dev/sdb1 active osd.42 data /dev/sdc1 prepared data /dev/sdd1 prepared journal /dev/sde1 active osd.42 journal /dev/sde2 prepared /dev/sdc1 journal /dev/sde3 prepared /dev/sdd1
History
#1 Updated by Anonymous over 11 years ago
- Description updated (diff)
- Priority changed from Normal to Low
#2 Updated by Anonymous over 11 years ago
- translation missing: en.field_position deleted (
1) - translation missing: en.field_position set to 162
#3 Updated by Sage Weil over 11 years ago
- translation missing: en.field_position deleted (
186) - translation missing: en.field_position set to 1
#4 Updated by Sage Weil about 11 years ago
- translation missing: en.field_position deleted (
19) - translation missing: en.field_position set to 29
#5 Updated by Sage Weil about 11 years ago
- Target version set to v0.61 - Cuttlefish
#6 Updated by Neil Levine about 11 years ago
- Status changed from New to 12
#7 Updated by Ian Colle about 11 years ago
- Status changed from 12 to In Progress
- Assignee set to Sandon Van Ness
#8 Updated by Sandon Van Ness about 11 years ago
- Status changed from In Progress to Fix Under Review
- % Done changed from 0 to 90
Ok I pushed this out to wip-disk-list
I am probably doing some stupid stuff but seems to work ok. Example output:
/dev/sda os mounted
/dev/sdb unformatted unprepared
/dev/sdc1 data active osd.0 xfs Cluster: bc195d57-84b9-4cea-aa90-b28e80e41e44
/dev/sdc2 journal active osd.0 xfs Cluster: bc195d57-84b9-4cea-aa90-b28e80e41e44
/dev/sdd1 data active osd.1 xfs Cluster: bc195d57-84b9-4cea-aa90-b28e80e41e44
/dev/sdd2 journal active osd.1 xfs Cluster: bc195d57-84b9-4cea-aa90-b28e80e41e44
/dev/sde1 formated unprepared xfs
/dev/sdf1 formated unprepared xfs
/dev/sdg unformatted unprepared
/dev/sdh unformatted unprepared
/dev/sdi unformatted unprepared
/dev/sda os mounted
/dev/sdb data active osd.0 xfs Cluster: ceph
/dev/sdc data active osd.1 xfs Cluster: ceph
/dev/sdd data active osd.2 xfs Cluster: ceph
/dev/sde data active osd.3 xfs Cluster: ceph
/dev/sdf data active osd.4 xfs Cluster: ceph
/dev/sdg data active osd.5 xfs Cluster: ceph
/dev/sdh data active osd.6 xfs Cluster: ceph
/dev/sdi journal(s) unprepared
#9 Updated by Sage Weil almost 11 years ago
- Status changed from Fix Under Review to Resolved
#10 Updated by Sage Weil almost 11 years ago
- translation missing: en.field_story_points set to 5.00