Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiskPool not extended after extending block device #1631

Open
todeb opened this issue Apr 9, 2024 · 4 comments
Open

DiskPool not extended after extending block device #1631

todeb opened this issue Apr 9, 2024 · 4 comments
Assignees
Labels
Enhancement New feature or request Needs Tracking

Comments

@todeb
Copy link

todeb commented Apr 9, 2024

Describe the bug
after resizing block device the diskpool that uses that block device still reports old size

To Reproduce

gdisk /dev/sdx
...
partprobe -s
cryptsetup resize sdx1 -v  (if you have it encrypted)

Check if mayastor see resized device:

./kubectl-mayastor get block-devices node --all

Check diskpool:

kubectl get diskpool -n mayastor

Expected behavior
Diskpool should be refreshed with new size

Screenshots
If applicable, add screenshots to help explain your problem.

** OS info (please complete the following information):**

  • Distro: Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-101-generic x86_64)
  • Kernel version
  • MayaStor revision or container image: 2.50

Additional context
on my setup I had resized blockdevice from 6GB to 7GB.
7GB is correctly seen by kubectl-mayastore, but the deployed diskpool prior to resizing still reports 6GB.

  • kubectl-mayastor get block-devices
/dev/dm-0     disk       7GiB      no                                   /devices/virtual/block/dm-0                                                                 253     0       <none>             <none>                                <none>           <none>                                    "/dev/mapper/sdc1", "/dev/disk/by-id/dm-uuid-CRYPT-LUKS2-...-sdc1", "/dev/disk/by-id/dm-name-sdc1"
  • kubectl get diskpool -n mayastor -o yaml
kind: DiskPool
  metadata:
    annotations:
      kubectl.kubernetes.io/last-applied-configuration: |
        {"apiVersion":"openebs.io/v1beta1","kind":"DiskPool","metadata":{"annotations":{},"name":"pool1-on-node","namespace":"mayastor"},"spec":{"disks":["/dev/mapper/sdc1"],"node":"node"}}
    creationTimestamp: "2024-04-09T12:08:43Z"
    finalizers:
    - openebs.io/diskpool-protection
    generation: 1
    name: pool1-on-node
    namespace: mayastor
    resourceVersion: "551844739"
    uid: a5a57e78-d473-4c0c-9caa-94d8d5d26244
  spec:
    disks:
    - /dev/mapper/sdc1
    node: node
  status:
    available: 6345981952
    capacity: 6413090816
    cr_state: Created
    pool_status: Online
    used: 67108864
@todeb
Copy link
Author

todeb commented Apr 19, 2024

/bug ?

@tiagolobocastro
Copy link
Contributor

I thought I replied already, strange...
Currently we don't support extending the DiskPool but this is part of the roadmap.

@todeb
Copy link
Author

todeb commented Apr 29, 2024

is there any tracking issue for that? On the roadmap this is marked as Pri 1 / Rel: (Q1 2024)

@tiagolobocastro
Copy link
Contributor

We'll create a tracking issue for this, I'll add a label here meanwhile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Needs Tracking
Projects
None yet
Development

No branches or pull requests

5 participants