差異處
這裏顯示兩個版本的差異處。
下次修改 | 前次修改 | ||
tech:pve6to7 [2021/07/31 18:37] – 建立 jonathan | tech:pve6to7 [2022/06/22 08:54] (目前版本) – [執行升級] jonathan | ||
---|---|---|---|
行 1: | 行 1: | ||
====== PVE 6 升級到 7 紀錄 ====== | ====== PVE 6 升級到 7 紀錄 ====== | ||
+ | < | ||
+ | **實際採用 PEV 6 與 PVE 7 兩組 Cluster 並存的模式移轉運行, | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 60%> | ||
+ | * 參考 - https:// | ||
+ | * 升級 cgroup-v2 需要讓 CT 內的 OS 升級至版本 Exp. CentOS 7 -> CentOS 8 | ||
+ | * 強制設定使用舊版 cgroup 似乎不是那容易搞定 [[https:// | ||
+ | * 因環境有大量 CT 使用 CentOS 7, 考慮升級過程還能讓服務持續運作, | ||
+ | </ | ||
+ | |||
依照官方的 wiki 說明升級程序, | 依照官方的 wiki 說明升級程序, | ||
行 6: | 行 17: | ||
- 將現在 PVE 6 所有主機都先生級到最新版本 Exp. 6.4-13 (有更新到 linux-kernel 需要重開機) | - 將現在 PVE 6 所有主機都先生級到最新版本 Exp. 6.4-13 (有更新到 linux-kernel 需要重開機) | ||
- 有同時安裝 PBS(Proxmox Backup Server)需要先將 PBS 升級到 2.x 參考 [[tech: | - 有同時安裝 PBS(Proxmox Backup Server)需要先將 PBS 升級到 2.x 參考 [[tech: | ||
- | - Reliable access to all configured storage | ||
- | - A healthy cluster | ||
- | - Valid and tested backup of all VMs and CTs (in case something goes wrong) | ||
- | - Correct configuration of the repository | ||
- | - At least 4 GiB free disk space on the root mount point. | ||
- | - Check known upgrade issues | ||
- | |||
- 確定可以穩定存取每一台的參數檔儲存區 (萬一有異常可以直接進去手動修改) | - 確定可以穩定存取每一台的參數檔儲存區 (萬一有異常可以直接進去手動修改) | ||
- 確定目前的 Cluster 是健康穩定狀態 | - 確定目前的 Cluster 是健康穩定狀態 | ||
- 驗證與測試所有 VM 與 CT 的備份都是正確 (萬一出現災難還有降災還原的機會) | - 驗證與測試所有 VM 與 CT 的備份都是正確 (萬一出現災難還有降災還原的機會) | ||
- 確定是正確升級存儲庫的配置 | - 確定是正確升級存儲庫的配置 | ||
- | - 根目錄至少要有 | + | - 根目錄至少要有 |
- | - Ceph: upgrade the Ceph cluster to Nautilus after you have upgraded: Follow the guide Ceph Luminous to Nautilus | + | - [[https:// |
- | - [[https:// | + | |
==== 執行升級 ==== | ==== 執行升級 ==== | ||
- | - 所有主機都執行升級檢測工具 <code sh>pve5to6</code>正常應該只會出現一個警告與一個錯誤 | + | - 所有主機都執行升級檢測工具 <cli>pve6to7 --full</cli> 如果有使用 CT 裡面是 CentOS7/ |
- | - 警告 : < | + | WARN: Found at least one CT (103) which does not support running in a unified cgroup v2 layout. |
- | | + | |
- | - 遷移或關閉 | + | </ |
- | - 再次執行 pve5to6 已經沒有警告項目 | + | - 將所有 |
- | - 關閉所有主機 | + | - 避免升級 PVE 7 後會更變 Bridge 的 MAC , 所以可以選擇以下其中一個方式處理: |
- | - 每個節點都執行完成關閉 pve-ha-lrm | + | * 安裝 ifupdown2 |
- | - 設定 Corosync 3 存儲庫 | + | apt install ifupdown2 |
- | - 執行更新 | + | ifreload |
+ | </cli> | ||
+ | * 在 / | ||
+ | : | ||
+ | auto vmbr0 | ||
+ | iface vmbr0 inet static | ||
+ | address 192.168.X.Y/24 | ||
+ | hwaddress aa: | ||
+ | # ... remaining options | ||
+ | </cli> | ||
+ | - 更新 | ||
apt update | apt update | ||
- | apt list --upgradable | ||
apt dist-upgrade | apt dist-upgrade | ||
- | </code> | + | sed -i 's/buster\/updates/ |
- | - 確認 Cluster 是否都正確< | + | </cli> |
- | | + | - 進行 Debian Bullseye |
- | systemctl start pve-ha-lrm | + | |
- | systemctl start pve-ha-crm | + | |
- | </code> | + | |
- | - 所有主機再都執行升級檢測工具 <code sh> | + | |
- | - 主機升級前, | + | |
- | - 再次確認目前執行環境是 | + | |
apt update | apt update | ||
apt dist-upgrade | apt dist-upgrade | ||
- | </code> | + | </cli>出現<cli>Fetched 480 MB in 29s (16.7 MB/s) |
- | - 修改 source.list | + | |
- | - 設定 PVE 6 的儲存庫 Exp. deb http:// | + | |
- | echo "deb http:// | + | |
- | </ | + | |
- | - 升級套件確認 <code sh> | + | |
- | apt update | + | |
- | apt list --upgradable | + | |
- | </ | + | |
- | - 執行升級程序 <code sh>apt dist-upgrade</ | + | |
- | - 出現以下訊息, | + | |
W: (pve-apt-hook) !! ATTENTION !! | W: (pve-apt-hook) !! ATTENTION !! | ||
- | W: (pve-apt-hook) You are attempting to upgrade from proxmox-ve '5.4-2' to proxmox-ve '6.2-1'. Please make sure to read the Upgrade notes at | + | W: (pve-apt-hook) You are attempting to upgrade from proxmox-ve '6.4-1' to proxmox-ve '7.1-1'. Please make sure to read the Upgrade notes at |
- | W: (pve-apt-hook) | + | W: (pve-apt-hook) |
W: (pve-apt-hook) before proceeding with this operation. | W: (pve-apt-hook) before proceeding with this operation. | ||
- | W: (pve-apt-hook) | + | W: (pve-apt-hook) |
W: (pve-apt-hook) Press enter to continue, or C^c to abort. | W: (pve-apt-hook) Press enter to continue, or C^c to abort. | ||
- | </file> | + | </cli>需要按下**[Enter]**才會繼續更新, |
- | - 會跳出一個說明 | + | --------------------- |
- | - 會詢問 /etc/issue 要不要修改 <- 預設 N, 不過我是選 Y | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | rm / | + | |
- | </ | + | |
- | + | ||
- | <note warning> | + | |
- | **zpool: symbol lookup error: / | + | |
- | 千萬不要立即重新開機, | + | |
- | root@TP-PVE-249:~# zpool list | + | |
- | NAME SIZE ALLOC | + | |
- | rpool | + | |
- | </ | + | |
- | + | ||
- | <note important> | + | |
- | <code sh> | + | |
- | 會出現應該可以解決問題的命令.. Exp. < | + | |
- | E: dpkg was interrupted, | + | |
- | </ | + | |
- | 所以就改下 **dpkg | + | |
- | </ | + | |
+ | apt (2.1.16) unstable; urgency=medium | ||
+ | : | ||
+ | : | ||
+ | </ | ||
+ | | ||
+ | | ||
+ | What would you like to do about it ? Your options are: | ||
+ | Y or I : install the package maintainer' | ||
+ | N or O : keep your currently-installed version | ||
+ | D : show the differences between the versions | ||
+ | Z : start a shell to examine the situation | ||
+ | The default action is to keep your current version. | ||
+ | *** issue (Y/ | ||
+ | </ | ||
+ | | ||
+ | | ||
+ | What would you like to do about it ? Your options are: | ||
+ | Y or I : install the package maintainer' | ||
+ | N or O : keep your currently-installed version | ||
+ | D : show the differences between the versions | ||
+ | Z : start a shell to examine the situation | ||
+ | The default action is to keep your current version. | ||
+ | *** sysctl.conf (Y/ | ||
+ | </ | ||
+ | - 重新開機就會 PVE 7.x | ||
===== 參考網址 ===== | ===== 參考網址 ===== | ||
- | |||
* https:// | * https:// | ||
{{tag> | {{tag> | ||