Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

baremetal disable lvm mappings wipe additional disks #1486

Merged

Conversation

ipochi
Copy link
Member

@ipochi ipochi commented Jun 9, 2021

This PR disables LVM partitions so that any detected LVM partitions are not automatically
activated on bootup disrupting the installation and wipes any additional disks attached to the
machine before proceeeding

This PR is in a series of multiple PRs that will be created to ease the review/acceptance/merge of a large PR #1402

@ipochi ipochi force-pushed the imran/baremetal-disable-lvm-mappings-wipe-additional-disks branch 2 times, most recently from d0c4304 to 2067cb0 Compare June 17, 2021 11:12
pothos
pothos previously approved these changes Jun 17, 2021
@ipochi ipochi force-pushed the imran/baremetal-disable-lvm-mappings-wipe-additional-disks branch from 2067cb0 to f0aa170 Compare June 17, 2021 11:19
pothos
pothos previously approved these changes Jun 17, 2021
pothos and others added 2 commits June 18, 2021 11:29
Since the disks may or not be not empty, any detected LVM partitions may
automatically be activated on bootup. This can disrupt the installation
and we need to disable them first. This was done for all "vg" prefixes
but we can do it for any volume names. Any non-LVM entries are ignored
with a small error log output.

See flatcar/Flatcar#332
Exposes a variable to the user for wiping any additional disks attached
to the machine. Default is false.

When set to true, any additional disks attached to the hardware are
wiped clean before proceeding with the Flatcar Container Linux
installation.

The reason this is being done is to provide clean and unformatted disk
devices to the Lokomotive components [openebs and rook] for storage
orchestration.

Both rook and openebs fail to use the disks that have data or filesystem
already present on the disk. This leads to among other issues, failed
installation where PVCs get stuck in pending state.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
@ipochi ipochi force-pushed the imran/baremetal-disable-lvm-mappings-wipe-additional-disks branch from f0aa170 to 45f770e Compare June 18, 2021 06:02
@ipochi ipochi requested review from invidian and surajssd June 18, 2021 09:00
@invidian invidian removed their request for review June 18, 2021 09:11
@invidian
Copy link
Member

I'm not sure if it makes sense for me to review this PR. Perhaps someone more involved in maintenance should do this.

Copy link
Member

@surajssd surajssd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

@ipochi ipochi merged commit 01bf48f into master Jun 18, 2021
@ipochi ipochi deleted the imran/baremetal-disable-lvm-mappings-wipe-additional-disks branch June 18, 2021 13:10
@invidian invidian added the kind/enhancement New feature or request label Jul 16, 2021
@invidian invidian added this to the v0.9.0 milestone Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants