差異處
這裏顯示兩個版本的差異處。
下次修改 | 前次修改 | ||
tech:pve6_and_pve7 [2022/01/10 10:41] – 建立 jonathan | tech:pve6_and_pve7 [2022/06/03 18:50] (目前版本) – [讓 PVE 6 內的 CentOS7 的 CT 移轉至 PVE 7 的妥協做法] jonathan | ||
---|---|---|---|
行 12: | 行 12: | ||
* 透過改用 Ubuntu 20 的方式進行服務的重新安裝與設定 | * 透過改用 Ubuntu 20 的方式進行服務的重新安裝與設定 | ||
+ | ===== 讓 PVE 6 內的 CentOS7 的 CT 移轉至 PVE 7 的妥協做法 ===== | ||
+ | * 參考網址 | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * 儘管這狀況可能在 PVE 8 就無法運作, | ||
+ | * 在 PVE 7 的主機 kernel option 加上 systemd.unified_cgroup_hierarchy=0 來改變使用之前 CGroup 版本 | ||
+ | * 使用 **Systemd-boot 開機方案** 進入 PVE 主機修改 | ||
+ | - / | ||
+ | vi / | ||
+ | root=ZFS=rpool/ | ||
+ | </ | ||
+ | - 執行 proxmox-boot-tool refresh 工具來更新修改內容< | ||
+ | root@h470: | ||
+ | Running hook script ' | ||
+ | Running hook script ' | ||
+ | Re-executing '/ | ||
+ | Copying and configuring kernels on / | ||
+ | Copying kernel and creating boot-entry for 5.13.19-2-pve | ||
+ | Copying kernel and creating boot-entry for 5.13.19-3-pve | ||
+ | </ | ||
+ | * 使用 **Grub 開機方案** 進入 PVE 主機修改 | ||
+ | - / | ||
+ | vi / | ||
+ | : | ||
+ | GRUB_CMDLINE_LINUX=" | ||
+ | : | ||
+ | </ | ||
+ | - 執行 update-grub 工具來更新修改內容< | ||
+ | root@TP-PVE-249: | ||
+ | Generating grub configuration file ... | ||
+ | Found linux image: / | ||
+ | Found initrd image: / | ||
+ | Found linux image: / | ||
+ | Found initrd image: / | ||
+ | Found linux image: / | ||
+ | Found initrd image: / | ||
+ | Found linux image: / | ||
+ | Found initrd image: / | ||
+ | Found linux image: / | ||
+ | Found initrd image: / | ||
+ | Found memtest86+ image: / | ||
+ | Found memtest86+ multiboot image: / | ||
+ | done | ||
+ | </ | ||
+ | * 重新開機 | ||
+ | * 接下來就可以透過 PBS 將 PVE 6 備份的 CT 一一的還原啟用在 PVE 7 主機上 | ||
+ | |||
+ | ===== 原本 PVE 6 主機的升級程序 ===== | ||
+ | * Exp. 針對 aac 主機進行升級 (PVE 6 Cluster 還有其他主機 xpc) | ||
+ | - 先將 aac 主機內的 VM/CT 移走( Migrate 到 PVE 6 Cluster 的其他主機 Exp. xpc , 或 Backup/ | ||
+ | - 在 xpc 內將 aac 由原有 PVE 6 Cluster 移除 [[https:// | ||
+ | - 將 aac 主機重新開機, | ||
+ | - 進行移除整個 Cluster [[https:// | ||
+ | - 刪除原本 PVE 6 Cluster 內其他主機目錄 Exp. xpc <cli> | ||
+ | cd / | ||
+ | rm -rf xpc | ||
+ | </ | ||
+ | - 進行 PVE 6 升級 PVE 7 程序 [[https:// | ||
+ | - 加入 PVE 7 新的 Cluster | ||
+ | - 設定可以支援舊版 cgroup | ||
{{tag> | {{tag> | ||