← Back to Runbooks

Server Maintenance Runbook

Goal Description

The goal of this task is to perform maintenance on ubuntu-32gb-fsn1-1, which includes:

  1. Explaining the 100% SWAP usage.
  2. Fixing .bashrc syntax errors that appear on login.
  3. Applying outstanding OS updates (dependencies).
  4. Rebooting the server as required.

User Review Required

Important

A server reboot is planned as part of this operation. Please ensure that this will not disrupt any critical services currently running (e.g. llama-server, openclaw, docker containers).

Open Questions

Warning

Do you want me to configure the llama-server to use less memory or restart it after the reboot in a specific way? Currently, it uses ~18GB of RAM, which is the primary cause of the swap usage.

Proposed Changes

System Memory Analysis (SWAP at 100%)

Based on the process list, the system has 32GB of RAM and an 8GB swap file. The process /usr/local/bin/llama-server (running Qwen3-30B-A3B-Q4_K_M.gguf) is currently consuming 18.1 GB of RSS (Resident Set Size), which accounts for ~56.6% of the system memory.

Other processes like dockerd, openclaw, and chromium take up the rest of the available memory, forcing the OS to move inactive pages to SWAP, maxing out the 8GB swap space. This is completely expected behavior given the size of the model being served.

File: /root/.bashrc

The login errors (-bash: [: missing ']' and xai.env: command not found) are caused by a line break in an if condition at the end of your .bashrc. I will fix this by combining the lines into a valid bash check.

[MODIFY] .bashrc

-[ -f /root/.config/dcoop/
-  xai.env ] && set -a && . /root/.config/dcoop/xai.env &&
-  set +a
-set -a
-  . ~/.config/dcoop/xai.env
-  set +a
+if [ -f /root/.config/dcoop/xai.env ]; then
+  set -a
+  . /root/.config/dcoop/xai.env
+  set +a
+fi

OS Updates

I will run the following commands to install the 23 normal updates and 14 security updates:

apt update
apt upgrade -y

Server Reboot

Once the updates are applied and the .bashrc is fixed, I will trigger a server restart:

reboot

Verification Plan

Automated Tests

None applicable for system maintenance.

Manual Verification

Upon SSH login after the reboot, you should manually verify that:

  1. The .bashrc syntax errors ([: missing ]' and xai.env: command not found) no longer appear.
  2. The System restart required message is gone.
  3. The server starts up expected services automatically.