<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PVE</title>
	<atom:link href="https://www.hu365.dev/blog/tag/pve/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.hu365.dev</link>
	<description>Justin Woo（吴晓虎）的个人博客，生命不息，学习不止</description>
	<lastBuildDate>Sun, 18 Feb 2024 01:34:33 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>

<image>
	<url>https://www.hu365.dev/wp-content/uploads/2022/10/cropped-logo-正矩形.blue_-32x32.png</url>
	<title>PVE</title>
	<link>https://www.hu365.dev</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>PVE 6.1.3 升级 7.0 记录</title>
		<link>https://www.hu365.dev/blog/2022/12/193/</link>
		
		<dc:creator><![CDATA[Justin]]></dc:creator>
		<pubDate>Thu, 08 Dec 2022 03:33:15 +0000</pubDate>
				<category><![CDATA[折腾笔记]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PVE]]></category>
		<guid isPermaLink="false">https://www.hu365.dev/?p=193</guid>

					<description><![CDATA[参考文档： 一：升级到6.4.x 之前一直用的6.1.3，那首要任务是升级到6.4.x不过升级的过程也是困难重重 1.1：更换软件源 参考文档：Package Repositories &#8211; Proxmox VE 在执行更新时，出现未认证的错误提示， <a href="https://www.hu365.dev/blog/2022/12/193/" class="cosmoswp-btn">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<p>参考文档：</p>



<ul>
<li><a href="https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0">Upgrade from 6.x to 7.0 &#8211; Proxmox VE</a></li>
</ul>



<h2 class="wp-block-heading">一：升级到6.4.x</h2>



<p>之前一直用的<code>6.1.3</code>，那首要任务是升级到<code>6.4.x</code><br>不过升级的过程也是困难重重</p>



<h3 class="wp-block-heading">1.1：更换软件源</h3>



<p>参考文档：<a href="https://pve.proxmox.com/wiki/Package_Repositories">Package Repositories &#8211; Proxmox VE</a></p>



<p>在执行更新时，出现未认证的错误提示，这是因为在文件<br><code>/etc/apt/sources.list.d/pve-enterprise.list</code><br>中默认使用了企业版软件源，此处需要更换为免费版软件源</p>



<pre class="EnlighterJSRAW" data-enlighter-language="powershell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">#企业源
#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
#非订阅源
deb http://download.proxmox.com/debian/pve buster pve-no-subscription</pre>



<h3 class="wp-block-heading">1.2：生成公钥</h3>



<p>以为换了源就万事大吉？结果又出现<br><code>the following signatures couldn’t be verified because the public key is not available</code></p>



<p>看意思是公钥失效/不存在，正好找到一个类似问题，参照问答中的方式，重建公钥<br>参考链接：<a href="https://forum.proxmox.com/threads/public-key-not-available-when-using-apt-update.112108/">[SOLVED] &#8211; Public key not available when using apt update | Proxmox Support Forum</a></p>



<pre class="EnlighterJSRAW" data-enlighter-language="powershell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">#安装
wget https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
#验证
sha512sum -c &lt;(echo "7fb03ec8a1675723d2853b84aa4fdb49a46a3bb72b9951361488bfd19b29aab0a789a4f8c7406e71a69aabbc727c936d3549731c4659ffa1a08f44db8fdcebfa /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg")</pre>



<p>可惜，还是同样报错···这时又找到另一个文章：<br><a href="https://chrisjean.com/fix-apt-get-update-the-following-signatures-couldnt-be-verified-because-the-public-key-is-not-available/">Fix apt-get update “the following signatures couldn’t be verified because the public key is not available” </a></p>



<pre class="EnlighterJSRAW" data-enlighter-language="powershell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># XXXXXX 是错误提示中的公钥
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys XXXXXX</pre>



<p>具体方法、原因没来得及考究，不过问题算是解决了···</p>



<h3 class="wp-block-heading">1.3：扩容root</h3>



<p>以为万事大吉，但是更新过程却提示失败，在确认<code>root</code>剩余空间只有几百兆时，觉得这就是问题所在了<br>用指令<code><a rel="noreferrer noopener" href="https://www.daemon-systems.org/man/lvresize.8.html" target="_blank">lvresize</a></code>实现扩容<br>参考相关提问：<a href="https://forum.proxmox.com/threads/pve-root-directory-runs-out-of-space-why-and-what-should-i-do.102988/">pve-root directory runs out of space: Why and What should I do?</a><br>合并<code>local-lvm</code>、<code>swap</code>空间到<code>pve/root</code></p>



<pre class="EnlighterJSRAW" data-enlighter-language="powershell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 移除绑定，不影响数据
pvesm remove local-lvm

# 删除空间，会清除内容
lvremove /dev/pve/data

# 可选: 删除缓存空间，对于安装在低速介质的系统可能会影响速度
#lvremove /dev/pve/swap
# 移除启动加载
#sed -i '/ swap /d' /etc/fstab

# 增加空闲空间到 root
lvresize -l +100%FREE --resizefs /dev/pve/root</pre>



<p>在这之后，终于可以顺畅地更新了</p>



<h2 class="wp-block-heading">二：更新准备</h2>



<p>执行官方检测工具，检测升级环境</p>



<pre class="EnlighterJSRAW" data-enlighter-language="powershell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">pve6to7 --full</pre>



<p>把所有可修复的内容都修复，包括<code>FAILURES</code>、<code>WARNINGS</code>项</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
