Upgrading the Linux kernel
Note
This procedure is only required if your root disk is encapsulated, or if the systems to be upgraded are in an HA cluster.
To upgrade the Linux kernel after the Veritas Storage Foundation 5.0 software has been installed
-
Log in as superuser.
-
If you are upgrading a node in an HA cluster, perform the following steps:
-
From any node in the cluster, make the VCS configuration writable:
# haconf -makerw
-
Enter the following command to freeze HA service group operations on the node that is to be upgraded:
# hasys -freeze -persistent
nodename
-
Make the VCS configuration read-only:
# haconf -dump -makero
-
Check if the system's root disk is under VxVM control by running this command:
# df -v /
The root disk is under VxVM control if /dev/vx/dsk/rootvol
is listed as being mounted as the root (/
) file system. If so, unmirror and unencapsulate the root disk as described in the following steps:
-
Use the
vxplex
command to remove all the plexes of the volumes rootvol
, swapvol
, usr
, var
, opt
and home
that are on disks other than the root disk.
For example, the following command removes the plexes mirrootvol-01
, and mirswapvol-01
that are configured on a disk other than the root disk:
# vxplex -o rm dis mirrootvol-01 mirswapvol-01
Do not remove the plexes on the root disk that correspond to the original disk partitions.
-
Enter the following command to convert all the encapsulated volumes in the root disk back to being accessible directly through disk partitions instead of through volume devices. There must be at least one other disk in the
rootdg
disk group in addition to the root disk for vxunroot
to succeed.
# /etc/vx/bin/vxunroot
Following the removal of encapsulation, the system is rebooted from the unencapsulated root disk.
-
Upgrade Linux on the node, and then reboot the system to load the new kernel.
-
If you removed rootability in step 3, re-encapsulate and remirror the root disk as described in the "Administering Disks" chapter of the Veritas Volume Manager Administrator's Guide.
-
If you are upgrading a node in an HA cluster, perform the following steps:
-
Make the VCS configuration writable again from any other node in the cluster:
# haconf -makerw
-
Enter the following command on the upgraded node to unfreeze HA service group operations:
# hasys -unfreeze -persistent
nodename
-
Make the configuration read-only:
# haconf -dump -makero
-
Bring each service group online on the upgraded node:
# hagrp -online
service_group -sys
nodename
Repeat this entire procedure for each node in an HA cluster.