crc icon indicating copy to clipboard operation
crc copied to clipboard

Update disk resize to work with `lvms-storage-operator`/topolvm

Open anjannath opened this issue 1 year ago • 6 comments

fixes #4117

needs https://github.com/crc-org/snc/pull/877

anjannath avatar Apr 09 '24 12:04 anjannath

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from anjannath. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

openshift-ci[bot] avatar Apr 09 '24 12:04 openshift-ci[bot]

this PR is not needed anymore, the snc PRs:

  1. https://github.com/crc-org/snc/pull/869
  2. https://github.com/crc-org/snc/pull/869 will take care of all the steps needed to install topolvm entirely on snc

anjannath avatar Apr 12 '24 10:04 anjannath

/wip

praveenkumar avatar May 31 '24 05:05 praveenkumar

/hold

praveenkumar avatar May 31 '24 05:05 praveenkumar

this PR is not needed anymore, the snc PRs:

I assume this is no longer accurate as you updated the PR?

cfergeau avatar Jul 01 '24 13:07 cfergeau

I'm a bit confused by ' update disk resize to work with new disk layout ', could you detail more in the commit log why we need to move the topolvm partition (ie what fails if we don't do this)? What is the order before, what is the order after? Could this be done proactively in snc? And can we resize both the root partition and the PVs without any issue?

i've updated the commit message.. but mentioning here as well: after adding a new partition at the end of disk, the partition layout is |efi|boot|root|topolvm|, now if we want to increase the size of the root partition we have to first move the topolvm partition to create the required free space after the root partition, earlier the root partition was the last partition on the disk and after increasing the disk size the additional free space was added after it, which is not the case anymore because the topolvm partition is there now

anjannath avatar Jul 04 '24 08:07 anjannath

I'm a bit confused by ' update disk resize to work with new disk layout ', could you detail more in the commit log why we need to move the topolvm partition (ie what fails if we don't do this)? What is the order before, what is the order after? Could this be done proactively in snc? And can we resize both the root partition and the PVs without any issue?

i've updated the commit message.. but mentioning here as well: after adding a new partition at the end of disk, the partition layout is |efi|boot|root|topolvm|, now if we want to increase the size of the root partition we have to first move the topolvm partition to create the required free space after the root partition, earlier the root partition was the last partition on the disk and after increasing the disk size the additional free space was added after it, which is not the case anymore because the topolvm partition is there now

Ah ok, we need to go from |efi|boot|root|topolvm|free space| to |efi|boot|root|free space|topolvm|. The topolvm partition is always the last one, but its end also has to be aligned with the end of the disk so that the freed space comes before rather than after it.

cfergeau avatar Jul 08 '24 13:07 cfergeau

@anjannath: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/security d129b861633b41aadc73767b7b43959ccd0f94fb link false /test security
ci/prow/e2e-crc d129b861633b41aadc73767b7b43959ccd0f94fb link true /test e2e-crc
ci/prow/integration-crc d129b861633b41aadc73767b7b43959ccd0f94fb link true /test integration-crc

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

openshift-ci[bot] avatar Jul 31 '24 08:07 openshift-ci[bot]

seems this is not a good return on investment, closing it, sorry about the noise!

if users want to use topolvm they can manually enable/install it, we'll add a wiki entry with the steps

anjannath avatar Aug 27 '24 07:08 anjannath