差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版 前次修改
下次修改
前次修改
tech:pve6_and_pve7 [2022/01/24 15:04] – [[Doing] 原本 PVE 6 主機的升級程序] jonathantech:pve6_and_pve7 [2022/06/03 18:50] (目前版本) – [讓 PVE 6 內的 CentOS7 的 CT 移轉至 PVE 7 的妥協做法] jonathan
行 18: 行 18:
   * 儘管這狀況可能在 PVE 8 就無法運作, 但目前還是最快的作法讓 PVE 6 的主機可以改裝成 PVE 7   * 儘管這狀況可能在 PVE 8 就無法運作, 但目前還是最快的作法讓 PVE 6 的主機可以改裝成 PVE 7
   * 在 PVE 7 的主機 kernel option 加上 systemd.unified_cgroup_hierarchy=0 來改變使用之前 CGroup 版本   * 在 PVE 7 的主機 kernel option 加上 systemd.unified_cgroup_hierarchy=0 來改變使用之前 CGroup 版本
-  - 進入 PVE 主機修改 /etc/kernel/cmdline <cli>+    * 使用 **Systemd-boot 開機方案** 進入 PVE 主機修改 
 +      - /etc/kernel/cmdline <cli>
 vi /etc/kernel/cmdline</cli><file> vi /etc/kernel/cmdline</cli><file>
 root=ZFS=rpool/ROOT/pve-1 boot=zfs systemd.unified_cgroup_hierarchy=0 root=ZFS=rpool/ROOT/pve-1 boot=zfs systemd.unified_cgroup_hierarchy=0
 </file> </file>
-  使用 proxmox-boot-tool refresh 工具來更新修改內容<cli>+      執行 proxmox-boot-tool refresh 工具來更新修改內容<cli>
 root@h470:~# proxmox-boot-tool refresh root@h470:~# proxmox-boot-tool refresh
 Running hook script 'proxmox-auto-removal'.. Running hook script 'proxmox-auto-removal'..
行 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
 </cli> </cli>
-  - 重新開機+    * 使用 **Grub 開機方案** 進入 PVE 主機修改 
 +      /etc/default/grub <cli> 
 +vi /etc/default/grub</cli><file> 
 +
 +GRUB_CMDLINE_LINUX="root=ZFS=rpool/ROOT/pve-1 boot=zfs systemd.unified_cgroup_hierarchy=0" 
 +
 +</file> 
 +      - 執行 update-grub 工具來更新修改內容<cli> 
 +root@TP-PVE-249:~# update-grub 
 +Generating grub configuration file ... 
 +Found linux image: /boot/vmlinuz-5.15.35-1-pve 
 +Found initrd image: /boot/initrd.img-5.15.35-1-pve 
 +Found linux image: /boot/vmlinuz-5.4.189-1-pve 
 +Found initrd image: /boot/initrd.img-5.4.189-1-pve 
 +Found linux image: /boot/vmlinuz-5.4.178-1-pve 
 +Found initrd image: /boot/initrd.img-5.4.178-1-pve 
 +Found linux image: /boot/vmlinuz-4.15.18-30-pve 
 +Found initrd image: /boot/initrd.img-4.15.18-30-pve 
 +Found linux image: /boot/vmlinuz-4.15.17-1-pve 
 +Found initrd image: /boot/initrd.img-4.15.17-1-pve 
 +Found memtest86+ image: /ROOT/pve-1@/boot/memtest86+.bin 
 +Found memtest86+ multiboot image: /ROOT/pve-1@/boot/memtest86+_multiboot.bin 
 +done 
 +</cli> 
 +  * 重新開機
   * 接下來就可以透過 PBS 將 PVE 6 備份的 CT 一一的還原啟用在 PVE 7 主機上    * 接下來就可以透過 PBS 將 PVE 6 備份的 CT 一一的還原啟用在 PVE 7 主機上 
  
-===== [Doing] 原本 PVE 6 主機的升級程序 =====+===== 原本 PVE 6 主機的升級程序 =====
   * Exp. 針對 aac 主機進行升級 (PVE 6 Cluster 還有其他主機 xpc)   * Exp. 針對 aac 主機進行升級 (PVE 6 Cluster 還有其他主機 xpc)
   - 先將 aac 主機內的 VM/CT 移走( Migrate 到 PVE 6 Cluster 的其他主機 Exp. xpc , 或 Backup/Restore 到 PVE 7 Cluster 新主機)   - 先將 aac 主機內的 VM/CT 移走( Migrate 到 PVE 6 Cluster 的其他主機 Exp. xpc , 或 Backup/Restore 到 PVE 7 Cluster 新主機)
行 46: 行 71:
   - 進行 PVE 6 升級 PVE 7 程序 [[https://www.ichiayi.com/tech/pve6to7|參考作法]]   - 進行 PVE 6 升級 PVE 7 程序 [[https://www.ichiayi.com/tech/pve6to7|參考作法]]
   - 加入 PVE 7 新的 Cluster   - 加入 PVE 7 新的 Cluster
 +  - 設定可以支援舊版 cgroup  [[https://www.ichiayi.com/tech/pve6_and_pve7#%E8%AE%93_pve_6_%E5%85%A7%E7%9A%84_centos7_%E7%9A%84_ct_%E7%A7%BB%E8%BD%89%E8%87%B3_pve_7_%E7%9A%84%E5%A6%A5%E5%8D%94%E5%81%9A%E6%B3%95|參考作法]]
 {{tag>pve backup restore}} {{tag>pve backup restore}}
  
  
  • tech/pve6_and_pve7.1643007874.txt.gz
  • 上一次變更: 2022/01/24 15:04
  • jonathan