-
Notifications
You must be signed in to change notification settings - Fork 16
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
Implement volume resizing #116
base: main
Are you sure you want to change the base?
Conversation
Once longhorn/longhorn-spdk-engine#116 is merged, this needs to be reverted
Once longhorn/longhorn-spdk-engine#116 is merged, this needs to be reverted Signed-off-by: Aaron Dewes <[email protected]>
This works by resizing all replicas individually. Signed-off-by: Aaron Dewes <[email protected]>
This pull request is now in conflict. Could you fix it @AaronDewes? 🙏 |
The approach this takes is that individual replicas are all resized. A RAID device in spdk should be automatically resized if all underlying devices grow (https://github.com/longhorn/spdk/blob/6925ca6543e4ad5a5e3a5db09217ae16bf939831/module/bdev/raid/bdev_raid.c#L2102). |
There is a dm linear device on the top of a device created by SPDK, so need to handle the dm device when expanding a volume. |
This pull request is now in conflict. Could you fix it @AaronDewes? 🙏 |
1 similar comment
This pull request is now in conflict. Could you fix it @AaronDewes? 🙏 |
I didn't know that Aaron had already done this development, in the feature request ticket longhorn/longhorn#8022 there isn't any reference to this PR, so I understood that the development was to be done, as I actually did : longhorn/longhorn#8022 (comment). |
No worries, but the PRs are actually referenced in longhorn/longhorn#8022.
@DamiaSan Sure! You can proceed with your development, but the most important feature is delta rebuilding. Please co-work with @shuo-wu first. If you don't have time for the volume expansion feature (best effort in v1.8.0), feel free to transfer to @c3y1huang. Thank you. cc @innobead |
Yes I know, I only wanted to say that the apparent issue is solved and so the development can be completed without having other blocking tasks. For delta rebuilding, I am actually creating into
As mentioned in the comment linked above longhorn/longhorn#8022 (comment), the work on |
Which issue(s) this PR fixes:
longhorn/longhorn#8022
What this PR does / why we need it:
Currently, SPDK volumes can not be resized. This aims at fixing this, and allows both growing and shrinking volumes.
Special notes for your reviewer:
I've not contributed to Longhorn before and this is completely untested. I'm trying to implement & test this feature, this is just a draft.
Additional documentation or context