Allowing user to transform volumes between Thin and Thick/Generic provisioning and migrate a volume to a different pool using Volume Mirror #31
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Updated to allow changing of a volume between Thin and Thick/Generic provisioning. This also allows a user to migrate a volume between pools in an IO Group using Volume Mirroring.
Additionally, when a user attempts to resize a hyperswap volume in the manage mirror module, the error message used the word "shrinked", which isn't proper english. I edited the message for clarity and flow.
Fixes #32
ISSUE TYPE
COMPONENT NAME
ibm_svc_manage_mirrored_volume.py
ADDITIONAL INFORMATION
The GUI and the CLI of Storage Virtualize allow a user to convert a volume between Thick and Thin provisioning. On the back end, of the GUI this uses Volume Mirroring. If you use the capability in the GUI, you never see anything happen. In the CLI this is done by setting the -autodelete flag in the command.
This capability does not exist in the current version of the ibm_svc_manage_mirrored_volume.py module, however. The module requires that the volumes be in different pools and does not allow for -autodelete. As a result, the mirrored volume module only really works if your intent is to maintain the mirrored volumes for some sort of availability purpose (hyperswap or standard).
My change introduces a new "state" parameter option. "transform".
An unmirrored volume with "transform" set as the desired state can create a new vdisk copy within the same pool. The new vdisk can be set to be thin/thick as needed. It will also allow migration of the volume to a different pool, including a DRP, or back from a DRP (if performance isn't working out, for example). When the synchronization is complete, the original copy of the volume will be deleted automatically, leaving only the new form of the volume in whichever pool was required.