1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/microshift-check-node-status.adoc
2025-10-07 17:43:41 +00:00

56 lines
1.9 KiB
Plaintext

//Module included in the following assemblies:
//
//* microshift_troubleshooting/microshift-troubleshoot-node
:_mod-docs-content-type: PROCEDURE
[id="microshift-check-node-status_{context}"]
= Checking the status of a node
You can check the status of a {microshift-short} node or see active pods. You can choose to run any or all of the following commands to help you get the information you need to troubleshoot the node.
.Procedure
* Check the system status, which returns the node status, by running the following command:
+
[source,terminal]
----
$ sudo systemctl status microshift
----
+
If {microshift-short} fails to start, this command returns the logs from the previous run.
+
.Example healthy output
[source,text]
----
● microshift.service - MicroShift
Loaded: loaded (/usr/lib/systemd/system/microshift.service; enabled; preset: disabled)
Active: active (running) since <day> <date> 12:39:06 UTC; 47min ago
Main PID: 20926 (microshift)
Tasks: 14 (limit: 48063)
Memory: 542.9M
CPU: 2min 41.185s
CGroup: /system.slice/microshift.service
└─20926 microshift run
<Month-Day> 13:23:06 i-06166fbb376f14a8b.<hostname> microshift[20926]: kube-apiserver I0528 13:23:06.876001 20926 controll>
<Month-Day> 13:23:06 i-06166fbb376f14a8b.<hostname> microshift[20926]: kube-apiserver I0528 13:23:06.876574 20926 controll>
# ...
----
* Optional: Get comprehensive logs by running the following command:
+
[source,terminal]
----
$ sudo journalctl -u microshift
----
+
[NOTE]
====
The default configuration of the `systemd` journal service stores data in a volatile directory. To persist system logs across system starts and restarts, enable log persistence and set limits on the maximum journal data size.
====
* Optional: If {microshift-short} is running, check the status of active pods by entering the following command:
+
--
include::snippets/microshift-healthy-pods-snip.adoc[leveloffset=+1]
--