|
| 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 | +---- |
0 commit comments