Atomic change
Old BE remains untouched. New BE contains patched image. Rollback just means booting previous BE.
Solaris · Patch Rollback & Troubleshooting in Solaris 11
Solaris · Lesson 24
Even with careful planning, patches can break things. This lesson shows how to handle two critical scenarios: server not booting after patching, and application issues after patching. You will learn how to rollback using Boot Environments (BEs) both when the server is up and when it is stuck during boot.
components/solaris/solarisLessons.js.In Solaris 11, patching is designed around Boot Environments (BEs). Instead of overwriting the running root filesystem, pkg update creates a new ZFS clone (new BE), patches it, and activates it for the next boot.
Old BE remains untouched. New BE contains patched image. Rollback just means booting previous BE.
You rarely downgrade packages manually. Instead you boot into the older BE where everything was OK.
If patch breaks boot or apps, you simply change active BE via beadm or boot menu/OBP.
The following flows cover both situations: rollback when system is running, and rollback when system does not boot cleanly.
Common case: OS patched successfully, but application/library/version issues appear.
Safest rollback: switch active BE back to previous version, then reboot cleanly.
Confirm you are back on old BE and validate applications.
If OS doesn’t boot properly after patch, use OBP (OpenBoot PROM) boot menu to choose another BE.
boot -L shows available Solaris boot environments; choose the previous known-good BE.
If boot device is misconfigured, devalias helps you find correct disk alias.
On x86, Solaris presents a boot menu with available BEs (similar to GRUB/loader).
Typical situation: OS updated, but application not yet certified or library versions changed.
pkg undo-style experiments on production unless specifically recommended by Oracle; rely on BEs instead./var/adm/messages, /var/log, pkg history) to understand what went wrong before attempting patch again.Once you are comfortable with BEs, patching and rollback in Solaris 11 becomes much less scary — it's basically branch & switch rather than manual downgrade.