Skip to content

Commit 3136f2c

Browse files
committed
Add step to chroot /host to reboot node
1 parent c294237 commit 3136f2c

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

modules/nodes-nodes-rebooting-gracefully.adoc

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,44 @@ To perform a graceful restart of a node:
1717
----
1818
$ oc adm cordon <node1>
1919
----
20-
+
20+
2121
. Drain the node to remove all the running pods:
2222
+
2323
[source,terminal]
2424
----
2525
$ oc adm drain <node1> --ignore-daemonsets --delete-emptydir-data
2626
----
27-
+
27+
2828
. Access the node in debug mode:
2929
+
3030
[source,terminal]
3131
----
3232
$ oc debug node/<node1>
3333
----
34+
35+
. Change your root directory to the host:
3436
+
37+
[source,terminal]
38+
----
39+
$ chroot /host
40+
----
41+
3542
. Restart the node:
3643
+
3744
[source,terminal]
3845
----
3946
$ systemctl reboot
4047
----
4148
+
49+
In a moment, the node enters the `NotReady` state.
50+
4251
. Mark the node as schedulable after the reboot is complete:
4352
+
4453
[source,terminal]
4554
----
4655
$ oc adm uncordon <node1>
4756
----
48-
+
57+
4958
. Verify that the node is ready:
5059
+
5160
[source,terminal]

0 commit comments

Comments
 (0)