summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMila-Nad <milania.nad@gmail.com>2025-09-15 11:47:51 +0200
committerGitHub <noreply@github.com>2025-09-15 10:47:51 +0100
commit33d5f7631738ac12255f71d4fa5d4a207445dc50 (patch)
treea1faec4c7eb11833287c8050f91feca1f088bcab /docs
parent44113897d3083484b53572bfa8b256a05e673c62 (diff)
downloadvyos-documentation-33d5f7631738ac12255f71d4fa5d4a207445dc50.tar.gz
vyos-documentation-33d5f7631738ac12255f71d4fa5d4a207445dc50.zip
Add new section: Recovery after Failed Upgrades (#1671)
Co-authored-by: Mila <lyudmila.ndl@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/operation/index.rst1
-rw-r--r--docs/operation/upgrade-recovery.rst64
2 files changed, 65 insertions, 0 deletions
diff --git a/docs/operation/index.rst b/docs/operation/index.rst
index 037c9286..b38ca8f9 100644
--- a/docs/operation/index.rst
+++ b/docs/operation/index.rst
@@ -8,5 +8,6 @@ Operation Mode
information
boot-options
+ upgrade-recovery
password-recovery
raid \ No newline at end of file
diff --git a/docs/operation/upgrade-recovery.rst b/docs/operation/upgrade-recovery.rst
new file mode 100644
index 00000000..e39d7e0d
--- /dev/null
+++ b/docs/operation/upgrade-recovery.rst
@@ -0,0 +1,64 @@
+.. _upgrade_recovery:
+
+
+##############################
+Recovery after Failed Upgrades
+##############################
+
+This section explains **VyOS’s upgrade recovery**, which restores the system to the last working version after a failed upgrade. It covers the following points:
+
+* :ref:`Configuration: <configuration>` How to enable upgrade recovery
+* :ref:`How it Works: <how_it_works>` Overview of the recovery process
+* :ref:`Cancelling Recovery: <cancelling_recovery>` Overview of the recovery process
+
+
+
+.. _configuration:
+
+*************
+Configuration
+*************
+.. warning:: Upgrade recovery is disabled by default. To use it, **enable it first**.
+
+To enable upgrade recovery, run the following command:
+
+.. cfgcmd::
+
+ set system option reboot-on-upgrade-failure [timeout <min>]
+
+* ``timeout <min>:`` The time in minutes (from 5 to 30) you have to cancel upgrade recovery. See :ref:`Cancelling Recovery <cancelling_recovery>`.
+
+.. _how_it_works:
+
+************
+How it Works
+************
+After a VyOS upgrade, the system monitors the boot process. Upon detecting a boot failure, VyOS initiates a revert to the last working version and displays the following warning:
+
+.. code-block:: none
+
+ Booting failed, reverting to previous image
+ Automatic reboot in xx minutes
+ Use "reboot cancel" to cancel
+
+If no action is taken, the reboot happens automatically after the configured timeout. Upon successful recovery and reboot, the following message appears:
+
+.. code-block:: none
+
+ WARNING: Image update to "VyOS 1.5.xxxx" failed
+ Please check the logs:
+ /usr/lib/live/mount/persistence/boot/NAME/rw/var/log
+ Message is cleared on next reboot!
+
+.. _cancelling_recovery:
+
+*******************
+Cancelling Recovery
+*******************
+Upon detecting a boot failure, you have the predefined timeout to cancel upgrade recovery. This is useful if you want to troubleshoot the faulty VyOS version on your own.
+
+To cancel upgrade recovery, run the following command:
+
+.. code-block:: none
+
+ reboot cancel \ No newline at end of file