Skip to content

Commit 957be1e

Browse files
committed
TELCODOCS-1306: D/S: MGMT-7878 Expose the ability of creating partitions on nodes
1 parent df37caa commit 957be1e

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

installing/installing_bare_metal_ipi/ipi-install-installation-workflow.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,17 @@ include::modules/ipi-install-configuring-the-bios.adoc[leveloffset=+2]
7676

7777
include::modules/ipi-install-configuring-the-raid.adoc[leveloffset=+2]
7878

79+
include::modules/ipi-install-configuring-storage-on-nodes.adoc[leveloffset=+2]
80+
7981
[role="_additional-resources"]
8082
[id="additional-resources_raid_config"]
8183
.Additional resources
8284

8385
* xref:../../post_installation_configuration/bare-metal-configuration.adoc#post-install-bare-metal-configuration[Bare metal configuration]
8486

85-
include::modules/ipi-install-creating-a-disconnected-registry.adoc[leveloffset=+1]
87+
* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/managing_storage_devices/index#partition-naming-scheme_disk-partitions[Partition naming scheme]
8688

89+
include::modules/ipi-install-creating-a-disconnected-registry.adoc[leveloffset=+1]
8790

8891
[discrete]
8992
[id="prerequisites_ipi-disconnected-registry"]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * list of assemblies where this module is included
4+
// ipi-install-installation-workflow.adoc
5+
6+
:_content-type: PROCEDURE
7+
[id="configuring-storage-on-nodes_{context}"]
8+
= Optional: Configuring storage on nodes
9+
10+
You can make changes to operating systems on {product-title} nodes by creating `MachineConfig` objects that are managed by the Machine Config Operator (MCO).
11+
12+
The `MachineConfig` specification includes an ignition config for configuring the machines at first boot. This config object can be used to modify files, systemd services, and other operating system features running on {product-title} machines.
13+
14+
.Procedure
15+
16+
Use the ignition config to configure storage on nodes. The following `MachineSet` manifest example demonstrates how to add a partition to a device on a primary node. In this example, apply the manifest before installation to have a partition named `recovery` with a size of 16 GiB on the primary node.
17+
18+
. Create a `custom-partitions.yaml` file and include a `MachineConfig` object that contains your partition layout:
19+
+
20+
[source,terminal]
21+
----
22+
apiVersion: machineconfiguration.openshift.io/v1
23+
kind: MachineConfig
24+
metadata:
25+
labels:
26+
machineconfiguration.openshift.io/role: primary
27+
name: 10_primary_storage_config
28+
spec:
29+
config:
30+
ignition:
31+
version: 3.2.0
32+
storage:
33+
disks:
34+
- device: </dev/xxyN>
35+
partitions:
36+
- label: recovery
37+
startMiB: 32768
38+
sizeMiB: 16384
39+
filesystems:
40+
- device: /dev/disk/by-partlabel/recovery
41+
label: recovery
42+
format: xfs
43+
----
44+
+
45+
. Save and copy the `custom-partitions.yaml` file to the `clusterconfigs/openshift` directory:
46+
+
47+
[source,terminal]
48+
----
49+
$ cp ~/<MachineConfig_manifest> ~/clusterconfigs/openshift
50+
----

0 commit comments

Comments
 (0)