All Products
Search
Document Center

"mount:unknown filesystem type 'xfs" error appears when you attach a data disk to an ECS instance.

Last Updated: Dec 24, 2020

Problem description

The following error occurs when you attach a data disk to an ECS instance.

mount:unknown filesystem type 'xfs'

Cause

This problem is related to initramfs. Relevant files for the 3.10.0-862.el7.x86 _64 kernel are missing in the /boot directory. The following files are missing from a normal instance:

vmlinuz-3.10.0-862.el7.x86_64
initramfs-3.10.0-862.el7.x86_64.img
symvers-3.10.0-862.el7.x86_64.gz
System.map-3.10.0-862.el7.x86_64
config-3.10.0-862.el7.x86_64

Solution

Alibaba Cloud reminds you that:

  • Before you perform operations that may cause risks, such as modifying instance configurations or data, we recommend that you check the disaster recovery and fault tolerance capabilities of the instances to ensure data security.
  • You can modify the configurations and data of instances including but not limited to Elastic Compute Service (ECS) and Relational Database Service (RDS) instances. Before the modification, we recommend that you create snapshots or enable RDS log backup.
  • If you have authorized or submitted sensitive information such as the logon account and password in the Alibaba Cloud Management Console, we recommend that you modify such information in a timely manner.

Run the following commands in sequence to install the RPM package related to the kernel: Confirm that the data disk is mounted properly after the installation.

wget http://vault.centos.org/7.5.1804/os/x86_64/Packages/kernel-3.10.0-862.el7.x86_64.rpm
wget http://vault.centos.org/7.5.1804/os/x86_64/Packages/kernel-devel-3.10.0-862.el7.x86_64.rpm
wget http://vault.centos.org/7.5.1804/os/x86_64/Packages/kernel-headers-3.10.0-862.el7.x86_64.rpm
rpm -ivh kernel-*

References

If the ECS instance cannot be started after the data disk is attached and the error message "give root password for maintenance" is displayed, comment out the mount configurations of the data disk in file /etc/fstab.

Application scope

  • Elastic Compute Service