> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/learn-the-platform/zh/mo-kuai-9-jian-kong-yu-gu-zhang-pai-chu/lab.md).

# 实验：监控与故障排查

## 目标

练习监控 VergeOS 基础架构健康状况、配置告警、分析系统日志以及诊断常见问题。到本实验结束时，你将能够熟练浏览 VergeOS 监控工具，并遵循结构化的故障排除流程。

## 前置条件

* 已完成模块 1：架构基础
* 已完成第 4 模块：网络
* 已完成第 5 模块：存储
* 已完成第 9 模块阅读（仪表板、告警、诊断、升级）
* 一个正在运行且具有管理员访问权限的 VergeOS 集群

## 难度

**中级** -- 需要熟悉 VergeOS UI 和基本系统管理概念

## 预计时间

**1.5 小时**

## 步骤

### 第 1 部分：仪表板探索

熟悉 VergeOS 监控仪表板。

1. 使用管理员凭据登录 VergeOS UI
2. 导航到主仪表板并识别：
   * 节点状态指示器（在线、离线、维护）
   * CPU、内存和存储利用率图表
   * 网络连接状态
   * 活动告警和通知
3. 深入查看某个单独节点的详情页面
4. 查看集群健康概览并识别关键指标
5. 检查存储池状态并确认所有磁盘都处于健康状态
6. 记录集群当前的资源利用率基线

### 第 2 部分：告警配置

设置告警和通知规则。

1. 导航到告警配置部分（系统 → 订阅）
2. 查看现有订阅规则及其配置的告警条件
3. 创建一个自定义订阅告警，针对：
   * CPU 利用率过高（持续超过 85%）
   * 存储容量不足（可用空间少于 20%）
   * 节点连接丢失
4. 配置一个通知通道（通过 SMTP 发送电子邮件，或为 Slack 等集成配置 webhook）
5. 通过触发阈值来测试告警通知（如果在你的实验环境中可行）
6. 配置日志转发到外部 syslog 服务器（或本地日志收集器）

### 第 3 部分：日志分析与诊断

练习分析系统日志并使用诊断工具。

1. 导航到系统日志部分
2. 按严重级别筛选日志（严重、错误、警告、消息）
3. 搜索与以下内容相关的特定事件：
   * 虚拟机操作（启动、停止、迁移）
   * 存储事件（磁盘错误、重新平衡）
   * 网络事件（链路状态变化）
4. 识别常见错误模式及其可能原因
5. 使用内置诊断工具检查：
   * 存储子系统健康状况
   * 节点之间的网络连接
   * 整个集群的服务状态
6. 练习生成诊断包以便升级给支持团队

### 第 4 部分：故障排除场景

使用你学到的工具诊断模拟问题。

1. **场景 A：虚拟机性能缓慢** -- 用户报告某个虚拟机运行缓慢。使用仪表板和日志来：
   * 检查该虚拟机的资源分配和利用率
   * 确定宿主节点是否超额分配
   * 检查存储 I/O 延迟
   * 提出解决方案
2. **场景 B：网络连接问题** -- 租户报告他们无法访问外部网络。调查：
   * 租户网络配置
   * 虚拟网络层连接
   * 宿主节点上的物理网络状态
   * 确定根本原因并给出解决方案
3. **场景 C：存储告警** -- 系统生成了存储容量警告。确定：
   * 受影响的是哪个存储池
   * 是什么占用了最多空间
   * 推荐的操作（清理、扩容或迁移）

## 验证

当你能够回答以下问题时，你的监控和故障排除实验就完成了 **是** 时，你的 VMware 迁移实验就完成了：

* [ ] 成功浏览 VergeOS 仪表板并识别关键健康指标
* [ ] 使用适当的阈值创建了自定义告警规则
* [ ] 至少配置了一个通知通道（电子邮件或 webhook）
* [ ] 已筛选并搜索系统日志以找到特定事件
* [ ] 使用诊断工具检查了存储、网络和服务健康状况
* [ ] 完成了至少两个故障排除场景并确定了根本原因
* [ ] 生成了适合升级给支持团队的诊断包


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.verge.io/learn-the-platform/zh/mo-kuai-9-jian-kong-yu-gu-zhang-pai-chu/lab.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
