How Can I Upgrade the Kernel of a Linux ECS?
Upgrade Notes
If tools have been installed on the Linux ECS, you must uninstall the tools before upgrading the ECS kernel. Otherwise, the following issues may occur after the kernel is upgraded:
- The Linux ECS cannot identify the NIC, leading to network access failure.
- The Linux ECS cannot identify data disks. As a result, starting system mount points fails, and the ECS cannot start.
Background
PVOPS is the Xen driver delivered with Linux distributions.
Procedure
- Log in to the ECS.
- Check whether the Tools have been installed on the Linux ECS, taking the SUSE Linux Enterprise Server 11 SP1 as an example.
- Run the following command on any directory to view the ECS driver:
Figure 1 Viewing the ECS driver
- Run the following command to view the driver path, taking a disk driver as an example:
Figure 2 Viewing the driver path
- Check whether pvdriver is contained in the driver path.
- Run the following command on any directory to view the ECS driver:
- Uninstall the tools.
- Run the following command to switch to user root:
su root
- Run the following command to uninstall Tools in the root directory:
After Tools is uninstalled, ECS monitoring metrics may be lost and monitoring data cannot be collected. To resolve this issue, you can compile and install the UVP Tools. For details, see https://github.com/UVP-Tools/UVP-Tools/.
- Run the following command to switch to user root:
- Upgrade the kernel using the method determined by yourself.
- Check whether the Linux ECS driver supports PVOPS. Use any one of the following methods:
- Method 1:
- Method 2:
Check whether the ECS driver has a Xen driver module. If so, the ECS driver supports PVOPS. To obtain the data, run the following command in any directory:
lsmod | grep xen
Figure 3 Viewing the ECS driver
The name of a Xen driver module varies depending on the Linux distribution OS. You only need to check whether the driver has a driver module with the XEN field.
- Method 3:
Run the cat /boot/config* | grep -i xen command in any directory and check whether the XEN field is contained in the command output. If so, the ECS driver supports PVOPS.
Figure 4 Viewing the XEN field
- Upgrade the kernel based on the result obtained in step 5.
- Install the open-source component xen-kmp so that the ECS driver supports PVOPS. For instructions about how to use PVOPS, see "Optimizing a Linux Private Image" in Image Management Service User Guide.
- (Optional) Configure required parameters based on the defect list for certain Linux distribution OSs.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.