升级 Unraid
升级 Unraid OS 可确保您获得最新功能、安全更新和硬件支持。本页概述了标准升级过程,提供了疑难解答技巧和手动升级选项。
:::note[Prerequisites]
在开始升级之前,请确保完整备份您的USB闪存设备。有关更多详细信息,请参阅备份闪存设备。
:::
- 备份您的闪存驱动器和任何重要数据。
- 阅读您计划安装版本的发布说明。
- 将所有插件更新至最新版本。
- 可选步骤,停止阵列后再进行。
- Update Unraid OS using the Tools → Update OS page.
- 重启服务器以完成升级。
标准升级流程
- Unraid 7.x及更高版本
- Unraid 6.11到6.12
使用新的 更新操作系统工具 升级 Unraid,界面友好:
- 在 WebGUI 中,点击右上角的下拉菜单并选择检查更新或者进入工具 → 更新OS。
- 选择 稳定 通道以获取稳定版本,或选择 下一个 通道以获取测试版和 RC。
- 点击 查看更改日志开始更新。 更改日志将显示,供您在点击 继续 之前查看。
- 单击 确认并开始更新 以应用最新的稳定版本。
- 当提示时,重启服务器以完成升级。
您可能需要登录到 Unraid 帐户以访问更新,尤其是对于“下一个”分支版本。
对于 Unraid 版本 6.11 和 6.12,请遵循传统更新方法:
- 在 WebGUI 中,转到 工具 → 更新OS。
- 点击 检查更新。
- 如果有新版本可用,点击 更新。
- 当提示时,重启服务器。
When upgrading to Unraid 7.x, you may see warnings about ZFS pool feature upgrades during boot or in the WebGUI. These warnings are not a sign of a problem; they simply indicate that your ZFS pool is using features from an older version of ZFS.
升级您的池并不紧急,但如果您决定升级,请注意它可能无法与以前的 Unraid 版本一起使用。这意味着进行升级后,您可能无法返回到以前的 Unraid 版本。
如以往一样,升级您的ZFS池之前,请记得备份数据。
排查升级问题
如果升级后遇到问题,请查看下面相关部分获取帮助。
升级后 Docker 容器无法正常工作 - 点击以展开/收起
如果您遇到类似 "layers from manifest don't match image configuration" 的错误,您可能需要重新构建您的 Docker 镜像文件。以下是方法:
VMs 显示“无法获取接口 MTU”或网络错误 - 点击以展开/收起
If you encounter errors like "layers from manifest don't match image configuration," you may need to rebuild your Docker image file. Here’s how:
- Go to Settings → Docker and stop the Docker service.
- 然后键入
cd efi/boot。 - 最后,键入
bootx64.efi。 - 导航到 应用 标签页,选择 先前的应用,勾选要重新安装的应用并点击 安装 xx 应用。
VNC 无法访问或速度慢 - 点击以展开/收起
VM 无法启动(出现 EFI shell) - 点击以展开/收起
VMs 显示“无法获取接口 MTU”或网络错误 - 点击以展开/收起
VM 无法启动(出现 EFI shell) - 点击以展开/收起
Manual downgrade
Manual downgrades are infrequently necessary but may be needed if you can't access the WebGUI or need to revert to a prior version. Before proceeding, it's important to back up your USB flash device, details of which you can find in Backing up your flash device.
只有在无法访问 WebGUI 的情况下才使用这些方法:
- 最简单的方法
- 命令行方法
- 从 版本历史 下载所需的 Unraid 版本 ZIP 文件。
- 在电脑上解压文件。
- 访问
flash共享或者将 USB 闪存设备连接到电脑。 - 如果不存在,请创建一个
previous目录。 - 将所有
bz*和changes.txt文件移到previous目录中。 - 将新
bz*和changes.txt文件复制到闪存驱动器根目录。 - 重新启动您的服务器。
这种方法仅应在您熟悉 Linux 命令行时使用,因为操作错误可能会让系统无法启动。
-
从 版本历史 复制所需 Unraid 版本 ZIP 文件的 URL。
-
通过 SSH 或控制台登录。
-
逐个执行以下命令(将
<URL>替 换为复制的链接):cd /tmp
rm -f unraid.zip
rm -rf unraid_install
wget -O unraid.zip <URL>
[[ -s unraid.zip ]] && echo "OK to continue" || echo "STOP: the file was not downloaded"
unzip -d unraid_install unraid.zip
[[ -s unraid_install/bzroot ]] && echo "OK to continue" || echo "STOP: the file was not extracted properly"
[[ ! -d /boot/previous ]] && mkdir /boot/previous
mv /boot/bz* /boot/previous
mv /boot/changes.txt /boot/previous
cp unraid_install/bz* /boot
cp unraid_install/changes.txt /boot
sync -f /boot
sleep 5
reboot
When using the Downgrade OS tool (WebGUI), the tool will automatically handle the following:
- System validation: It checks that the downgrade is safe to perform.
- File backup: A backup of your current system files will be created.
- Version verification: The tool ensures that the files for the target version are valid and complete.
- File replacement: It replaces the current OS files with the files from the previous version.
- Configuration preservation: Your current settings will be maintained.
- System preparation: The system will be prepared for the previous version.
- Reboot scheduling: A reboot will be scheduled to finish the downgrade.
Post-downgrade verification
After the downgrade is complete and your server has rebooted:
- Check the version: Verify that you're running the version of Unraid you expect.
- Test core functionality: Ensure that the array, Docker, and VM services are working properly.
- Verify plugins: Check that your installed plugins are compatible and functioning as expected.
- Test Docker containers: Start your Docker containers and confirm they are working correctly.
- Check VMs: If you have any virtual machines (VMs), make sure they start and operate properly. See VM setup for configuration guidance.
- Monitor system logs: Keep an eye on the system logs for any error messages. Use diagnostics tools to capture detailed system information.
Troubleshooting downgrade issues
Downgrade option not available - Click to expand/collapse
If you don’t see an option to downgrade:
- Check system history: Make sure you've previously upgraded from a compatible version.
- Verify file integrity: Previous version files might be corrupted or missing.
- Check compatibility: The earlier version may not be compatible with your current hardware.
- Manual method: If needed, follow the manual downgrade methods outlined on this page.
Downgrade fails during process - Click to expand/collapse
If the downgrade process doesn't go as planned:
- Don’t panic: Your system should still work with the current version.
- Check logs: Take a look at the system logs to find specific error messages. Use diagnostics tools for comprehensive log analysis.
- Verify files: Ensure that all required files for the target version are available.
- Try the manual method: If the tool doesn't work, consider using the manual downgrade methods.
- Contact support: If problems continue, reach out to Unraid support with your diagnostics.
System won't boot after downgrade - Click to expand/collapse
If your system doesn’t boot after downgrading:
- Boot from USB: Use another computer to access your USB flash device. See boot troubleshooting for detailed recovery steps.
- Restore from backup: Copy your backup files back to the USB device.
- Check file integrity: Make sure all system files are present and not damaged.
- Try Safe Mode: Boot into Safe Mode for further troubleshooting.
- Manual recovery: If necessary, utilize the manual recovery methods.
Plugins or Docker containers not working - Click to expand/collapse
After downgrading, some plugins or containers may not function properly:
- Update plugins: Look for plugin updates that work with the downgraded version. Check Community Applications for compatible versions.
- Rebuild Docker: Delete and recreate your Docker image file. See Docker troubleshooting for detailed steps.
- Check dependencies: Ensure that all necessary dependencies are available.
- Plugin compatibility: Some plugins might not support earlier Unraid versions.
- UI/WebGUI feature-dependent plugins: Plugins relying on newer WebGUI features may not operate correctly on older versions.
- Theme plugins: Visual customization plugins may require updates or removal if they are incompatible.