| name | cis-aws-storage-4.6 |
| description | Ensure EC2 Kernel compatibility with Lustre |
| category | cis-storage-services |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","storage","fsx","lustre","kernel","compatibility","ubuntu","level-2"] |
| cis_id | 4.6 |
| cis_benchmark | CIS AWS Storage Services Benchmark v1.0.0 |
| tech_stack | ["aws","linux"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-storage-4.5","cis-aws-storage-4.7"] |
| prerequisites | ["cis-aws-storage-4.2","cis-aws-storage-4.5"] |
| severity_boost | {} |
4.6 Ensure EC2 Kernel compatibility with Lustre (Manual)
Profile Applicability
Description
The latest kernel included with the Ubuntu Amazon EC2 AMI is not compatible with the Lustre service, which is crucial for mounting the cache on your EC2 instance. To downgrade your kernel, specific prerequisites must be met if you are using the default Ubuntu machine image as of November 8, 2023.
Rationale
The latest kernel version is not supported by Lustre, and meeting the prerequisites for downgrading will allow you to leverage Lustre's high-performance file system capabilities effectively. This ensures optimal data access and processing efficiency on your EC2 instance.
Impact
Using an incompatible kernel version will prevent the Lustre client from functioning properly, resulting in inability to mount FSx File Cache and loss of high-performance file system capabilities.
Audit Procedure
SSH to EC2 Instance
- Connect to your EC2 instance:
ssh -i "{KEY.pem}" ubuntu@{your-ec2-instance}
- Check current kernel version:
uname -r
- List available Lustre packages and verify compatible kernel:
sudo apt-cache search lustre-client-modules
- Verify the most recent compatible version:
- The output will show a list of supported modules with corresponding kernel order from top to bottom
- The most recent version should be similar to "lustre-client-modules-5.15.0-1049-aws"
- Ensure this matches the kernel requirements (5.15.0.1020-aws or later for Ubuntu 22.02)
Expected Result
The EC2 instance should be running a kernel version compatible with Lustre:
- For Ubuntu 22.02: kernel 5.15.0-1049-aws or compatible version
- Lustre client modules available for the current kernel version
- Kernel version supports both x86 based EC2 instances and Arm-based EC2 instances powered by AWS Graviton processors
Remediation
SSH to EC2 Instance
Follow the steps to downgrade your kernel to a Lustre-compatible version:
- List all of the available Lustre packages:
apt-cache search lustre-client-modules