Skip to content

Commit

Permalink
Add 2023-12-13 and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Dec 13, 2023
1 parent eaa2ddd commit 1063093
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions docs/records/2023-12-13.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 2023 年 12 月 13 日工作总结

今天替换了阵列的坏盘。

由于等待备件寄达,最终花了近两周的时间才实际更换。现场更换一些备注:

- 中佳提供的备件盘上的托架的型号和实际阵列的不一致,如果直接插进去很难拔出来(按按钮无反应),并且也识别不到,现场花了很长时间处理;
- 需要准备螺丝刀,替换新盘托架和坏盘托架上的螺丝(侧面四根)

替换后阵列会自动重建,建议暂停虚拟机创建:修改 config.py,将 `TOTAL_CT_LIMIT` 拉低,并且取消注释 `GLOBAL_NOTIFICATION` 的值并修改为通知内容,之后正常向用户发送通知即可。
2 changes: 1 addition & 1 deletion docs/traps.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ PVE 会将开启了 firewall 的虚拟机网卡额外桥接一次,如图所示
vmbr{{vmbr0}} ---|"fwpr100i0 / fwln100i0"| fwbr{{fwbr100i0}} ---|"veth100i0 / eth0@vm"| vm([VM])
```

为了全面迁移到 PVE 防火墙,我们提前修改了 Django 为新建的虚拟机的网卡启用防火墙,但是意外的是,PVE Datacenter 层面的防火墙总开关只控制是否应用 iptables 规则,总开关关闭的情况下 PVE 仍然进行上述桥接操作。该桥接与我们[手搓的 ebtables 规则](../networking/firewall.md#ebtables)有冲突,使所有帧都无法经过 fwbr100i0,导致虚拟机整个断网。
为了全面迁移到 PVE 防火墙,我们提前修改了 Django 为新建的虚拟机的网卡启用防火墙,但是意外的是,PVE Datacenter 层面的防火墙总开关只控制是否应用 iptables 规则,总开关关闭的情况下 PVE 仍然进行上述桥接操作。该桥接与我们[手搓的 ebtables 规则](./networking/firewall.md#ebtables)有冲突,使所有帧都无法经过 fwbr100i0,导致虚拟机整个断网。

虽然 `ebtables -I VLAB_SECURE 4 -i fwln+ -j ACCEPT` 可以解决问题,但是既然要迁移了,我们还是选择直接删除手搓的 ebtables 配置,避免以后起更多冲突。

Expand Down
5 changes: 3 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ markdown_extensions:
- markdown.extensions.def_list
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.inlinehilite
- pymdownx.mark
- pymdownx.superfences:
Expand Down Expand Up @@ -129,6 +129,7 @@ nav:
- 踩坑记录: traps.md
- 更新历史: changelog.md
- 工作总结:
- 2023 年 12 月 13 日: records/2023-12-13.md
- 2023 年 11 月 18 日: records/2023-11-18.md
- 2023 年 10 月 1 日: records/2023-10-01.md
- 2023 年 8 月 6 日: records/2023-08-06.md
Expand Down

0 comments on commit 1063093

Please sign in to comment.