差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
tech:pve6_and_pve7 [2022/01/24 08:38] – [原本 PVE 6 主機的升級程序] jonathan | tech:pve6_and_pve7 [2022/06/03 18:50] (目前版本) – [讓 PVE 6 內的 CentOS7 的 CT 移轉至 PVE 7 的妥協做法] jonathan | ||
---|---|---|---|
行 18: | 行 18: | ||
* 儘管這狀況可能在 PVE 8 就無法運作, | * 儘管這狀況可能在 PVE 8 就無法運作, | ||
* 在 PVE 7 的主機 kernel option 加上 systemd.unified_cgroup_hierarchy=0 來改變使用之前 CGroup 版本 | * 在 PVE 7 的主機 kernel option 加上 systemd.unified_cgroup_hierarchy=0 來改變使用之前 CGroup 版本 | ||
- | | + | * 使用 **Systemd-boot 開機方案** |
+ | - / | ||
vi / | vi / | ||
root=ZFS=rpool/ | root=ZFS=rpool/ | ||
</ | </ | ||
- | | + | |
root@h470: | root@h470: | ||
Running hook script ' | Running hook script ' | ||
行 31: | 行 32: | ||
Copying kernel and creating boot-entry for 5.13.19-3-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 主機上 | * 接下來就可以透過 PBS 將 PVE 6 備份的 CT 一一的還原啟用在 PVE 7 主機上 | ||
- | ===== [Doing] | + | ===== 原本 PVE 6 主機的升級程序 ===== |
- | - 先將主機內的 VM/CT 移走( Migrate 到 PVE 6 Cluster 的其他節點主機, 或 Backup/ | + | * Exp. 針對 aac 主機進行升級 (PVE 6 Cluster 還有其他主機 xpc) |
- | - 離開原有 PVE 6 Cluster | + | - 先將 |
- | - 進行 PVE 6 升級 PVE 7 程序 | + | - 在 xpc 內將 aac 由原有 PVE 6 Cluster |
+ | - 將 aac 主機重新開機, | ||
+ | - 進行移除整個 Cluster [[https:// | ||
+ | - 刪除原本 PVE 6 Cluster 內其他主機目錄 Exp. xpc < | ||
+ | cd / | ||
+ | rm -rf xpc | ||
+ | </ | ||
+ | - 進行 PVE 6 升級 PVE 7 程序 | ||
- 加入 PVE 7 新的 Cluster | - 加入 PVE 7 新的 Cluster | ||
+ | - 設定可以支援舊版 cgroup | ||
{{tag> | {{tag> | ||