Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add "server-room.md" Page to the Operations Basics Section #31

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/images/Rack-Dimensioned.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/ops/server-room/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
icon: material/server
---

# 机房介绍

本部分介绍在小型机房里常见的各项设施,帮助读者认识机房里的内容。
15 changes: 15 additions & 0 deletions docs/ops/server-room/other.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 其他设备介绍

!!! warning "本文仍在编辑中"

## UPS

## 交换机

## 物理防火墙

## KVM

## 路由器

## 其他
5 changes: 5 additions & 0 deletions docs/ops/server-room/physical.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 物理服务器

!!! warning "本文仍在编辑中"

## 从外观分类
54 changes: 54 additions & 0 deletions docs/ops/server-room/rack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 机柜

!!! warning "本文仍在编辑中"

顾名思义,机柜是用于容纳服务器的柜子,也往往是小型机房中占据最多空间的物品。机柜不仅仅是用来安装服务器,许多其他机房中的设备也有专门设计成可以安装在机柜中的版本,这我们将在后续内容中进行详细介绍。

## 机柜的规格 {#rack-specifications}

![典型机柜尺寸图](../../images/Rack-Dimensioned.jpg)

图 1. 典型机柜尺寸图
{: .caption }

如图所示,机柜的主要尺寸包括长、宽和高,图中是以英寸为单位。以下是对这些尺寸标准的简要说明:

### 固定的宽度 {#fixed-width-rack}

机柜的宽度通常固定为19英寸(约48.26厘米),这一标准源于 EIA-310-D 标准(Electronic Industries Alliance),该标准在数据中心和 IT 设备安装中得到了广泛应用。

!!! comment "@teapot1de: 值得一提"

值得一提的是,虽然电子工业联盟(Electronic Industries Alliance)早已解散,但其制定的标准至今仍在业界广泛应用

### 标准化的高度 {#standardized-height-rack}

高度以U为单位进行测量(1U = 1.75英寸),这使得不同制造商生产的设备可以轻松兼容和安装到同一机架中。

### 多选择的深度 {#depth-options-rack}

机柜的深度根据安装需求可变,常见的深度范围从600mm到1200mm。

这些标准的建立源于需要简化设备安装、提高兼容性、确保安全性和便于维护,广泛应用于各种数据中心和 IT 基础设施中。

## 机柜的其他小细节 {#additional-rack-details}

### 螺丝螺母的标准 {#screw-nut-standards-rack}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Short sentences of introduction for each part could be written in this format:

RAID 0
: 也称作条带化(Striped),将数据分块存储在多个磁盘上,可以充分利用所有容量,获得叠加的顺序读写性能(但随机读写性能一般),但没有冗余,任何一块磁盘损坏都会导致整个阵列的数据丢失,适合需要高性能读写但不需要数据安全性的场景。
RAID 1
: 也称作镜像(Mirrored),将数据完全复制到多个磁盘上,提供了绝对冗余,整个阵列中只需要有一块盘存活,数据就不会丢失。代价是整个阵列的容量等单块磁盘的容量,空间利用率低下,适合需要高可靠性<s>而且不缺钱</s>的场景。同时由于每块盘上的数据完全一致,RAID 1 的读取性能可以叠加(甚至包括随机读取),但写入性能不会提升。
RAID 5
: 将数据和**一份**校验信息分块存储在多个磁盘上,可以允许阵列中任何一块磁盘损坏,兼顾冗余性和容量利用率。重建期间的性能会严重下降,并且一旦在重建完成前又坏了一块盘,那么你就寄了。
!!! danger "不要为大容量机械硬盘阵列组 RAID 5"
否则坏了一块盘后重建的时候就等死吧。
下面的思考题也会涉及到这个问题。
RAID 6
: 将数据和**两份**校验信息分块存储在多个磁盘上,比 RAID 5 多了一份校验信息,可以容纳两块磁盘损坏,适合大容量或者磁盘较多的阵列。尽管允许两块盘损坏,但我们仍然建议在第一块盘损坏后立即更换并重建,不要等到更危险的时候。
RAID 10, 50, 60
: 将不同级别的 RAID 组合在一起,兼顾性能和冗余,各取所长,对于 10 块盘以上的阵列是更加常见的选择。例如 RAID 10 = RAID 1 + RAID 0,通常将每两块盘组成 RAID 1,再将这些 RAID 1 的组合拼成一个大 RAID 0。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the Python Markdown syntax for HTML <dl> (definition lists) - suits here perfectly:

https://squidfunk.github.io/mkdocs-material/reference/lists/#using-definition-lists


机柜安装时通常使用标准化的螺母和螺钉。最常见的螺母类型是方形螺母和M6螺母,这些螺母与标准机架配合使用,确保设备的稳固安装。

### 通风设计{#ventilation-design-rack}

大多数机柜设计时考虑了设备的散热问题,因此配有前后门网孔或通风板,确保良好的空气流通。部分机柜还可以安装额外的风扇单元,以进一步增强散热效果,避免设备过热。

### 电源管理 {#power-management-rack}

机柜内通常安装有电源分配单元(PDU),这些PDU提供多种电源插座配置,支持不同类型的设备电源需求。部分PDU还配备有电流监控和断路器功能,可以更好地管理电力分配,防止过载情况的发生。

### 线缆管理 {#cable-management-rack}

有效的线缆管理是机柜设计中的重要部分。机柜内通常配备专用的线缆管理臂、绑带和走线槽,这些工具有助于组织和固定电缆,保持机柜内部整洁,避免电缆缠绕和损坏。

### 移动性和稳定性 {#mobility-stability-rack}

许多机柜底部装有脚轮,方便在数据中心内移动和重新布置位置。当机柜定位完毕后,可以使用固定脚来稳定机柜,防止其在操作或维护过程中移动。部分机柜还支持固定地脚螺栓,以提供额外的安全和稳定性,特别是在地震多发地区。
5 changes: 5 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ nav:
- 运维基础:
- ops/index.md
- 检查单: ops/checklist.md
- 机房介绍:
- ops/server-room/index.md
- 物理服务器: ops/server-room/physical.md
- 机柜: ops/server-room/rack.md
- 其他设备: ops/server-room/other.md
- 服务器介绍: ops/server.md
- 包管理系统: ops/package.md
- 服务与日志管理: ops/service.md
Expand Down