| 1 | # 列出你的 Proxmox 容器 (LXC) 的狀況清單 |
| 2 | pct list |
| 3 | |
| 4 | # 開啟 ID 為 101 的容器,讓它動起來 |
| 5 | pct start 101 |
| 6 | |
| 7 | --- |
| 8 | |
| 9 | # 設定 PVE 集群的預期節點數量(可以用來加減人手) |
| 10 | pvecm expected 1 |
| 11 | pvecm expected 2 |
| 12 | pvecm expected 3 |
| 13 | |
| 14 | # 檢查一下當前集群的狀況,看看一切是否正常 |
| 15 | pvecm status |
| 16 | |
| 17 | --- |
| 18 | |
| 19 | # 檢查 Corosync 集群伺服器的狀態,確保它們運作正常 |
| 20 | corosync-cfgtool -s |
| 21 | |
| 22 | --- |
| 23 | |
| 24 | # 打開 Proxmox 的 Corosync 配置檔(這是集群的核心設定) |
| 25 | vi /etc/pve/corosync.conf |
| 26 | |
| 27 | # 別忘了重啟相關服務,這樣更改才會生效(按順序來哦) |
| 28 | systemctl restart corosync |
| 29 | systemctl restart pve-cluster |
| 30 |
timmy / 🧰 Proxmox 指令一把抓!從 VM 到 Cluster 全面控場
Last active 1 week ago
從 LXC 到 VM、儲存、權限、Cluster 甚至備份還原,Proxmox 操作指令大全,一次搞懂不求人 🚀
Revision c8801cfae35ce9dd87f4fd4f56f6f96ab95ea4b5
Comments 0
Log in to leave a comment