Skip to content

Commit 79b9c9c

Browse files
author
Bob Furu
authored
Merge pull request #28972 from SNiemann15/multipathing_ibmz
add multipathing to installation procedure
2 parents dd34bdf + 8649e04 commit 79b9c9c

5 files changed

+136
-12
lines changed

modules/installation-complete-user-infra.adoc

Lines changed: 89 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,20 @@ endif::[]
1212
ifeval::["{context}" == "installing-restricted-networks-bare-metal"]
1313
:restricted:
1414
endif::[]
15+
ifeval::["{context}" == "installing-ibm-z"]
16+
:ibm-z:
17+
endif::[]
1518
ifeval::["{context}" == "installing-restricted-networks-ibm-z"]
19+
:ibm-z:
20+
:restricted:
21+
endif::[]
22+
ifeval::["{context}" == "installing-ibm-power"]
23+
:ibm-power:
24+
endif::[]
25+
ifeval::["{context}" == "installing-restricted-networks-ibm-power"]
26+
:ibm-power:
1627
:restricted:
1728
endif::[]
18-
1929
[id="installation-complete-user-infra_{context}"]
2030
= Completing installation on user-provisioned infrastructure
2131

@@ -130,6 +140,73 @@ command.
130140
+
131141
If the pod logs display, the Kubernetes API server can communicate with the
132142
cluster machines.
143+
ifdef::ibm-z,ibm-power[]
144+
. For an installation with FCP, additional steps are required to enable multipathing.
145+
.. To enable multipathing on master nodes, apply the following machine config file:
146+
+
147+
[source,yaml]
148+
--
149+
apiVersion: machineconfiguration.openshift.io/v1
150+
kind: MachineConfig
151+
metadata:
152+
labels:
153+
machineconfiguration.openshift.io/role: "master"
154+
name: 99-master-kargs-mpath
155+
spec:
156+
kernelArguments:
157+
- 'rd.multipath=default'
158+
- 'root=/dev/disk/by-label/dm-mpath-root'
159+
--
160+
161+
.. To enable multipathing on worker nodes, apply the following machine config file:
162+
+
163+
[source,yaml]
164+
--
165+
apiVersion: machineconfiguration.openshift.io/v1
166+
kind: MachineConfig
167+
metadata:
168+
labels:
169+
machineconfiguration.openshift.io/role: "worker"
170+
name: 99-master-kargs-mpath
171+
spec:
172+
kernelArguments:
173+
- 'rd.multipath=default'
174+
- 'root=/dev/disk/by-label/dm-mpath-root'
175+
--
176+
endif::ibm-z,ibm-power[]
177+
ifdef::ibm-power[]
178+
.. To display a boot list and specify the possible boot devices if the system is booted in normal mode, enter the following command:
179+
+
180+
[source,terminal]
181+
----
182+
$ bootlist -m normal -o
183+
sda
184+
----
185+
.. To update the boot list for normal mode and add alternate device names, enter the following command:
186+
+
187+
[source,terminal]
188+
----
189+
$ bootlist -m normal -o /dev/sdc /dev/sdd /dev/sde
190+
sdc
191+
sdd
192+
sde
193+
----
194+
+
195+
If the original boot disk path is down, the node reboots from the alternate device registered in the normal boot device list.
196+
endif::ibm-power[]
197+
ifdef::ibm-z,ibm-power[]
198+
.. All the worker nodes are restarted. To monitor the process, enter the following command:
199+
+
200+
[source,terminal]
201+
----
202+
$ oc get nodes -w
203+
----
204+
+
205+
[NOTE]
206+
====
207+
If you have additional machine types such as infrastructure nodes, repeat the process for these types.
208+
====
209+
endif::ibm-z,ibm-power[]
133210

134211
ifdef::restricted[]
135212
. Register your cluster on the link:https://cloud.redhat.com/openshift/register[Cluster registration] page.
@@ -144,6 +221,17 @@ endif::[]
144221
ifdef::openshift-origin[]
145222
:!restricted:
146223
endif::[]
224+
ifeval::["{context}" == "installing-ibm-z"]
225+
:!ibm-z:
226+
endif::[]
147227
ifeval::["{context}" == "installing-restricted-networks-ibm-z"]
228+
:!ibm-z:
148229
:!restricted:
149230
endif::[]
231+
ifeval::["{context}" == "installing-ibm-power"]
232+
:!ibm-power:
233+
endif::[]
234+
ifeval::["{context}" == "installing-restricted-networks-ibm-power"]
235+
:!ibm-power:
236+
:restricted:
237+
endif::[]

