-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Details for systemd. kubectl without clusterAdmin
- Loading branch information
Showing
2 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,43 @@ | ||
# %% [markdown] | ||
## Debugging Systemd Problems | ||
|
||
# %% [markdown] | ||
Status for a specific unit | ||
# %% [shell] | ||
systemctl status dbus | ||
# %% [markdown] | ||
Failed systemd units | ||
|
||
# %% [shell] | ||
systemctl --failed | ||
# %% [markdown] | ||
Status for a specific unit | ||
Reset a failed unit. This is useful if the restart of a unit runs into a rate limit and you cannot restart it anymore. | ||
# %% [shell] | ||
systemctl reset-failed <unit> | ||
# %% [markdown] | ||
### Modifying Units | ||
# %% [shell] | ||
systemctl edit <unit> | ||
systemctl daemon-reload | ||
# %% [markdown] | ||
### Performance Debugging | ||
# %% [shell] | ||
systemd-analyze blame | ||
# %% [markdown] | ||
### Logging Disk Space | ||
|
||
Show used disk space | ||
# %% [shell] | ||
journalctl --disk-usage | ||
# %% [markdown] | ||
Force a log rotation | ||
# %% [shell] | ||
journalctl --rotate | ||
# %% [markdown] | ||
Drop all logs older 2 days | ||
# %% [shell] | ||
journalctl --vacuum-time=2d | ||
# %% [markdown] | ||
Free everything until only 100MB used | ||
# %% [shell] | ||
systemctl status dbus | ||
journalctl --vacuum-size=100M |