Skip to content

Commit 3312071

Browse files
authored
Merge pull request #85152 from rohennes/MGMT-19226
MGMT-19226: Addition specs and procedure for creating additional partitions
2 parents cec7e70 + 3f02113 commit 3312071

File tree

3 files changed

+99
-1
lines changed

3 files changed

+99
-1
lines changed

edge_computing/image_base_install/ibi-factory-image-based-install.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:_mod-docs-content-type: ASSEMBLY
22
[id="ibi-factory-image-based-install"]
3-
= About image-based installation for {sno}
3+
= Preinstalling {sno} using an image-based installation
44
include::_attributes/common-attributes.adoc[]
55
:context: ibi-factory-image-based-install
66

@@ -23,6 +23,13 @@ The following are the high-level steps to preinstall a {sno} cluster using an im
2323
2424
include::modules/ibi-create-iso-for-bmh.adoc[leveloffset=+1]
2525

26+
[role="_additional-resources"]
27+
.Additional resources
28+
29+
* xref:../../edge_computing/image_base_install/ibi_deploying_sno_clusters/ibi-edge-image-based-install-standalone.adoc#ibi-installer-configuration-config_ibi-edge-image-based-install[Reference specifications for the `image-based-installation-config.yaml` manifest]
30+
31+
include::modules/ibi-extra-partition-ibi-install-iso.adoc[leveloffset=+2]
32+
2633
include::modules/ibi-provision-install-iso-to-bmh.adoc[leveloffset=+1]
2734

2835
include::modules/ibi-installer-installation-config.adoc[leveloffset=+1]
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * edge_computing/image_base_install/ibi-factory-image-based-install.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="ibi-extra-partition-ibi-install-iso_{context}"]
7+
= Configuring additional partitions on the target host
8+
9+
The installation ISO creates a partition for the `/var/lib/containers` directory as part of the image-based installation process.
10+
11+
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}.
12+
13+
[NOTE]
14+
====
15+
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`.
16+
====
17+
18+
.Procedure
19+
20+
. Edit the `image-based-installation-config.yaml` file to configure additional partitions:
21+
+
22+
.Example `image-based-installation-config.yaml` file
23+
[source,yaml]
24+
----
25+
apiVersion: v1beta1
26+
kind: ImageBasedInstallationConfig
27+
metadata:
28+
name: example-extra-partition
29+
seedImage: quay.io/repo-id/seed:latest
30+
seedVersion: "4.17.0"
31+
installationDisk: /dev/sda
32+
pullSecret: '{"auths": ...}'
33+
# ...
34+
skipDiskCleanup: true <1>
35+
coreosInstallerArgs:
36+
- "--save-partindex" <2>
37+
- "6" <3>
38+
ignitionConfigOverride: |
39+
{
40+
"ignition": {
41+
"version": "3.2.0"
42+
},
43+
"storage": {
44+
"disks": [
45+
{
46+
"device": "/dev/sda", <4>
47+
"partitions": [
48+
{
49+
"label": "storage", <5>
50+
"number": 6, <6>
51+
"sizeMiB": 380000, <7>
52+
"startMiB": 500000 <8>
53+
}
54+
]
55+
}
56+
]
57+
}
58+
}
59+
60+
----
61+
<1> Specify `true` to skip disk formatting during the installation process.
62+
<2> Specify this argument to preserve a partition.
63+
<3> The live installation ISO requires five partitions. Specify a number greater than five to identify the additional partition to preserve.
64+
<4> Specify the installation disk on the target host.
65+
<5> Specify the label for the partition.
66+
<6> Specify the number for the partition.
67+
<7> Specify the size of parition in MiB.
68+
<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`.
69+
70+
.Verification
71+
72+
* 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:
73+
+
74+
[source,terminal]
75+
----
76+
$ lsblk
77+
----
78+
+
79+
.Example output
80+
[source,terminal]
81+
----
82+
sda 8:0 0 140G 0 disk
83+
├─sda1 8:1 0 1M 0 part
84+
├─sda2 8:2 0 127M 0 part
85+
├─sda3 8:3 0 384M 0 part /var/mnt/boot
86+
├─sda4 8:4 0 120G 0 part /var/mnt
87+
├─sda5 8:5 0 500G 0 part /var/lib/containers
88+
└─sda6 8:6 0 380G 0 part
89+
----

modules/ibi-installer-installation-config.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,6 @@ additionalTrustBundle: \|
8787
|`sshKey`|`string`|Specifies the SSH key to authenticate access to the host.
8888
|`ignitionConfigOverride`|`string`|Specifies a JSON string containing the user overrides for the Ignition config. The configuration merges with the Ignition config file generated by the installation program. This feature requires Ignition version is 3.2 or later.
8989
90+
|`coreosInstallerArgs`|`string`|Specifies custom arguments for the `coreos-install` command that you can use to configure kernel arguments and disk partitioning options.
91+
9092
|====

0 commit comments

Comments
 (0)