What do I do if file systems fail to automatically mount after the project quota feature is enabled?

Updated at: 2024-07-03 02:29

This topic describes the cause of and solution to the issue that file systems fail to automatically mount after the project quota feature is enabled on a Linux Elastic Compute Service (ECS) instance.

Problem description

After you enable the project quota feature on a Linux ECS instance, file systems fail to automatically mount on the instance and error messages that are similar to the error messages shown in the following figure appear.文件系统挂载失败

Cause

The /etc/fstab file of the Linux instance contains the required settings to enable the project quota feature while mounting an ext4 file system. However, the project quota feature is disabled for the file system. As a result, the file system fails to automatically mount.

Solution

Note

If your ECS instance fails to start due to a configuration error in the /etc/fstab file, fix the error by performing the operations in the System startup exceptions caused by incorrect configuration of the /etc/fstab file of a Linux instance topic.

  1. Create snapshots for the ECS instance.

  2. Connect to the ECS instance.

    For more information, see Connection method overview.

  3. Delete the prjquota mount option from the /etc/fstab file or enable the project quota feature for the file system that fails to automatically mount.

    Run the following command to enable the project quota feature for the file system:

    tune2fs -O project,quota <device>

  • On this page (1, T)
  • Problem description
  • Cause
  • Solution
Feedback