Skip to content

Commit c39dad7

Browse files
authored
Merge pull request #83949 from kowen-rh/ocpbugs-38906
OCPBUGS#38906: Fix missing step in etcd disk migration procedure
2 parents bc365df + 2f54f59 commit c39dad7

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

modules/move-etcd-different-disk.adoc

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ $ oc debug node/<node_name>
5757
+
5858
Note the device name of the new disk reported by the `lsblk` command.
5959

60-
. Decode and replace the device name in the script according to your environment.
60+
. Create the following script and name it `etcd-find-secondary-device.sh`:
6161
+
6262
[source,bash]
6363
----
@@ -79,6 +79,14 @@ echo "Couldn't find secondary block device!" >&2
7979
exit 77
8080
----
8181
<1> Replace `<device_type_glob>` with a shell glob for your block device type. For SCSI or SATA drives, use `/dev/sd*`; for virtual drives, use `/dev/vd*`; for NVMe drives, use `/dev/nvme*[0-9]\*n*`.
82+
83+
. Create a base64-encoded string from the `etcd-find-secondary-device.sh` script and note its contents:
84+
+
85+
[source,terminal]
86+
----
87+
$ base64 -w0 etcd-find-secondary-device.sh
88+
----
89+
8290
. Create a `MachineConfig` YAML file named `etcd-mc.yml` with contents such as the following:
8391
+
8492
[source,yaml]
@@ -98,7 +106,7 @@ spec:
98106
- path: /etc/find-secondary-device
99107
mode: 0755
100108
contents:
101-
source: data:text/plain;charset=utf-8;base64,<encoded_etc_find_secondary_device_script> # <1>
109+
source: data:text/plain;charset=utf-8;base64,<encoded_etcd_find_secondary_device_script> # <1>
102110
systemd:
103111
units:
104112
- name: find-secondary-device.service
@@ -172,7 +180,7 @@ spec:
172180
[Install]
173181
WantedBy=multi-user.target graphical.target
174182
----
175-
<1> Use the encoded string that you previously created and replace it with the encoded script that you noted.
183+
<1> Replace `<encoded_etcd_find_secondary_device_script>` with the encoded script contents that you noted.
176184
177185
.Verification steps
178186
@@ -193,4 +201,4 @@ $ oc debug node/<node_name>
193201
[source,terminal]
194202
----
195203
/dev/sdb /var/lib/etcd xfs rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
196-
----
204+
----

0 commit comments

Comments
 (0)