Skip to content

Can NDM filter disk by size? #697

@AmazingPangWei

Description

@AmazingPangWei

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions