OS vendors often release maintenance patches to their products to address security issues and other minor product defects. They may require customers to regularly apply these patches to conform with maintenance contracts or to be eligible for vendor support. Prior to this release, it was not possible to install a kernel patch or upgrade on a root encapsulated system: it was necessary to unencapsulate the system, apply the upgrade, then reencapsulate the root disk. It is now possible to upgrade the OS kernel on a root encapsulated system.
Note: |
The procedures in this section only apply to minor kernel upgrades or patches. These procedures do not apply to a full upgrade of the Linux operating system. |
To upgrade the OS kernel on a root encapsulated system
# . /etc/vx/modinst-vxvm
# upgrade_encapped_root
The above commands determine if the kernel upgrade can be applied to the encapsulated system. If the upgrade is successful, the command displays the following message:
# upgrade_encapped_root The VxVM root encapsulation upgrade has succeeded. Please reboot the machine to load the new kernel.
After the next reboot, the system restarts with the patched kernel and a VxVM encapsulated root volume.
Some patches may be completely incompatible with the installed version of VxVM. In this case the script fails, with the following message:
# upgrade_encapped_root FATAL ERROR: Unencapsulate the root disk manually. VxVM cannot re-encapsulate the upgraded system.
The upgrade script saves a system configuration file that can be used to boot the system with the previous configuration. If the upgrade fails, follow the steps to restore the previous configuration.
To restore the previous configuration
The system displays a series of potential boot configurations, named after the various installed kernel versions and VxVM root encapsulation versions.
For example:
Red Hat Enterprise Linux Server (2.6.18-53.el5) Red Hat Enterprise Linux Server (2.6.18-8.el5) vxvm_root_backup vxvm_root
To upgrade the OS kernel on a root encapsulated system using manual steps
See Encapsulating and mirroring the root disk.
However, after the next reboot, VxVM may not be able to run correctly, making all VxVM volumes unavailable. To restore the VxVM volumes, you must remove the kernel upgrade, as follows:
# rpm -e upgrade_kernel_package_name
For example:
# rpm -e kernel-2.6.18-53.el5