1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/ibi-extra-partition-ibi-install-iso.adoc
2025-10-15 18:41:41 +00:00

90 lines
2.8 KiB
Plaintext

// Module included in the following assemblies:
//
// * edge_computing/image_base_install/ibi-factory-image-based-install.adoc
:_mod-docs-content-type: PROCEDURE
[id="ibi-extra-partition-ibi-install-iso_{context}"]
= Configuring additional partitions on the target host
The installation ISO creates a partition for the `/var/lib/containers` directory as part of the image-based installation process.
You can create additional partitions by using the `coreosInstallerArgs` specification. For example, in hard disks with adequate storage, you might need an additional partition for storage options, such as {lvms-first}.
[NOTE]
====
The `/var/lib/containers` partition requires at least 500 GB to ensure adequate disk space for precached images. You must create additional partitions with a starting position larger than the partition for `/var/lib/containers`.
====
.Procedure
. Edit the `image-based-installation-config.yaml` file to configure additional partitions:
+
.Example `image-based-installation-config.yaml` file
[source,yaml]
----
apiVersion: v1beta1
kind: ImageBasedInstallationConfig
metadata:
name: example-extra-partition
seedImage: quay.io/repo-id/seed:latest
seedVersion: "4.20.0"
installationDisk: /dev/sda
pullSecret: '{"auths": ...}'
# ...
skipDiskCleanup: true <1>
coreosInstallerArgs:
- "--save-partindex" <2>
- "6" <3>
ignitionConfigOverride: |
{
"ignition": {
"version": "3.2.0"
},
"storage": {
"disks": [
{
"device": "/dev/sda", <4>
"partitions": [
{
"label": "storage", <5>
"number": 6, <6>
"sizeMiB": 380000, <7>
"startMiB": 500000 <8>
}
]
}
]
}
}
----
<1> Specify `true` to skip disk formatting during the installation process.
<2> Specify this argument to preserve a partition.
<3> The live installation ISO requires five partitions. Specify a number greater than five to identify the additional partition to preserve.
<4> Specify the installation disk on the target host.
<5> Specify the label for the partition.
<6> Specify the number for the partition.
<7> Specify the size of parition in MiB.
<8> Specify the starting position on the disk in MiB for the additional partition. You must specify a starting point larger that the partition for `var/lib/containers`.
.Verification
* When you complete the preinstallation of the host with the live installation ISO, login to the target host and run the following command to view the partitions:
+
[source,terminal]
----
$ lsblk
----
+
.Example output
[source,terminal]
----
sda 8:0 0 140G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 127M 0 part
├─sda3 8:3 0 384M 0 part /var/mnt/boot
├─sda4 8:4 0 120G 0 part /var/mnt
├─sda5 8:5 0 500G 0 part /var/lib/containers
└─sda6 8:6 0 380G 0 part
----