openebs-archive / node-disk-manager

Kubernetes Storage Device Management
https://openebs.io/docs
Apache License 2.0
182 stars 113 forks source link

Can NDM filter disk by size? #697

Open AmazingPangWei opened 1 year ago

AmazingPangWei commented 1 year ago

Describe the problem/challenge you have

There are some small disks in my servers as shown below:

root@pw1:~# kubectl get blockdevice -n openebs -o wide
NAME                                           NODENAME   PATH        FSTYPE    SIZE      CLAIMSTATE   STATUS     AGE
blockdevice-00b957b76b174b291a1b54f550cd6b3f   pw3        /dev/sda1             1048576   Unclaimed    Active     41m
blockdevice-4b45daa4707f615405b4b89d5f2517d7   pw1        /dev/sdc    iso9660   1048576   Unclaimed    Inactive   41m
blockdevice-89850b655d0bcfad17e66052f6140645   pw2        /dev/sdc    iso9660   1048576   Unclaimed    Inactive   40m
blockdevice-f37242ca8e72c22d565558816dcae6ae   pw3        /dev/sdc    iso9660   1048576   Unclaimed    Inactive   40m

But I want to filter them, because I never use these disks. I didn't find out any docs about how I work out this issue, so I need help.

Describe the solution you'd like

Filter disks by size.