modules/installation-ibm-z-kvm-user-infra-machines-iso.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Before you install a cluster on IBM Z infrastructure that you provision, you mus
1616

1717
. Install the KVM/QEMU hypervisor on the {op-system-base} KVM host.
1818

19-
. Obtain the {op-system-base} QEMU copy-on-write (QCOW2) disk image file from the link:https://access.redhat.com/downloads/content/290[Product Downloads] page on the Red Hat customer portal or the link:https://mirror.openshift.com/pub/openshift-v4/s390x/dependencies/rhcos/4.2/latest/[{op-system} image mirror] page.
19+
. Obtain the {op-system-base} QEMU copy-on-write (QCOW2) disk image file from the link:https://access.redhat.com/downloads/content/290[Product Downloads] page on the Red Hat Customer Portal or from the link:https://mirror.openshift.com/pub/openshift-v4/s390x/dependencies/rhcos/latest/[{op-system} image mirror] page.
2020
+
2121
[IMPORTANT]
2222
====

modules/installation-ibm-z-user-infra-machines-iso.adoc

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Before you install a cluster on IBM Z infrastructure that you provision, you mus
99

1010
.Prerequisites
1111

12-
* An FTP server running on your provisioning machine that is accessible to the machines you create.
12+
* An HTTP or HTTPS server running on your provisioning machine that is accessible to the machines you create.
1313

1414
.Procedure
1515

1616
. Log in to Linux on your provisioning machine.
1717

18-
. Obtain the {op-system-first} kernel, initramfs, and rootfs files from the link:https://mirror.openshift.com/pub/openshift-v4/s390x/dependencies/rhcos/4.2/latest/[{op-system} image mirror].
18+
. Obtain the {op-system-first} kernel, initramfs, and rootfs files from the link:https://mirror.openshift.com/pub/openshift-v4/s390x/dependencies/rhcos/latest/[{op-system} image mirror].
1919
+
2020
[IMPORTANT]
2121
====
@@ -36,23 +36,25 @@ The rootfs image is the same for FCP and DASD.
3636
====
3737
+
3838
. Create parameter files. The following parameters are specific for a particular virtual machine:
39-
** For `coreos.inst.install_dev=`, specify `dasda` for a DASD installation, or `sda` for FCP. Note that FCP requires `zfcp.allow_lun_scan=0`.
40-
** For `rd.dasd=`, specifys the DASD where {op-system} is to be installed.
41-
** `rd.zfcp=<adapter>,<wwpn>,<lun>` specifies the FCP disk to install {op-system} on.
4239
** For `ip=`, specify the following seven entries:
4340
... The IP address for the machine.
4441
... An empty string.
4542
... The gateway.
4643
... The netmask.
4744
... The machine host and domain name in the form `hostname.domainname`. Omit this value to let {op-system} decide.
4845
... The network interface name. Omit this value to let {op-system} decide.
49-
... If you use static IP addresses, an empty string.
46+
... If you use static IP addresses, specify `none`.
5047
** For `coreos.inst.ignition_url=`, specify the Ignition file for the machine role. Use `bootstrap.ign`, `master.ign`, or `worker.ign`. Only HTTP and HTTPS protocols are supported.
5148
** For `coreos.live.rootfs_url=`, specify the matching rootfs artifact for the kernel and initramfs you are booting. Only HTTP and HTTPS protocols are supported.
52-
** All other parameters can stay as they are.
49+
50+
** For installations on DASD-type disks, complete the following tasks:
51+
... For `coreos.inst.install_dev=`, specify `dasda`.
52+
... Use `rd.dasd=` to specify the DASD where {op-system} is to be installed.
53+
... Leave all other parameters unchanged.
5354
+
5455
Example parameter file, `bootstrap-0.parm`, for the bootstrap machine:
5556
+
57+
[source,terminal]
5658
----
5759
rd.neednet=1 console=ttysclp0 coreos.inst.install_dev=dasda coreos.live.rootfs_url=http://
5860
cl1.provide.example.com:8080/assets/rhcos-live-rootfs.s390x.img
@@ -62,6 +64,40 @@ rd.znet=qeth,0.0.bdf0,0.0.bdf1,0.0.bdf2,layer2=1,portno=0 zfcp.allow_lun_scan=0
6264
!condev rd.dasd=0.0.3490
6365
----
6466

