mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 14:02:53 +08:00
更新 PVE 系统调整
This commit is contained in:
+10
-6
@@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
在上一篇文章 [02.PVE初始化配置](./02.PVE初始化配置.md) 中,我们已经初始化了 PVE 系统,接下来需要对 PVE 系统进一步调整。
|
在上一篇文章 [02.PVE初始化配置](./02.PVE初始化配置.md) 中,我们已经初始化了 PVE 系统,接下来需要对 PVE 系统进一步调整。
|
||||||
|
|
||||||
在 PVE 系统调整之前,请确保必要的软件包已经安装完成。
|
在 PVE 系统调整之前,请确认必要的软件包已经安装完成,本文后续命令均在 SSH 终端下执行。
|
||||||
|
|
||||||
本文后续命令,均在 SSH 终端下完成。
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
## 同步镜像仓库
|
## 同步镜像仓库
|
||||||
@@ -96,7 +94,7 @@ MS Name/IP address Stratum Poll Reach LastRx Last sample
|
|||||||
## 检查 CPU 当前调度器
|
## 检查 CPU 当前调度器
|
||||||
cpufreq-info
|
cpufreq-info
|
||||||
```
|
```
|
||||||
**设备 CPU - J4125 参考输出** :
|
**设备 CPU - J4125 参考输出**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
## J4125 参考输出
|
## J4125 参考输出
|
||||||
@@ -115,7 +113,7 @@ analyzing CPU 0:
|
|||||||
current CPU frequency is 1.84 GHz.
|
current CPU frequency is 1.84 GHz.
|
||||||
```
|
```
|
||||||
|
|
||||||
**设备 CPU - N6005 参考输出** :
|
**设备 CPU - N6005 参考输出**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
## N6005 参考输出
|
## N6005 参考输出
|
||||||
@@ -182,7 +180,6 @@ performance powersave
|
|||||||
|
|
||||||
`vim` 编辑器,按 `i` 键进入编辑模式,`esc` 键退出编辑模式,`:wq` 命令保存退出。
|
`vim` 编辑器,按 `i` 键进入编辑模式,`esc` 键退出编辑模式,`:wq` 命令保存退出。
|
||||||
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
## 修改 cpufrequtils 配置文件
|
## 修改 cpufrequtils 配置文件
|
||||||
vim /etc/init.d/cpufrequtils
|
vim /etc/init.d/cpufrequtils
|
||||||
@@ -193,6 +190,7 @@ ENABLE="true"
|
|||||||
GOVERNOR="powersave" ## 修改本行的调度器为 powersave
|
GOVERNOR="powersave" ## 修改本行的调度器为 powersave
|
||||||
MAX_SPEED="0"
|
MAX_SPEED="0"
|
||||||
MIN_SPEED="0"
|
MIN_SPEED="0"
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
PVE 服务器重启完成后需再次查看 CPU 调度器,检验配置文件是否生效。
|
PVE 服务器重启完成后需再次查看 CPU 调度器,检验配置文件是否生效。
|
||||||
@@ -278,6 +276,7 @@ cd /etc/apt/apt.conf.d
|
|||||||
vim 20auto-upgrades
|
vim 20auto-upgrades
|
||||||
|
|
||||||
## 删除里面全部内容并填写以下内容
|
## 删除里面全部内容并填写以下内容
|
||||||
|
|
||||||
APT::Periodic::Update-Package-Lists "1";
|
APT::Periodic::Update-Package-Lists "1";
|
||||||
APT::Periodic::Unattended-Upgrade "5";
|
APT::Periodic::Unattended-Upgrade "5";
|
||||||
APT::Periodic::AutocleanInterval "1";
|
APT::Periodic::AutocleanInterval "1";
|
||||||
@@ -321,6 +320,7 @@ vim 50unattended-upgrades
|
|||||||
"origin=Proxmox,codename=${distro_codename},label=Proxmox Ceph Debian Repository";
|
"origin=Proxmox,codename=${distro_codename},label=Proxmox Ceph Debian Repository";
|
||||||
|
|
||||||
## 在配置文件末尾增加以下配置项,代表启用,并调整参数
|
## 在配置文件末尾增加以下配置项,代表启用,并调整参数
|
||||||
|
|
||||||
Unattended-Upgrade::AutoFixInterruptedDpkg "true";
|
Unattended-Upgrade::AutoFixInterruptedDpkg "true";
|
||||||
|
|
||||||
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
|
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
|
||||||
@@ -344,10 +344,12 @@ Unattended-Upgrade::Automatic-Reboot-Time "05:00";
|
|||||||
systemctl edit apt-daily-upgrade.timer
|
systemctl edit apt-daily-upgrade.timer
|
||||||
|
|
||||||
## 根据文件中的提示,在中间空白处填入以下内容
|
## 根据文件中的提示,在中间空白处填入以下内容
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=
|
OnCalendar=
|
||||||
OnCalendar=02:00
|
OnCalendar=02:00
|
||||||
RandomizedDelaySec=0
|
RandomizedDelaySec=0
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
设置完成后,重启自动更新触发器。
|
设置完成后,重启自动更新触发器。
|
||||||
@@ -417,9 +419,11 @@ update-grub
|
|||||||
vim /etc/modules
|
vim /etc/modules
|
||||||
|
|
||||||
## 添加以下系统模块
|
## 添加以下系统模块
|
||||||
|
|
||||||
vfio
|
vfio
|
||||||
vfio_iommu_type1
|
vfio_iommu_type1
|
||||||
vfio_pci
|
vfio_pci
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
使用以下命令更新 `initramfs` ,更新完成后,建议重启 PVE 服务器。
|
使用以下命令更新 `initramfs` ,更新完成后,建议重启 PVE 服务器。
|
||||||
|
|||||||
Reference in New Issue
Block a user