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

Add support for online resizing (growing) of Ceph RBD block volumes #14462

Open
kadinsayani opened this issue Nov 13, 2024 · 2 comments
Open
Assignees
Labels
Improvement Improve to current situation Maybe Undecided whether in scope for the project

Comments

@kadinsayani
Copy link
Contributor

kadinsayani commented Nov 13, 2024

#14211 adds support for online resizing (growing) of zfs and lvm storage block volumes (root disks). An initial discovery of adding support for Ceph RBD volumes has been performed with the following findings:

  1. RBD has an exclusive lock feature and supports online resizing with RBD client kernel > 3.10.
  2. Ceph backed VM's have a read only snapshot which can't be updated when the root disk size is updated. The snapshot is used for instance creation.
  3. After an initial implementation similar to the approach for zfs volumes, we observe the following error when attempting to grow the root disk size:
root@testbox:~# lxc config device set v1 root size=11GiB
Error: Failed to update device "root": Could not grow underlying "ext4" filesystem for "/dev/rbd0": Failed to run: resize2fs /dev/rbd0: exit status 1 (resize2fs 1.47.0 (5-Feb-2023)
resize2fs: Bad magic number in super-block while trying to open /dev/rbd0)

More research and exploration are necessary to assess the feasibility of incorporating this feature.

@kadinsayani kadinsayani added Maybe Undecided whether in scope for the project Improvement Improve to current situation labels Nov 13, 2024
@kadinsayani kadinsayani self-assigned this Nov 13, 2024
@kadinsayani
Copy link
Contributor Author

kadinsayani commented Nov 13, 2024

@simondeziel @tomponline feel free to chime in here if I've missed anything :)

@kadinsayani
Copy link
Contributor Author

For reference, we've decided to move the PR which adds support for zfs and lvm along and track this improvement separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Improve to current situation Maybe Undecided whether in scope for the project
Projects
None yet
Development

No branches or pull requests

1 participant