67+
68+
** For installations on FCP-type disks, complete the following tasks:
69+
... Use `rd.zfcp=<adapter>,<wwpn>,<lun>` to specify the FCP disk where {op-system} is to be installed. For multipathing repeat this step for each additional path.
70+
... For multipathing, set the following parameter: `rd.multipath=default`.
71+
... For multipathing, set the install device as: `coreos.inst.install_dev=/dev/mapper/mpatha`.
72+
... For single-path installation, set the install device as: `coreos.inst.install_dev=sda`.
73+
+
74+
[NOTE]
75+
====
76+
If additional LUNs are configured with NPIV, FCP requires `zfcp.allow_lun_scan=0`.
77+
====
78+
... Leave all other parameters unchanged.
79+
+
80+
[NOTE]
81+
====
82+
Additional post-installation steps are required to fully enable multipathing. See “Completing installation on user-provisioned infrastructure” for more information.
83+
====
84+
+
85+
The following is an example parameter file `bootstrap-0.parm` for the bootstrap machine with multipathing:
86+
+
87+
[source,terminal]
88+
----
89+
rd.neednet=1 rd.multipath=default console=ttysclp0 coreos.inst.install_dev=/dev/mapper/mpatha
90+
coreos.live.rootfs_url=http://cl1.provide.example.com:8080/assets/rhcos-live-rootfs.s390x.img
91+
coreos.inst.ignition_url=http://cl1.provide.example.com:8080/ignition/bootstrap.ign
92+
ip=172.18.78.2::172.18.78.1:255.255.255.0:::none nameserver=172.18.78.1
93+
rd.znet=qeth,0.0.bdf0,0.0.bdf1,0.0.bdf2,layer2=1,portno=0 zfcp.allow_lun_scan=0 cio_ignore=all,
94+
!condev
95+
rd.zfcp=0.0.1987,0x50050763070bc5e3,0x4008400B00000000
96+
rd.zfcp=0.0.19C7,0x50050763070bc5e3,0x4008400B00000000
97+
rd.zfcp=0.0.1987,0x50050763071bc5e3,0x4008400B00000000
98+
rd.zfcp=0.0.19C7,0x50050763071bc5e3,0x4008400B00000000
99+
----
100+
65101
. Transfer the initramfs, kernel, parameter files, and {op-system} images to z/VM, for example with FTP. For details about how to transfer the files with FTP and boot from the virtual reader, see link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/sect-installing-zvm-s390[Installing under Z/VM].
66102
. Punch the files to the virtual reader of the z/VM guest virtual machine that is to become your bootstrap node.
67103
+

modules/installation-infrastructure-user-infra.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ page before you create the supporting infrastructure for your cluster.
2525

2626
ifdef::ibm-z[]
2727
. Set up static IP addresses.
28-
. Set up an FTP server.
28+
. Set up an HTTP or HTTPS server to provide Ignition files to the cluster nodes.
2929
endif::ibm-z[]
3030
ifndef::ibm-z[]
3131
. Configure DHCP or set static IP addresses on each node.

modules/installation-network-user-infra.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ All the {op-system-first} machines require network in `initramfs` during boot
4444
to fetch Ignition config from the machine config server.
4545

4646
ifdef::ibm-z[]
47-
During the initial boot, the machines require an FTP server in order to
47+
During the initial boot, the machines require an HTTP or HTTPS server to
4848
establish a network connection to download their Ignition config files.
4949

5050
Ensure that the machines have persistent IP addresses and host names.
5151
endif::ibm-z[]
5252
ifndef::ibm-z[]
5353
During the initial boot, the machines require either a DHCP server
54-
or that static IP addresses be set on each host in the cluster in order to
54+
or that static IP addresses be set on each host in the cluster to
5555
establish a network connection, which allows them to download their Ignition config files.
5656

5757
It is recommended to use the DHCP server to manage the machines for the cluster

0 commit comments

Comments
 (0)