microceph icon indicating copy to clipboard operation
microceph copied to clipboard

`microceph disk list` shows un-supported disks as well

Open UtkarshBhatthere opened this issue 2 years ago • 1 comments

Suggestion to only show OSD supported disk types in the output of disk list command.

# sudo microceph disk list
Disks configured in MicroCeph:
+-----+-----------------------+--------------------------------------------------------+
| OSD |       LOCATION        |                          PATH                          |
+-----+-----------------------+--------------------------------------------------------+
| 0   | ubuntu-ceph-03N4-KKJ8 | /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_lxd_vol--ADPL |
+-----+-----------------------+--------------------------------------------------------+
| 1   | ubuntu-ceph-03N4-KKJ8 | /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_lxd_vol--R592 |
+-----+-----------------------+--------------------------------------------------------+
| 2   | ubuntu-ceph-03N4-KKJ8 | /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_lxd_vol--WDXG |
+-----+-----------------------+--------------------------------------------------------+

Available unpartitioned disks on this system:
+-------------+-----------+-------+---------------------------------------------------+
|    MODEL    | CAPACITY  | TYPE  |                       PATH                        |
+-------------+-----------+-------+---------------------------------------------------+
| QEMU CD-ROM | 368.00KiB | cdrom | /dev/disk/by-id/scsi-0QEMU_QEMU_CD-ROM_lxd_config |
+-------------+-----------+-------+---------------------------------------------------+

UtkarshBhatthere avatar Oct 17 '23 12:10 UtkarshBhatthere

This should be fixed now that we've imposed a 2GB threshold for storage devices to be listed.

UtkarshBhatthere avatar Jan 31 '24 22:01 UtkarshBhatthere